Log in

View Full Version : code to get only mods modding that section


tinbin
03-09-2004, 07:15 PM
Hello,

I am working on a little modification on my forum (vb2), and i came up with this problem...

I want to have an IF-structure like this (took it from postings.php):


if (ismoderator($threadinfo[forumid])
{
***blah blah***
}


But the problem is this somehow selects all moderators.
I want it to select the moderators of that particular forum only!

Would there be a solution for this?

Boofo
03-09-2004, 07:49 PM
Try changing that to:

if ($forum['moderators'])
{
$forum[moderators]
}

tinbin
03-12-2004, 08:32 AM
Don't work if i try

if ($forum['moderators'])


But what is the "$forum[moderators]" about?

Boofo
03-12-2004, 08:41 AM
That's what I use to get the moderators for each forum on the forumhome. I wasn't sure it it would work for what you were trying to do but it was worth a shot. ;)