![]() |
Trap Banned Members: They cant logout.
Hey there,
This is a very tiny (and very easy to install) hack but I like to use it and found it useful: I have a certain user group for trouble users in my board which I disabled all access to my board and this group can not even search or display the board itself or anything, so they are lower than guests. So I need to trap them in their username so that they wouldnt log out and "gain" guest access. This tiny hack exactly does this. You can use it with "banned users" or any user group you need to trap. ;) Here we go: Edit member.php and find -- cut --- // ############################### start logout ############################### if ($action=="logout") { include("./global.php"); -- cut --- AFTER THAT add: -- cut -- // Banned users cant logout hack if ($bbuserinfo[usergroupid]==XX) {show_nopermission(); exit;} // Banned users cant logout hack -- cut -- Replace XX with any usergroup id. (Banned by Moderators group is 12 in my board). If you put your mouse icon on "Edit" in http://www.url.com/yourboardadmin/us...tion=modify&s= , you can learn the usergroupid of any groups. If you need to trap more than 1 usergroups use this line: if ($bbuserinfo[usergroupid]==XX OR $bbuserinfo[usergroupid]==YY) {show_nopermission(); exit;} After applying the hack, trapped users will get "You dont have access" page if they try to logout from anywhere. Of course these members can still clear the cookies by deleting them manually, but you'll stop 95% of members who dont know the trick anyway! :) Enjoy! Logician //=^)) |
]looks very good if it's working, I'll try to install it today! :)
|
Wouldnt it be better to just IP ban them?
|
Quote:
|
Quote:
IP ban does not work for most cases.. |
I like your idea, a nice approach!
|
Quote:
The banning functions only usefull agaisnt stupid people on the net. |
Quote:
This hack does not intend to stop a web admin who also knows the vbulletin, uses the vbulletin, write hacks to vbulletin, I am just trying to stop avarage board members. Banning does stop them..:cool: Anyway, I like the hack, use it and find it useful.. Anyone who thinks like me can install it, so I shared.. Regards, Logician |
Aren't you supposed to put the code BEFORE the new cookies are set? I can't look at the full code right now, but showing no_permission() AFTER the cookies are deleted (set to "") isn't right I think.
|
Quote:
|
All times are GMT. The time now is 01:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|