Hi,
I installed the 'News & Article Manager' mod along with 'Scrolling Sidebox' (i needed the news to appear on all pages) a while ago and it works really well, but I don't need the scrolling. I managed to rip apart the code so that the scrolling is gone, but I've run into the problem of showing all articles at once.
Here's a link to see what I mean:
http://www.radish.ca/index.php?main_page=contact_us
This is all of the code that remains for the sidebox template:
My PHP knowledge is extremely limited. I get the idea there's a loop going on to produce the articles, but I just want one to show. I tried removing the 'for each' and inserting 'echo' in various spots, but that didn't work.Code:$content = ''; $newsDisplay = new newsDisplay(); foreach ($article_array as $articles) { foreach ($articles['articles'] as $article) { $newsDisplay->articleSummary($article['articleName'], $article['articleSummary'], $article['articleLink'], BOX_NEWS_SCROLLER_TEXT_READ_FULL_ARTICLE); } } $content .= ($newsDisplay->displayNewsPage(false));
If anyone see's a quick fix to what I'm after I would be super thankful.
Cheers,
Colin



