Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: diplomat. on June 06, 2004, 04:45:09 PM

Title: help on a mod column
Post by: diplomat. on June 06, 2004, 04:45:09 PM
http://titaniumwg.com/forums

im trying to put a mod column on my forum...i have the table set up for it, but dont know what info i should put in it for the moderator names (and links to their profiles) to appear.

what do i put in the table part?
Title: Re: help on a mod column
Post by: Grudge on June 06, 2004, 05:32:50 PM
Well - as it's in boardindex, and that must be inside the foreach loop I'm assuming, then this little function will stick all the moderators in a list, with links in place. This is the great thing about the template system - this stuff is already there :D

implode(', ', $board['link_moderators'])

So just add as the contents of your column. Don't forget if it's inside an echo to break it out into this, for example:
<td>' . implode(', ', $board['link_moderators']) . '</td>

(Just there incase you're fairly new to PHP)
Title: Re: help on a mod column
Post by: diplomat. on June 06, 2004, 06:43:40 PM
lol, im a total n00b when it comes to php, but it works! :)

thanx alot man for the help :D