SimplePortal

Customization => Custom Coding => Topic started by: harikumar001 on October 05, 2008, 03:23:38 AM

Title: Need help with Board News Block
Post by: harikumar001 on October 05, 2008, 03:23:38 AM
Hi,
I wanted to know if it is possible to display recent topics from multiple boards in one block. If so how do I do the same.
For instance I have

Free Ad Listings (Category Name)
 - Automotive (Board 1)
 - Real Estate (Board 2)
 - Services (Board 3)
 - ............. so on

What I want to do is add a new block to the portal which shows Recent Ads, no matter from which board it is. I do not want a separate block for each board.
Is this possible?

Thanking you,
With Kind Regards,
Hari

Title: Re: Need help with Board News Block
Post by: Nathaniel on October 05, 2008, 03:54:25 AM
The post below should help you:
http://simpleportal.net/index.php?topic=248.msg2329#msg2329

Just put the code from that post into a new 'PHP' block and then edit the "$boards = array(1, 4);" code so that it has a list of the boards you want to get topics from and then it should work! ;)
Title: Re: Need help with Board News Block
Post by: harikumar001 on October 05, 2008, 09:48:13 AM
Thank u so much  :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal