1

Topic: About Moderators and other groups

Hello


When I put people in the Moderator group, they can only do some stuff.
They cant close the threads since they cant see the "moderate forum" link.

The only way to give them that, is to make each user moderating each forum, but then the index is kinda messy.

The link to my site: http://tibia.no/forum/index.php



I hope someone understand my "problem".

Yours, Runar

Re: About Moderators and other groups

"the index is kinda messy"?

I take it you want to remove the "Moderated by" links.

Find this in index.php:

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";
    }

And replace it with the following:

/* if ($cur_forum['moderators'] != '') // Commented out "Moderated by"
    {
        $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";
    } */

I've done this on my forum too. If for some reason you ever want to get the links back. remove the "/*" and "*/".

Hope this is what you wanted.

Looking for a certain modification for your forum? Please take a look here before posting.