Portal Themes, PHPnuke Themes and PostNuke themes Themes Home Page Profile Free Nuke theme Downloads Nuke theme Support Forums Nuke Themes Store
spacer image spacer image
Featured
Call of Duty 4 Nuke Theme

Call of Duty 4 Nuke Theme

Call of Duty 4 PHPNuke Theme, Call of Duty 4 PostNuke Theme, Call of Duty 4 Evo Theme, Call of Duty ...

$15.00
Enter Store ]
spacer image
Main Menu
spacer image
Site Status
spacer image Welcome Guest
Join us!
spacer image
spacer imagespacer imagespacer image
spacer image
Registration is free and gives full access to site
spacer image
spacer image Register
spacer image Login:
User:

spacer image
Password:

spacer image
Remember me
spacer image
spacer imageMembers:
Last: Today New:0
Last: Yesterday:0
Last: Total:7536
Last: Last:
maxfoot
Members: Online
Members: Members:0
Guests: Guests:48
Total: Total:48
spacer image Online Members
No online members
spacer image
Past News
Older articles
spacer image


Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gimp8gimpOffline
10 Post subject: Itemstats autotheme help [FIXED]  PostPosted: Jun 02, 2007 - 08:01 PM



Joined: Jun 02, 2007
Posts: 7

Status: Offline
Hi There,

I would also like to get my wow theme news and forum module to work with itemstats as per post below

http://www.portalthemes.com/PNphpBB2-viewtopic-t-1053-highlight-itemstats.phtml

Thanks for any help
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject: RE: Itemstats help  PostPosted: Jun 02, 2007 - 08:41 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
Can you zip up your EQDKP folder and send it to me?
Or make it available for download?

I need it so I can test it out with Itemstats, I don't have any of the data it needs.

Also, what theme are you using?
 
 View user's profile Send private message  
Reply with quote
gimp8gimpOffline
Post subject:   PostPosted: Jun 02, 2007 - 09:16 PM



Joined: Jun 02, 2007
Posts: 7

Status: Offline
wow1 is the theme what email shall i send the eqdkp to

Thanks mike
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 02, 2007 - 09:39 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
mikemaynard AT ccnyi DOT com
Or just upload the zip to your site and PM me a download link.
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 03, 2007 - 02:06 AM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
Ok I think I got it working

Do all of the installation steps for eqdkp

Then to get itemstats working do the following steps

Open theme.html and theme2.html and add these lines in between the <head> and </head>

Code:

<script language="JavaScript" type="text/javascript" src="modules/eqdkp/itemstats/overlib/overlib.js"></script>
<link href="modules/eqdkp/itemstats/templates/itemstats.css" rel="stylesheet" type="text/css">


Then open modules/AutoTheme/includes/php-nuke/atFuncs.php

Look for
Code:

function themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext)
{
    $sid = $GLOBALS['sid'];
    $vars = compact("sid", "aid", "informant", "datetime", "title", "counter", "topic", "hometext", "notes", "morelink", "topicname", "topicimage", "topictext");
    list($preformat, $info, $links) = themeformatnews($vars);
    atRunningMultiSetVars($vars);
    atNewsSummary($info, $links, $preformat);

}

function themearticle($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext)
{
    $sid = $GLOBALS['sid'];
    $vars = compact("sid", "aid", "informant", "datetime", "title", "bodytext", "topic", "topicname", "topicimage", "topictext");
    list($preformat, $info, $links) = themeformatnews($vars);

    atRunningMultiSetVars($vars);
    atNewsArticle($info, $links, $preformat);
}


Change them to

Code:

function themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext)
{
    $sid = $GLOBALS['sid'];
   $hometext = itemstats_parse($hometext);
    $vars = compact("sid", "aid", "informant", "datetime", "title", "counter", "topic", "hometext", "notes", "morelink", "topicname", "topicimage", "topictext");
    list($preformat, $info, $links) = themeformatnews($vars);
    atRunningMultiSetVars($vars);
    atNewsSummary($info, $links, $preformat);

}

function themearticle($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext)
{
    $sid = $GLOBALS['sid'];
   $bodytext = itemstats_parse($bodytext);
    $vars = compact("sid", "aid", "informant", "datetime", "title", "bodytext", "topic", "topicname", "topicimage", "topictext");
    list($preformat, $info, $links) = themeformatnews($vars);

    atRunningMultiSetVars($vars);
    atNewsArticle($info, $links, $preformat);
}


That should do it!
 
 View user's profile Send private message  
Reply with quote
gimp8gimpOffline
6 Post subject:   PostPosted: Jun 03, 2007 - 10:14 AM



