DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 24, 2018, 12:14:29 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Hidden Players  (Read 4723 times)
0 Members and 1 Guest are viewing this topic.
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« on: May 09, 2005, 08:29:19 AM »

http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1091

so far this module will prevent hidden users from showing on the character list on the main page.  
Lonny's Who's here module still needs updated to allow players to remain hidden there.

so far, the players are still visible in list.php, haven't seen a way around that besides core modification yet.

Thanks for XChrisX for providing his online list module.


brainstorming thread: http://dragonprime.net/index.php?board=20;action=display;threadid=2301;start=0
« Last Edit: January 02, 2011, 02:34:26 PM by kickme » Logged

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #1 on: May 11, 2005, 02:50:24 AM »

alright, Kendaer is swamped with work, so we won't see the hooks in the core for a while.  for now these are the edits you need to do in list.php to hide players.

add:
Code:
acctid,
in the sql statements on lines 75, 79,and  88.

add:
Code:
   if(get_module_pref("hidden","hiddenplayers",$row['acctid'])==false){
after line 124---$row = db_fetch_assoc($result);

add:
Code:
}
above:
Code:
rawoutput("</table>");
near the end of the file.
Logged

Freeze
Guest
« Reply #2 on: May 11, 2005, 04:19:45 AM »

This is how my list.php looks after these adjustments. Normal, my fault, bad code?

http://christopher.lotgdrealms.com/list.php.bmp
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 #3 on: May 11, 2005, 05:04:56 AM »

You also have to subtract the count of users that have that setting on, that would appear in that bracket, and subtract it form the second statement in the for.

That is the reason why it is showing those blank entries.
« Last Edit: May 11, 2005, 05:05:58 AM by Sichae » Logged

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

Freeze
Guest
« Reply #4 on: May 11, 2005, 06:02:21 PM »

* Lord NeXus no clue how to do that
Logged
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1745


View Profile
« Reply #5 on: January 02, 2011, 01:59:08 PM »

Download link to Hidden Players v 20050509
Logged

Check My Modules for the latest versions.
kickme
Global Moderator
Mod God
*****
Offline Offline

Posts: 1589


Yay for elephants!


View Profile WWW
« Reply #6 on: January 02, 2011, 02:34:51 PM »

Fixed. Thanks.
Logged

Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka
TGTarheel
Codemeister
****
Offline Offline

Posts: 454


View Profile
« Reply #7 on: June 01, 2018, 08:49:18 PM »

Sorry to gravedig this, but..I figured a way with core modification, to hide players from the list.php - you do need to do it by acctid.  At least that is how I did it...and I also accounted for it so that the total number of players is reduced by one, too....That is all core modification.

What I'd like to know and can't figure...is how to hide a player in user.php...so that you can't enter blank and have their name show up in the list, you'd literally need to have their name.

Every time I futz with user.php, I end up with NOBODY showing up that way....or JUST the one I actually want to hide showing up.  It's weird, LOL

For some reason, the same thing I did in list.php does not work out in user.php (ctually, you have to do that in a /lib file for user.php, because the list is called from a function - just can't figure how to alter the function to get the result I am after.
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1896


You're welcome.


View Profile WWW
« Reply #8 on: June 01, 2018, 11:49:15 PM »

Why would you need to do that? A player should never be able to hide from the Staff of a site.
Logged

TGTarheel
Codemeister
****
Offline Offline

Posts: 454


View Profile
« Reply #9 on: June 02, 2018, 12:03:09 AM »

Why would you need to do that? A player should never be able to hide from the Staff of a site.

That is not what is trying to be done here...see your Direct Message on this to understand what I am trying to accomplish.
« Last Edit: June 02, 2018, 12:06:52 AM by TGTarheel » 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
35 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search