1
I wanted to show the articles by topic and the total topic in module in the block "topicnav". I change the code in /blocks/topicnav.php and it looks now so:
the code in the block i changed is here:
global $xoopsDB, $xoopsUser;
$block = array();
$article_counts = AmsStory::countPublishedByTopic();
$topics = AmsTopic::getAllTopics($options[0]);
$count = 1;
foreach ($topics as $topic) {
$block['topics'][] = array('id' => $topic->topic_id, 'title' => $topic->topic_title(), 'count' => $count, 'articlecounter' => $article_counts[$topicid]);
$count++;
}
return $block;
}
My Questions:
Why it only shows that there are 4 articles in each topic, this it not the truth!
Why it shows nothing in the section where the total count etc. shows?
migoe, who say sorry for the bad english!
www.liedermacher-forum.de | German Singers and Songwriters
www.weltladen-rothenburg.de | German Site about Fair trade Project