Description of the Hack:
The Miserable Users Hack for vB3 is an upgrade from Zzed's hack for vB2. The vB3 version is streamlined and works without any file edits. It is purely template based.
Templates modified for this Hack:
phpinclude_start
(the above was generated via the Hack Tracking Log, soon to come)
1.01 update: January 5th, 3:10 pm CET
Instead of a custom check for the usergroup data to see whether the user is a Miserable User, vB3's function is_member_of() is being used now, cleaning up the code even more.
Here's what the Hack does: (original Hack thread)
This Hack will allow you to drive away people from your board without banning them. As explained by Zzed, the author of the original (vB2) hack:
Quote:
Originally Posted by Zzed
So here is what really happens to a miserable user:
- There is a random 60-120 second delay each time they click on a link.
- 90% of times they have no search engine acccess.
- 75% of the times they get the server too busy error.
If they don't get the server too busy error:
- 50% of the times they may get a blank page
- 30% of the times they may get forwarded to the forum main page
- 20% of the time they may be able to see the page they asked for.
This vB3 hack uses NO FILE EDITS. Instead, it's all template based and Usergroup-based, making it even easier for you to manage your Miserable Users.
TO INSTALL:
1)
Create a new membergroup, and name it Miserable Users. Give them no particular permissions if you want, as you can use it as a secondary group (so you can effectively give them 0 permissions whatsoever). Note: make sure to note down the Membergroup id !
2)
Put this code at the top of your phpinclude_start template: Note: fill in the membergroup id from step 1 where it says "$miserableid = 8;" (replace the 8 with your id number).
PHP Code:
// Miserable Hack for vB3 // Ported by KuraFire to vB3, original vB2 version by Zzed // ####################################################### // Put the id of your Miserable Usergroup here: $miserableid = 8;
// Check to see if the user is a Miserable User if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $miserableid)) { $glitch = rand(60, 120); for($x=0; $x<$glitch; $x++) { echo ' '; sleep(1); }
Note: this Hack will come in an HTL* package once the HTL is finished.
Toning Down The Pain:
You'll find that this hack is a bit rough on people, and may be getting too obvious. If you want to tone it down, here's what you can do:
Toning down the page load delay: This line:
PHP Code:
$glitch = rand(60, 120);
specifies the random delay, in actual seconds. You can see that Miserable users will have at least 60 and at most 120 seconds loading delay for pages. If you want to dial that down, you could change it to 30, 60 for instance. The first number is the minimum amount of seconds they'll wait, the second is the maximum. A random number in-between the two will be used for each page load.
Toning down the % chance disabling of the Search engine:
This line:
PHP Code:
if($glitch < 90)
specifies the chance of the search engine being disabled. Currently it will be a 90% chance. Change the number to (for instance) 50 for a 50% chance.
Toning down the chance of a Server Too Busy error:
This line:
PHP Code:
if ($glitch < 75)
specifies the chance of getting a Server Too Busy error. Lower the number for a smaller chance.
Toning down the chance of a blank page: This line:
PHP Code:
if ($glitch < 50)
specifies the chance of getting a blank page. Lower the number for a smaller chance.
Increasing the chance of getting a normal page:
This line:
PHP Code:
if ($glitch < 80)
specifies the chance of not getting a normal page. So, if you want to increase the chance of getting a normal page, decrease this number!
Toning down the chance of a refresh to Forum home: This section:
PHP Code:
$glitch = rand(0, 100); if ($glitch < 80) { if ($glitch < 50)
specifies the chance of getting a refresh. If the 20% chance of getting a normal page is not the case, there will be a 50% chance of a white page, and if that doesn't happen, there will be a refresh. If you want to change it, meddle with those two options to find a balance you like.
Hope you guys enjoy this update of the excellent hack by Zzed, with the improvements I've made to it for higher maintainability (and, no file edits ).
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
You have to make sure that the usergroupid in the hack is not one you belong to yourself, of course.
To fix, go into your database via PHPmyAdmin or whichever, and empty your phpinclude_start template. If that doesn't work, then you messed up something not related to this hack and I've no idea what you did, then. Hell, even if it IS related to this hack, I've no idea what you did. It's a very simple copy-paste into the phpinclude_start template, and only if you belong to the usergroup that you made miserable will it have an effect on your account.
Yes, it is very simple. The 2.X version worked perfectly. I'm the admin, so I'm definitely not in usergroup 16. How would an admin suddenly become a member of a group he just created? I would think after 4 tries, I've pretty much eliminated the possibility that it was my mistake. No offense, but there's something you're missing here, I think. This is a fresh RC2 test forum. There's not much I could screw up. As you said, any monkey could install this one. I don't think it's me. Why do you think I reinstalled it 4 times?
I changed the miserableid to the usergroupid I'd created (which I named Miserable Users), then pasted it into the template, just as you've instructed.
I'll tell you what. Here's a copy of exactly what's in my phpinclude_start template. Take a look and see if you can see anything wrong, please. I want so badly for this to work.
Yes, it is very simple. The 2.X version worked perfectly. I'm the admin, so I'm definitely not in usergroup 16. How would an admin suddenly become a member of a group he just created? I would think after 4 tries, I've pretty much eliminated the possibility that it was my mistake. No offense, but there's something you're missing here, I think. This is a fresh RC2 test forum. There's not much I could screw up. As you said, any monkey could install this one. I don't think it's me. Why do you think I reinstalled it 4 times?
I changed the miserableid to the usergroupid I'd created (which I named Miserable Users), then pasted it into the template, just as you've instructed.
I'll tell you what. Here's a copy of exactly what's in my phpinclude_start template. Take a look and see if you can see anything wrong, please. I want so badly for this to work.
I'll check out your problem later, don't have time for it now. At first glance I couldn't see anything wrong with your phpinclude_start template, so I'm quite stumped at the moment.
I'll dig into it more when I have the time, though!
I'll check out your problem later, don't have time for it now. At first glance I couldn't see anything wrong with your phpinclude_start template, so I'm quite stumped at the moment.
I'll dig into it more when I have the time, though!
No biggy. The board isn't going to go live for quite awhile yet, but I really would love to have this hack working by the time I go live. I love this hack!!! Yeah, I'm a sadistic bastard too. Hehehe
Again I'd like to ask if there is a way to combine this with adding the user to everybody's ignore list so his posts if he makes it on the forum will not show up?
Again I'd like to ask if there is a way to combine this with adding the user to everybody's ignore list so his posts if he makes it on the forum will not show up?
Bo
There is, but that's a ++++load of work which is kinda pointless as you can just put people in the Miserable group first, and then also add them to Tachy C yourself. Much better, no need for a ton of unnecessary file edits..