16
Sorry, lykoszine, my mistake... I have not changed any directory, only the name changes via admin -> modules.
I can't show you the stats block display because it's set viewable on our live site only for the admin. We can't display it publically until it's showing properly on our website. Kind of a catch-22, I know. Sorry about that.
I'm still playing with it to see if I can figure it out. I've just deleted to following code snippet from file "b_lykos_blocks_stats.php" because I didn't want it to show the stats for our news module:
Quote:
if($myrow['dirname']=='news') {
$resultn = $xoopsDB->query("SELECT storyid, counter FROM ".$xoopsDB->prefix("stories")." WHERE published<".time()." AND published>0 ORDER BY storyid");
$thecount=0;
$total=0;
while (list($id, $hit) = $xoopsDB->fetchRow($resultn)) {
$thecount++;
$total+= $hit;
}
$links['name'] = $myrow['name'];
$links['hits'] = $thecount;
$links['total'] = $total;
}
Interestingly enought, here's the resulting display:
Quote:
Directory 34 592
Directory 34 592
Directory 34 592
Directory 34 592
Directory 34 592
Directory 34 592
Directory 34 592
I noticed that both times the block displayed a total of 7 lines. Could it have anything to do with the fact that my main menu show a total of 7 links, in addition to the HOME link (there's acutally 8 modules that are active, in addition to the "systems" module), but only 7 is set to display on the main menu.