Customizing SMF > SMF Coding Discussion

help on a mod column

(1/1)

diplomat.:
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?

Grudge:
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)

diplomat.:
lol, im a total n00b when it comes to php, but it works! :)

thanx alot man for the help :D

Navigation

[0] Message Index

Go to full version