News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

help on a mod column

Started by diplomat., June 06, 2004, 04:45:09 PM

Previous topic - Next topic

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?
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

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)
I'm only a half geek really...

diplomat.

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

thanx alot man for the help :D
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

Advertisement: