Topic: Hide moderator list from Forum listing?

Is there an option that will allow me to prevent the names of the moderators from being listed underneath the Forums?  I would like to remove the entire  "(Moderated by Name1, Name2, etc. )" section.  They aren't needed for our forum and some Forums have several moderators, so it takes up a lot of space and the Forums list is not as clean as I would like.

Thank you in advance.  Rick

2 (edited by elbekko 2006-07-03 21:46)

Re: Hide moderator list from Forum listing?

In index.php, find:

if ($cur_forum['moderators'] != '')
    {
        $mods_array = unserialize($cur_forum['moderators']);
        $moderators = array();

        while (list($mod_username, $mod_id) = @each($mods_array))
            $moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';

        $moderators = "\t\t\t\t\t\t\t\t".'<p><em>('.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n";
    }

Delete that, comment out, whatever suits you smile
Find

<?php echo $forum_field."\n".$moderators ?>

Replace with:

<?php echo $forum_field ?>

Re: Hide moderator list from Forum listing?

Thanks elbekko !

I was looking for an option within the Administration area, but the code change was easy and the result works great.

RICK

Re: Hide moderator list from Forum listing?

It's often faster to edit some code than to go look for a setting tongue

Re: Hide moderator list from Forum listing?

This is EXACTLY what I was looking for.  I love when stuff's already solved and answered without having to post.

BTW, side note:  Only issue with editing code is that upgrades sometimes wipe them out... but on the other hand we don't want to turn punbb into a bloated beast of options!

Rob Ludlow 
www.Nifty-Stuff.com - Repository of all Stuff Nifty!
www.reviewum.com - Professor Ratings + Teacher Reviews

6

Re: Hide moderator list from Forum listing?

If you just want to hide it visually there is no need for a code change.
#punindex .tclcon p {display: none}

Re: Hide moderator list from Forum listing?

Paul, you rock!   I added that to my main (and only) style / css sheet (at the very end) and it worded like a charm.  No code change needed!  Great work!

Rob Ludlow 
www.Nifty-Stuff.com - Repository of all Stuff Nifty!
www.reviewum.com - Professor Ratings + Teacher Reviews