Welcome, Guest. Please Login or Register.
May 03, 2025, 11:44:09 AM
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  |  Mod Ideas and Creation  |  Show Moderators only for Admin/Global Mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Show Moderators only for Admin/Global Mod  (Read 432 times)
Sava
Noobie
*
Posts: 42


I'm a llama!

Show Moderators only for Admin/Global Mod
« on: May 13, 2002, 11:10:36 PM »
Reply with quote

is it sth like :
Quoteif($settings[7] == 'Administrator') {
         $themoderators = explode(",",$row_board['moderators']);
         for ($i = 0; $i < sizeof($themoderators); $i++){
            $themoderators[$i] = trim($themoderators[$i]);
            if ($themoderators[$i]!=''){
            LoadRealName($themoderators[$i]);
            $euser=urlencode($themoderators[$i]);
            $themoderators[$i] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><acronym         title=\"$txt[62]\">{$realNames[$themoderators[$i]]}</acronym></a>";
            }
         }

         $showmods = implode (", ",$themoderators);
         if ($showmods!='')
         {
                   if (sizeof($themoderators)>1)
                     $showmods = "<BR><font size=\"1\"><i>$txt[299]: $showmods</i></font>";
                 else
                  $showmods = "<BR><font size=\"1\"><i>$txt[298]: $showmods</i></font>";
         }else{
            $showmods = "";} }
? :)

 i've tried it and didnt work for me, can someone correct it ? and also write me the part for Global Mod plz :)
« Last Edit: May 13, 2002, 11:11:50 PM by Sava » Logged
Sava
Noobie
*
Posts: 42


I'm a llama!

Re:Show Moderators only for Admin/Global Mod
« Reply #1 on: May 14, 2002, 10:00:47 PM »
Reply with quote

oh i was talking about modifying BoardINdex, MessageIndex.php

 what I want is the codes that only shows Moderators of that board for only those who are admin/Global Mod

 can someone help me the coding ?
Logged
vorapoap (vory)
Sr. Member
****
Posts: 424


Not considered either a living or death

WWW
Re:Show Moderators only for Admin/Global Mod
« Reply #2 on: May 14, 2002, 11:16:30 PM »
Reply with quote

A dirty solution to this

if($settings[7] != 'Administrator'..blah blah blah..)  $showmods = "";

Logged

On the route to hell...
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Show Moderators only for Admin/Global Mod « 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.014 seconds with 16 queries.