Advertisement:

Author Topic: help on a mod column  (Read 2292 times)

Offline diplomat.

  • SMF Friend
  • Full Member
  • *
  • Posts: 545
  • Gender: Male
  • avidSOUND
    • avidSOUND
help on a mod column
« 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?
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

Offline Grudge

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,742
  • Gender: Male
  • Unofficial nuisance
Re: help on a mod column
« Reply #1 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)
I'm only a half geek really...

Offline diplomat.

  • SMF Friend
  • Full Member
  • *
  • Posts: 545
  • Gender: Male
  • avidSOUND
    • avidSOUND
Re: help on a mod column
« Reply #2 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
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!