DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 19, 2018, 03:05:40 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Simple Request  (Read 3029 times)
0 Members and 1 Guest are viewing this topic.
Freeze
Guest
« on: November 15, 2005, 04:11:57 PM »

At least, I think its simple.

Whenever a new version comes out, I do very little editing to core code. Just a few tweaks to fit my site. One of them is to enable Superusers to be shown in the HOF. All of my staff play by the rules, no altered states.

Just wondering if it wouldn't be to my trouble to make that an admin-option. [whether or not a su could be seen in the HOF]

just wondering.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #1 on: November 15, 2005, 04:48:37 PM »

The following changes can be made:
  • configuration.php
Code:
"su_leaderboard"=>"Should the superuser flag (SU_HIDE_FROM_LEADERBOARD) affect Hall of Fame listings,bool|", // add to line 206

  • hof.php
    Code:
    $superusermask = SU_HIDE_FROM_LEADERBOARD;[/li][/list]
    $standardwhere = "(locked=0 AND (superuser & $superusermask) = 0)";
    Replace with
    Code:
    if (getsetting("su_leaderboard",1)){
       $superusermask = SU_HIDE_FROM_LEADERBOARD;
       $standardwhere = "(locked=0 AND (superuser & $superusermask) = 0)";
    }else{
       $standardwhere = "(locked=0)";
    }
That should work. Although, I don't know if it will be brought into core.
« Last Edit: November 15, 2005, 04:49:28 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Zaclegend
Guest
« Reply #2 on: October 15, 2006, 10:30:39 PM »

i did that, and cant find where i would enable the code so it shows admins where do i go
Logged
Zaclegend
Guest
« Reply #3 on: October 15, 2006, 10:33:10 PM »

tkz found it
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
43 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search