SimplePortal

Customization => Custom Coding => Topic started by: teos on January 14, 2013, 10:18:52 AM

Title: random topic list
Post by: teos on January 14, 2013, 10:18:52 AM
smf 2.0.3  default theme curve simple portal 2.3.5

  I installed this mod.

http://custom.simplemachines.org/mods/index.php?mod=2273

function is :
ssi_randomPosts($num_recent, $exclude_boards, $include_boards, $output_method')

Can any soul guy help me to use this function in a php block ?
No knowledge of php in my case.
Title: Re: random topic list
Post by: TinMan on January 15, 2013, 10:57:04 AM
You could just create a Custom PHP block and add:
Code: [Select]
ssi_randomPosts();This should get it displaying for you.
Title: Re: random topic list
Post by: teos on January 15, 2013, 11:01:09 AM
Thanks alot, it works  :applause:

  Basicly I want to exclude some topics from some categories, and indicate number of topics ...

can you help on that ?
Title: Re: random topic list
Post by: TinMan on January 15, 2013, 11:57:51 AM
I'm not sure if you can exclude topics with that mod, but you should be able to exclude boards from categories if that is what you meant instead.

Code: [Select]
ssi_randomPosts(5, array(1,2,3));Just edit as needed.  Where 5 is the number to display and 1, 2 and 3 are the board numbers to exclude.
Title: Re: random topic list
Post by: teos on January 15, 2013, 12:26:24 PM
sorry for misquoting,  that is what I want, thanks alot ...
Title: Re: random topic list
Post by: TinMan on January 15, 2013, 12:35:46 PM
your welcome. :)
Title: Re: random topic list
Post by: Doyle33 on January 29, 2013, 11:24:05 PM
I have no idea about your topic.. But i try to get information about it.




SimplePortal 2.3.8 © 2008-2024, SimplePortal