1

Topic: Remove Moderated By...

I would like to remove the Moderated by field on all my forum topics. See image below for details.
http://img454.imageshack.us/img454/6492/13pf.jpg

2

Re: Remove Moderated By...

open index.php and find

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

beofr it add // so it looks like

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

that will do it for you smile

3

Re: Remove Moderated By...

Now after all my forum descriptions I get this... What is Array?



News and announcements here. Array

4 (edited by pogenwurst 2006-01-20 02:19)

Re: Remove Moderated By...

Mark forgot to mention:

Find this:

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 something like this:

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

Edit:

(I think) you should also do this:

Find:

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

Replace with:

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

Another edit:

Basically, look for "$moderators" and comment it out.

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

5

Re: Remove Moderated By...

Thanks for the codes... It worked!

Re: Remove Moderated By...

Or you could just hide it via the style sheets.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

7

Re: Remove Moderated By...

What would I look for in the style sheets?

Re: Remove Moderated By...

Try adding

.tclcon p { display: none }

or something smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."

9

Re: Remove Moderated By...

Yours css solution is working great Rickard

10 (edited by testingpunbb 2007-12-10 01:37)

Re: Remove Moderated By...

coxis wrote:

Yours css solution is working great Rickard

I like to do that over the css too. So I can leave the codes untouched in case I want to change it back.
Where and what exactly did you change?