Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Changing 'Moderator' to 'Board Admin' on board description

Aloittaja Thiefjack, elokuu 19, 2006, 01:21:42 AP

« edellinen - seuraava »

Thiefjack

Current Version of SMF: RC2 1.1
Current Theme: blackTed

I was wondering if it was possible to change the 'Moderator:' prefix on the board description to something else.
By 'Moderator:' prefix, I mean within the board description if there's a moderator assigned it will display 'Moderator: x.'

Any help would be appreciated.
Thank you!

Nevermind!
Got it to work thru trial and error.
Much appreciated if anyone can tell me if there's anything wrong with the code I'm using?

echo '
<div style="padding-top: 1px;" class="smalltext"><b>', count($board['moderators']) == 0, 'Guild Head: ', implode(', ', $board['link_moderators']), '</b></div>';

L.G.S

You can just change the moderator word string in index.english.php couldn't you?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Tristan Perry

Yeah LGS is right, it's much easier to simply change the language files.

In /Themes/default/languages/index.english.php
Find:
$txt[298] = 'Moderator';
$txt[299] = 'Moderators';


Replace With:
$txt[298] = 'Guild Head';
$txt[299] = 'Guild Heads';





That should be the right thing to edit. If you really want to go all out and change all instances of "Moderator" to "Guild Head" then look through every language file for instances of "Moderator" and change them. The files which have the word "Moderator" or "Moderators" in are:


  • Admin.english.php
  • Help.english.php
  • index.english.php
  • Install.english.php
  • ManageBoards.english.php
  • Reports.english.php

Although that's a lot of work for something which won't affect many of your members.

Thiefjack

Oh, thanks guys, didn't know that.

Appreciate the help!
Much obliged.

Tristan Perry


Advertisement: