Welcome, Guest. Please Login or Register.
August 12, 2022, 01:15:28 PM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Done] View GM's mod [Ver 1.5.1Rc38] « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done] View GM's mod [Ver 1.5.1Rc38]  (Read 5212 times)
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.


WWW
[Done] View GM's mod [Ver 1.5.1Rc38]
« on: March 02, 2003, 03:26:12 PM »
Reply with quote

Nothing fancy, just to show not only the admin's on your board in the admin center (I guess you should really know who are the admin's when you have your own board :P), but also show the Global Moderators in the admin center :

I know, it is just copy-pasting the excisting code, and just changing it a bit, but maybe there are people who want this.

I made this for my v1.5.1Rc38, but other versions shouldn't be too difficult to "make"

Here goes :

Find in Admin.php :

Code: [Select]
// and load the administrators

$request = mysql_query("SELECT memberName, realName FROM {$db_prefix}members WHERE memberGroup='Administrator'") or database_error(__FILE__, __LINE__);

$admins = array();

while ($row = mysql_fetch_assoc($request))

{

$euser = urlencode($row['memberName']);

$admins[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$row[realName]</a>";

}

$administrators = implode(',', $admins);

and ADD AFTER :

Code: [Select]
// and load the Global Moderators

$request = mysql_query("SELECT memberName, realName FROM {$db_prefix}members WHERE memberGroup='Global Moderator'") or database_error(__FILE__, __LINE__);

$glomods = array();

while ($row = mysql_fetch_assoc($request))

{

$euser = urlencode($row['memberName']);

$globmods[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$row[realName]</a>";

}

$globalmoderators = implode(',', $globmods);

also find :

Code: [Select]
<font size="2"><b>' . $txt[684] . ':</b></font> <font size="1">' . $administrators . '</font><br /><br />

and add after :

Code: [Select]
<font size="2"><b>Global Moderators:</b></font> <font size="1">' . $globalmoderators . '</font><br /><br />

That's all folks  ;D

See the example :

« Last Edit: March 02, 2003, 03:26:33 PM by Webby » Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Done] View GM's mod [Ver 1.5.1Rc38] « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.0.18 | SMF © 2021, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.121 seconds with 20 queries.