1
migoe
AMS - Block "TopicNav" Question
  • 2007/5/7 19:31

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


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:

Resized Image

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

2
migoe
Re: AMS - Block "TopicNav" Question
  • 2007/5/8 7:00

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


another try...
www.liedermacher-forum.de | German Singers and Songwriters

www.weltladen-rothenburg.de | German Site about Fair trade Project

Login

Who's Online

199 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 199


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits