Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: ldk - marraskuu 13, 2005, 03:58:36 IP

Otsikko: Adding an SSI Function to show a List of Specific Topics
Kirjoitti: ldk - marraskuu 13, 2005, 03:58:36 IP
Hello,

I've added some very simple SSI functions to SSI.php that I've needed but now I'd like to add one and I can't figure out how to write it.

Basically I'd like to pass in a string which is a list of topic IDs like: "101,200,556" and have it output something that looks exactly like what "ssi_recentTopics" outputs. But obviously it would just show the topics for the IDs passed in.

If anyone could help me that would be great!
Otsikko: Re: Adding an SSI Function to show a List of Specific Topics
Kirjoitti: Trekkie101 - marraskuu 14, 2005, 06:08:17 AP
My favourite mod of all time!

(Although it works by message id so its not quite the same)

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

ssi_grabmessage(id)
Otsikko: Re: Adding an SSI Function to show a List of Specific Topics
Kirjoitti: ldk - marraskuu 14, 2005, 02:48:52 IP
Got it! Thanks for the tip!