Joined: Jun 02, 2007
Posts: 7

Status: Offline
thanks for your help that worked a treat now to sort out my other themes

Cheers Mike
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 03, 2007 - 01:09 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
Glad to help Smile
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 03, 2007 - 03:44 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
Can you post a link to the site so I can see it in full blown working mode?
 
 View user's profile Send private message  
Reply with quote
gimp8gimpOffline
Post subject:   PostPosted: Jun 03, 2007 - 03:53 PM



Joined: Jun 02, 2007
Posts: 7

Status: Offline
sure, it a work in progress at the moment so please excuse non working blocks www.die-horde.co.uk
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 03, 2007 - 04:07 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
That is a really cool addin. Smile
 
 View user's profile Send private message  
Reply with quote
MatchesOffline
Post subject:   PostPosted: Jun 09, 2007 - 03:47 AM



Joined: Jun 09, 2007
Posts: 2

Status: Offline
Im trying to do the same thing, except Im using postnuke, not phpnuke. Im using wow5 as my theme. Also, I'm using the standalone version of eqdkp, but the only difference that should make is changing "modules/eqdkp/..." to "eqdkp/..."

It seems like all the instructions should be the same except where to put the "$hometext = itemstats_parse($hometext); " and "$bodytext = itemstats_parse($bodytext); " lines. The fuctions for themeindex and themearticle are written differently in postnuke.

Any help would be greatly appreciated. btw, thks for the cool theme.
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 09, 2007 - 12:53 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
I'll look into it on PostNuke.
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 09, 2007 - 08:36 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
Might have a way to do this.
Open theme.html and theme2.html and add these lines in between the <head> and </head>

Code:
<script language="JavaScript" type="text/javascript" src="eqdkp/itemstats/overlib/overlib.js"></script>
<link href="eqdkp/itemstats/templates/itemstats.css" rel="stylesheet" type="text/css">


Then open summary.html and change <!-- [article-summary] --> to <!-- [article-full] -->

Then open modules/news/funcs.php and add the following line include_once('eqdkp/itemstats/phpbb_itemstats.php');
right above the line
function getArticles($where, $order='', $limit=1, $startnum=0)

Then find in funcs.php
Code:

function genArticlePreformat($info, $links)
{

    // Component and instance
    $component = 'Stories::Story';
    $instance = "$info[aid]:$info[cattitle]:$info[sid]";

    // Only allow send if the module exists
    if (pnModAvailable("Recommend_Us")) {
        $send = "<a href=\"$links[send]\"><img src=\"images/global/friend.gif\" alt=\""._FRIEND."\" /></a>";
    } else {
        $send = '';
    }

    $hometext = $info['hometext'];
    $bodytext = $info['bodytext'];
    // Only bother with readmore if there is more to read


And change it to

Code:

function genArticlePreformat($info, $links)
{

    // Component and instance
    $component = 'Stories::Story';
    $instance = "$info[aid]:$info[cattitle]:$info[sid]";

    // Only allow send if the module exists
    if (pnModAvailable("Recommend_Us")) {
        $send = "<a href=\"$links[send]\"><img src=\"images/global/friend.gif\" alt=\""._FRIEND."\" /></a>";
    } else {
        $send = '';
    }

    $hometext = $info['hometext'];
    $hometext = itemstats_parse($info['hometext']);
    $bodytext = $info['bodytext'];
    $bodytext = itemstats_parse($info['bodytext']);
    // Only bother with readmore if there is more to read


It works for me on my local Postnuke install.
Be sure to backup all the above files BEFORE making the changes.
 
 View user's profile Send private message  
Reply with quote
MatchesOffline
Post subject:   PostPosted: Jun 10, 2007 - 02:09 AM



Joined: Jun 09, 2007
Posts: 2

Status: Offline
Nice!! It worked! Thanks a ton!

I'm sure a lot of ppl who use postnuke would benefit from this as in all my searching this is the only solution Ive seen.

Thanks again.
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 10, 2007 - 02:32 AM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
Glad to help Smile
 
 View user's profile Send private message  
Reply with quote
Display posts from previous:     
Jump to:  
All times are GMT - 5 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits
spacer image spacer image

Welcome to www.PortalThemes.com, Your #1 Source for

Zikula Themes

,

PHP-Nuke themes

,

MD-Pro Themes

,

Nuke Evolution Themes

,

Platinum Nuke Themes

,

Xanthia Themes

,

AutoThemes and

Joomla Templates
World of Warcraft and Blizzard Entertainment are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. These terms and all related materials, logos, and images are copyright Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment
SiteMap SiteMap 2 SiteMap 3