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! |