Welcome, Guest. Please Login or Register.
April 25, 2024, 12:42:15 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [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 5702 times)
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
[Done] View GM's mod [Ver 1.5.1Rc38]
« on: March 02, 2003, 08: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 :

   // 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 :

   // 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 :

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


and add after :

                     <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, 08: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  |  [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.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.018 seconds with 21 queries.