David
Destroyer Dave
Global Moderator
YaBB God
Posts: 5761
I'm not a llama!
|
|
[Code] Totally Disable Memberlist
« on: March 20, 2002, 04:24:13 AM » |
|
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]); }
|