|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|
|||
|
Does anyone have an idea if it would be possible, and if so how easy, to make user accounts "hidden", in that browsing the users they wouldn't display.
I can only imagine creating a new field in the accounts table called "hidden" (for example), and making it either 1 or 0, 0 being default. Then in the list.php, adding in to not display users with a ['hidden']==1. The syntax of the list.php isn't as simple (to me, at least) as other pages, so I don't really know of a way to implement it there. The reason is I created an account and took away its display name, and I use it to denote simple actions, or to RP the NPCs. However, it still is listed on the warrior list, just with no name (and level 0). I'd like for it to be invisible. Or, a way for an admin to enter complete text in a "chat" page, instead of "charactername says" or "charactername does". (edited as I changed the internal wording around) |
|
#2
|
|||
|
|||
|
I've implemented something similar on my server. I added a field in accounts called 'npc' and use it as a boolean that I set to true for accounts I don't want to show up. Then I modified the SQL statements to filter out those characters.
Example: $sql = "SELECT name,login,alive,location,sex,level,laston,loggedi n,lastip,uniqueid FROM accounts WHERE locked=0 AND npc=0 $search ORDER BY level DESC, dragonkills DESC, login ASC $limit"; I also use this field for keeping tests accounts from appearing in the daily news (when I'm testing things that cause events to be logged) Just put everything inside function addnews() inside an if block: if($session[user][npc] == 0){ //Code to add to the news here } Hope that helps!! |
|
#3
|
|||
|
|
|||
|
I was just tinkering in the files, and I wound up doing exactly what you did, except my field was called "hidden", and I just added a AND hidden=0 to the SQL query to display the warriors, and also added it to where it takes the count.
I'll look into the news thing, too. |
|
#4
|
||||
|
||||
|
Quote:
Then I make sure the HOF, List and the Index don't log Superuser 4. That is the easiest way to go about it and it works great on Legendgard Elite. |
|
#5
|
|||
|
|||
|
Quote:
I'm not sure if you could do this, but could you not create a "stealth" account as super user level -1 and just filter off of that? The reason I ask is because my hidden characters aren't really admins, just npcs I use for adding commentary, etc. |
|
#6
|
||||
|
||||
|
Quote:
Well, for me, there's no security risk, for I wouldn't GIVE a stealth account to anyone but the HIGHEST level admin. NPCs and such I'd actually WANT to be seen online, but I imagine there's two ways you can do it. First, if you move your admin level to 4 or 5, then your stealth level could be 3. But then you'd have to go through the entire Superuser accessable code and change the [user][superuser]>3 to >4(or 5) I don't know if a negative number would work, but I don't see why it wouldn't. It's just an INT field, so it should. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "List Warriors" access in the Land of the Shades | X-Kal | Newbie Player Forum - What is this about? How do I do something? | 1 | 10-19-2005 01:07 AM |
| New Series -- "Adventures of the Green Dragon" | tilleyrw | Village Square | 22 | 08-27-2005 06:58 PM |
| Please add current level to "View Membership" clan | Marusynn | Newbie Player Forum - What is this about? How do I do something? | 10 | 07-24-2004 02:49 PM |
| "Find You" in Hall of Fame | yawgodemt | Newbie Player Forum - What is this about? How do I do something? | 14 | 12-29-2003 11:24 AM |
| New forum with "page" access | feahyarmen | Newbie Player Forum - What is this about? How do I do something? | 7 | 12-14-2003 07:58 PM |