Topic: Remove Moderated By...
I would like to remove the Moderated by field on all my forum topics. See image below for details.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Remove Moderated By...
I would like to remove the Moderated by field on all my forum topics. See image below for details.
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
Now after all my forum descriptions I get this... What is Array?
News and announcements here. Array
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.
Thanks for the codes... It worked!
Or you could just hide it via the style sheets.
What would I look for in the style sheets?
Try adding
.tclcon p { display: none }
or something
Yours css solution is working great Rickard
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?
PunBB Forums → PunBB 1.2 troubleshooting → Remove Moderated By...
Powered by PunBB, supported by Informer Technologies, Inc.