SMF Support > SMF 1.1.x Support
Removing "(Moderators: xxxxx)" text
MrMike:
My aplogies in advance if this is in the wrong forum- it seemed like the most appropriate one, but...
I am trying to remove the "(Moderators: xxxxx)" text from the Message Index and the other screens. I'm referring to the text in the breadcrumb trail similar to this:
Site Name | General Category | Message Board Name (Moderator: Some Name)
I basically don't want to list the moderator names anywhere. I found a modification listed here, which seems to work part of the way. It involved replacing this in the "Display.template.php file":
--- Code: ---if (isset($message['member']['group']) && $message['member']['group'] != '')
--- End code ---
with this:
--- Code: ---elseif (isset($message['member']['group']) && $message['member']['group'] != '')
--- End code ---
(I've searched the forums here over and over and cannot seem to find it again for the life of me.)
The modification worked for the Board index page. I found the identical code in the "MessageIndex.template.php" file and modified it but it doesn't seem to remove the "(Moderators: xxxxx)" from that page or the "view posts" page.
Can anyone give me an idea how I can modify this and remove it? Anyone?
I have SMF 1.0.6.
MrMike:
Anyone have any ideas on this?
Elmacik:
From the original BoardIndex.template.php
Find and remove:
--- Code: --- // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
--- End code ---
MrMike:
I got it to work on the Board Index (see my post) but I can't seem to remove it from the Messages Index or the 'View Post' pages. I found the same code in the 'MessageIndex.template.php' file and commented it out, but I must be in the wrong place because it's still there. Same for the 'Display.template.php'- I commented out the same lines but it's still there. I can't figure out what the heck I'm doing wrong. (??)
MrMike:
Well, shoot. I guess there's no simple answer to this one. If I ever find it I'll post it here, but if I haven't figured it out by now I doubt I ever will. :(
Navigation
[0] Message Index
[#] Next page
Go to full version