Welcome, Guest. Please Login or Register.
November 21, 2024, 10:54:06 PM
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  |  Completed mods  |  [Code] Totally Disable Memberlist « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Code] Totally Disable Memberlist  (Read 12752 times)
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
[Code] Totally Disable Memberlist
« on: March 20, 2002, 04:24:13 AM »
Reply with quote

Someone asked me how to do this and here is my "hack" of how to do it.  If someone wants to finsih it into a full fledged mod go ahead.  It seems very simple to disable the memberlist totally.  Open the file Memberlisy.php in your Sources directory.  Then find this line, it is about 5 lines under the end of the comment at the top.
if($username == "Guest") { fatal_error($txt[223]); }
Then right above that line add this.
fatal_error('Sorry, This Feature Has Been Disabled');
You can replace the Sorry text with what ever you wish just make sure the quotes are still there.  If you really want you couls create a new entry in your language file and put that in instead.  So now you have this.
/*****************************************************************************/

$memberlistplver="YaBB SE 1.1.0";

// initialize variables
global $txt,$cgi,$color,$img,$TopAmmount,$action,$scripturl,$MOST_POSTS,$TableHeader,$TableFooter,$username,$db_prefix;
$Sort = $page = $LetterLinks = $TableHeader = '';

fatal_error('Sorry, This Feature Has Been Disabled');
if($username == "Guest") { fatal_error($txt[223]); }
« Last Edit: March 20, 2002, 05:29:41 PM by Godai » Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code] Totally Disable Memberlist « 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.334 seconds with 20 queries.