DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Modules for version 1.x.x => Topic started by: sixf00t4 on May 09, 2005, 08:29:19 AM



Title: Hidden Players
Post by: sixf00t4 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


Title: Re:Hidden Players
Post by: sixf00t4 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.


Title: Re:Hidden Players
Post by: Freeze 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


Title: Re:Hidden Players
Post by: Sichae 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.


Title: Re:Hidden Players
Post by: Freeze on May 11, 2005, 06:02:21 PM
/me no clue how to do that


Title: Re: Hidden Players
Post by: MarcTheSlayer on January 02, 2011, 01:59:08 PM
Download link to Hidden Players v 20050509 (http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1091)


Title: Re: Hidden Players
Post by: kickme on January 02, 2011, 02:34:51 PM
Fixed. Thanks.


Title: Re: Hidden Players
Post by: TGTarheel 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.


Title: Re: Hidden Players
Post by: Aeolus 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.


Title: Re: Hidden Players
Post by: TGTarheel 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.

© 2018 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines