PDA

View Full Version : Miserable Users for vB3


KuraFire
01-04-2004, 10:00 PM
Miserable Users for vB3
Version: 1.01
vB-version: 3.0.0
Developer: KuraFire (original for vB2: Zzed)
Install-difficulty: Easiest
File edits: 0
Template edits: 1 (phpinclude_start)

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 (https://vborg.vbsupport.ru/showthread.php?t=49810))
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:

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).

// 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);
}

$vboptions['floodchecktime'] *= 10;
$glitch = rand(0, 100);
if($glitch < 90)
{
$vboptions['enablesearches'] = 0;
}

$glitch = rand(0, 100);
if ($glitch < 75)
{
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$timezone = "' . fetch_template('timezone') . '";');
eval('$gobutton = "' . fetch_template('gobutton') . '";');
$vboptions['useforumjump'] = 0;
eval(print_standard_error('error_toobusy'));
}

$glitch = rand(0, 100);
if ($glitch < 80)
{
if ($glitch < 50)
{
exit;
}
$templatecache['headinclude'] = '<META HTTP-EQUIV=\"refresh\" CONTENT=\"5; URL=$vboptions[forumhome].php\" />' . $templatecache['headinclude'];
}
}
unset($ids, $glitch, $miserableid, $x);


Done! :)

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:
$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:
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:
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:
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:
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:
$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 :)).

corsacrazy
01-05-2004, 11:53 AM
why would you want to drive people away ?

KuraFire
01-05-2004, 11:55 AM
Banning doesn't always help, people tend to evade the ban by signing up again and what not. Making it difficult for them to be on your site without them realizing that it's your doing will make them want to go because it's annoying for them to stay, whereas banning them over and over again makes it annoying for YOU if THEY stay.

RixiuS
01-05-2004, 12:38 PM
Thanks, KF. Maybe I'll find use for this when my forums get more popular, as for now; there's been noone that naughty :)

TheAnt
01-05-2004, 07:18 PM
oh yes, now the fun begins

*install

MGM
01-06-2004, 12:29 AM
w00t! thanks man, my site wouldn't have been the same without this :D

* MGM clicks Install

MGM out

KuraFire
01-06-2004, 08:07 AM
Glad you guys enjoy :)

And keep in mind - this is not so much my hack, more is it a port of Zzed's hack. He came up with the idea and the initial code, I've only ported it and made it a little better.
(this to ensure people don't go blaming me for trying to steal someone else's hack)

dynamite
01-06-2004, 01:19 PM
You know... I never thought I would use this, but I had 14 people sign up yesterday and posted a bunch of crap on my site. I have wasted my valuable time having to delete all their posts. Should I send them a little email that says "Welcome to hell"? Maybe that will encourage them to come back to the site !!!

KuraFire
01-06-2004, 02:34 PM
Just make sure to be careful, you don't want those members to figure out that they are placed in a Miserable Users group! :)

Gary King
01-06-2004, 08:04 PM
Does this count as a hack though, because there are no code changes as it states in the rules..? :) :p

EDIT: Sorry about that, my mistake there is a forum for phpinclude hacks actually :)

KuraFire
01-07-2004, 08:08 AM
yeah, I put it in here though because the original hack was a file edit hack and that one was placed in this Category of hacks, so for the sake of people familiar with the vB2 hack, I've placed it here instead of in Mini-mods.

buro9
01-07-2004, 08:20 AM
It's good in here... I found it because it was in here... and I've used the original hack... far more effective than banning... as they're able to log off and register a new user and IP banning is a heavy handed tool when you have proxies involved.

The only thing I'd like to see is a small addition... Add a permanent cookie to the client of a banned user so that if they manage to log out they are still in hell. Of course... this would need a lookup to confirm that the user is still 'miserable', but if they cookie contained the userId of the user that was miserable... and then you could check the database to see if they're still miserable and only clear that cookie if the user associated with the cookie has changed status.

The problem I saw is that I know of two users who live together... one of whom might soon earn miserable status... but the other user would not, and thus they would see swiftly that the user had been tampered with... so the above would just render that browser useless until they manually cleared all cookies.

Finally... it would be lovely to see one more minor adjustment... to make the 'tone down' stuff an option... so you'll have the ability to make someone 'slightly miserable' and 'very miserable' :)

KuraFire
01-07-2004, 08:30 AM
I've considered using $vboptions for the percentage/chance checks, so that you could tone it down via options, but decided against it for now, only because that makes the Installation of this hack a LOT more 'complicated'. Mainly because the Hack Tracking Log is not done yet, so once it is I'll release a HTL-installer that comes with $vboptions for the toning down.


As for a cookie and all that stuff - I'll think about it. It seems like a good idea, but I'm not sure how hard to implement it is.. I don't want to make this Hack complicated as it's such a simple thing, and should remain a simple thing. I hate unnecessary file edits. ^_^

Gary King
01-07-2004, 01:01 PM
yeah, I put it in here though because the original hack was a file edit hack and that one was placed in this Category of hacks, so for the sake of people familiar with the vB2 hack, I've placed it here instead of in Mini-mods.
Yep that's true :)

SloppyGoat
01-09-2004, 09:19 PM
OMG!!! This is wonderful!!! I will definitely be installing this one!!! Thank you sooo much!!! LOL

bolynn
01-10-2004, 02:56 AM
How can one let Moderators add idiots to the miserable group not only Admins?

bo

SloppyGoat
01-10-2004, 05:46 AM
HELP!!! I did this hack, and tried it on my test account. Now I can't get back into the CP to log myself back in as admin! It won't let me in! What do I do? I can't put the template back if I can't get into the CP! AAARRRGGGHHHH!!!!

When I try to login, I get this. :(

Fatal error: Maximum execution time of 30 seconds exceeded in g:\test\global.php(386) : eval()'d code on line 11

Fatal error: Maximum execution time of 30 seconds exceeded in g:\test\includes\functions.php on line 467

[edit] I guess it finally timed out, but this hack is definitely not working for me. :( I tried this 4 times, and I get the same results.

GamerzWorld
01-10-2004, 07:40 AM
I cant get back in either lol. Tryed on test now im going slow as hell and getting blank pages lol

SloppyGoat
01-10-2004, 07:46 AM
If you're on a local host, you can use your IP and it'll get you back in. Otherwise, you're going to have to wait for it to time out. :bored: On the 2.X version, all I had to do was login to the ACP, then I was back in business. This seems to block my admin account completely. https://vborg.vbsupport.ru/external/2004/01/5.gif

KuraFire
01-10-2004, 03:32 PM
HELP!!! I did this hack, and tried it on my test account. Now I can't get back into the CP to log myself back in as admin! It won't let me in! What do I do? I can't put the template back if I can't get into the CP! AAARRRGGGHHHH!!!!

When I try to login, I get this. :(

Fatal error: Maximum execution time of 30 seconds exceeded in g:\test\global.php(386) : eval()'d code on line 11

Fatal error: Maximum execution time of 30 seconds exceeded in g:\test\includes\functions.php on line 467

[edit] I guess it finally timed out, but this hack is definitely not working for me. :( I tried this 4 times, and In get the same results.
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.

KuraFire
01-10-2004, 03:34 PM
How can one let Moderators add idiots to the miserable group not only Admins?

bo
You can make the Miserable group a Banned group, that way Moderators should be able to put users into the group from the Mod CP. :)

GamerzWorld
01-10-2004, 03:35 PM
Lucky i had a mate to log on my admin accoutn to make my test account normal :P

SloppyGoat
01-10-2004, 06:06 PM
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.

bolynn
01-10-2004, 09:37 PM
It is working nice except the victim is not put into everybody's ignore list. Is there a way to send him to Coventry as well using the same usergroup?

bo

KuraFire
01-11-2004, 12:23 PM
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!

Rampag33
01-12-2004, 12:15 AM
Great hacc. Not sure if I will use this but does give an idea other then banning or refusing ip. Great job

SloppyGoat
01-12-2004, 01:26 AM
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 ;)

Sephiroth 9999
01-12-2004, 05:50 AM
Excellent work Kura. :) I've been having a slight problem with a certain member on my forum... he didn't deserve a banning so I'll give him this instead. ;)

bolynn
01-12-2004, 03:22 PM
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

KuraFire
01-12-2004, 06:21 PM
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..

bolynn
01-13-2004, 01:50 AM
The reason I asked for that is that I wish my moderators to be able to add people to the ignore list as well as the miserable group. The current method where you have to add user numbers in a row is a pain and it is not available for moderators only admins.

Bo

Sal Collaziano
01-13-2004, 10:44 AM
Is there any way to make this work for more than one user group? Could it possible be as easy as adding a comma and another group id? :D

Frank
01-13-2004, 01:21 PM
Fantastic hack, thanks.

KuraFire
01-14-2004, 08:55 PM
The reason I asked for that is that I wish my moderators to be able to add people to the ignore list as well as the miserable group. The current method where you have to add user numbers in a row is a pain and it is not available for moderators only admins.

Bo
If I have the time for it at some point, I can try and look into making a cron script for you that will put all users from the Miserable group to the Tachy C list. I can't promise that I'll have that done any time soon though :/

bolynn
01-14-2004, 10:09 PM
Thank you very much in advance.

Bo

SloppyGoat
01-18-2004, 10:13 PM
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.Ok, I don't know much about PHPMyAdmin, but I tried this hack again, with the same results. So, this time I went into PHPMyAdmin and looked for the phpinclude template. I found that there were two! Both appeared identical, but one had a "-1" and one had a "1" for templatesetid, and there are two different templateid numbers. Could this be the problem? Should I delete the one with the "1" and the earlier id? (Is this normal?) I do hope this is the problem, otherwise I don't just know. Maybe you can shed a little light on this? I'd be forever grateful.

KuraFire
01-18-2004, 10:22 PM
Ok, I don't know much about PHPMyAdmin, but I tried this hack again, with the same results. So, this time I went into PHPMyAdmin and looked for the phpinclude template. I found that there were two! Both appeared identical, but one had a "-1" and one had a "1" for templatesetid, and there are two different templateid numbers. Could this be the problem? Should I delete the one with the "1" and the earlier id? (Is this normal?) I do hope this is the problem, otherwise I don't just know. Maybe you can shed a little light on this? I'd be forever grateful.
Don't delete them, as that will break your vB (if you delete the -1 one) / revert your template to the original (if you delete the 1 one).


I'm gonna release the Hack Tracking Log soon, and after that I'll re-release this hack with an HTL installer. :)

SloppyGoat
01-19-2004, 12:22 AM
Cool!!! Thanks! I kind of figured I'd be asking for trouble if I deleted anything in there. :nervous: I'm looking forward to your re-release! ;) I just hope I can get it working. I just can't find anything I could possibly screw up on this one. The install is so quick and easy. :up:

gmarik
01-19-2004, 07:22 AM
This is tough. Any .txt install file?

KuraFire
01-19-2004, 08:47 AM
This is tough. Any .txt install file?
no, wait for the HTL installer..
it's not hard at all guys... :|

SloppyGoat
01-19-2004, 09:15 AM
I didn't see anything hard about it at all. It's easy to install. It just didn't work right for me and one other person, for some odd reason. I think everyone else said it worked fine, right? Why me??!! DOH!!! :ermm: :confused:

mharmon
01-21-2004, 02:06 PM
This hack is SOOO evil -- why TURN down the pain?? I'd turn it up!

buro9
01-21-2004, 02:26 PM
This hack is SOOO evil -- why TURN down the pain?? I'd turn it up!
Or do as I did and remove the calls to the error page ;)

This way it doesn't even look like my servers fault... they just think they have strange network problems ;)

SloppyGoat
01-27-2004, 10:57 PM
This hack is SOOO evil -- why TURN down the pain?? I'd turn it up!Because, it's even more frustrating if they get a chance to type out a post, then it screws up on them! :D If they can't even get a page to load, they won't waste anymore time trying. But, if you get it tuned just perfectly, then they'll continue to try, getting more and more frustrated. The main objective, IMO, is to give them the false hope that they may actually be able to post something. LOL

Silverstangs
02-11-2004, 06:31 PM
I love this hack, now can you add one more feature to it. Can you add a random "fly away" hack in which us admins can add a list of a dozen or so sites and the person in Misery will randomly end up redirected to on of those dozen or so sites?

Thanks
--Silver

KuraFire
02-11-2004, 10:21 PM
I love this hack, now can you add one more feature to it. Can you add a random "fly away" hack in which us admins can add a list of a dozen or so sites and the person in Misery will randomly end up redirected to on of those dozen or so sites?

Thanks
--Silver
Sure, I'll add that to the HTL version upon re-release :)

94DROPTOPZ
02-14-2004, 01:48 PM
"clicks install"

This is great, I don't know how I have lived without this :devious:

RDX1
02-15-2004, 01:01 AM
VB Beta4:

Fatal error: Call to undefined function: is_member_of() in /path/to/vb/removed/global.php(345) : eval()'d code on line 8

KuraFire
02-15-2004, 09:48 AM
NerdNations, please put your PHP code in a [PHP] code block, NOT in a quote block!!!!

Reeve of shinra
02-15-2004, 03:24 PM
Installed... havent tried it out yet but so far so good. Glad to see one of my favorite hacks ported to vb3.

RDX1
02-15-2004, 05:23 PM
NerdNations, please put your PHP code in a PHP code block, NOT in a quote block!!!!


Well, it was the same code you posted except with the UserID changed. I had trouble with the code when I edited the times. I also tried with it unedited and it does not work.

// Miserable Hack for vB3
// Ported by KuraFire to vB3, original vB2 version by Zzed
// ################################################## #####
// Put the id of your Miserable Usergroup here:
$miserableid = 13;

// 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);
}

$vboptions['floodchecktime'] *= 10;
$glitch = rand(0, 100);
if($glitch < 90)
{
$vboptions['enablesearches'] = 0;
}

$glitch = rand(0, 100);
if ($glitch < 75)
{
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$timezone = "' . fetch_template('timezone') . '";');
eval('$gobutton = "' . fetch_template('gobutton') . '";');
$vboptions['useforumjump'] = 0;
eval(print_standard_error('error_toobusy'));
}

$glitch = rand(0, 100);
if ($glitch < 80)
{
if ($glitch < 50)
{
exit;
}
$templatecache['headinclude'] = '<META HTTP-EQUIV=\"refresh\" CONTENT=\"5; URL=$vboptions[forumhome].php\" />' . $templatecache['headinclude'];
}
}
unset($ids, $glitch, $miserableid, $x);

KuraFire
02-15-2004, 07:49 PM
*sigh*

okay, please REMOVE the part with the code from your earlier post where you have it in a QUOTE section.

We don't want code put in quote blocks because those are visible to non-licensed people, whereas code in code/php/html blocks is not.

Hence, please remove your php code in the quote block in this post (https://vborg.vbsupport.ru/showpost.php?p=476815&postcount=48). :)

RDX1
02-15-2004, 09:03 PM
*sigh*

okay, please REMOVE the part with the code from your earlier post where you have it in a QUOTE section.

We don't want code put in quote blocks because those are visible to non-licensed people, whereas code in code/php/html blocks is not.

Hence, please remove your php code in the quote block in this post (https://vborg.vbsupport.ru/showpost.php?p=476815&postcount=48). :)
So what is the problem? Any help?

KuraFire
02-16-2004, 05:28 PM
I think someone in the Dev team moved the function again, meaning I have to change this again.

*sigh*

I hate when they move functions to new files all the time.. :(

I'll look into it for the HTL version.

RDX1
02-16-2004, 05:39 PM
I think someone in the Dev team moved the function again, meaning I have to change this again.

*sigh*

I hate when they move functions to new files all the time.. :(

I'll look into it for the HTL version.
I'm using Beta4, This was meant for what version? I'll upgrade when gold comes out..

KuraFire
02-17-2004, 04:52 PM
Oh, you're using BETA 4?

Hrm, ok, this won't work until you upgrade to the current release.

You really shouldn't be using Beta 4 anymore, it's quite outdated and filled with several security holes...

RDX1
02-17-2004, 05:40 PM
Oh, you're using BETA 4?

Hrm, ok, this won't work until you upgrade to the current release.

You really shouldn't be using Beta 4 anymore, it's quite outdated and filled with several security holes...
I'm doing fine. I'll upgrade when gold is released.

KuraFire
02-17-2004, 06:40 PM
Most of the hacks that exist now will not work on beta 4 though :)

kneesparx
02-25-2004, 07:33 PM
this hack is funny, i wont use it but i like it :D

Ocean
03-28-2004, 11:08 PM
Is this hack fully stable and ready for vB 3.0 Gold? Or does it still need to be updated?

Loyalty4Life
03-28-2004, 11:23 PM
Nice hack. I'll use this for sure.

/me clicks install.

TheFiringLine
03-29-2004, 11:56 AM
I installed this hack on VB 3.0 and it doesn't appear to work. I've looked thru this thread and can't determine if the glitches with 3.0 were resolved.

KuraFire-
Is this hack good to go with 3.0?
Thanks-
Rich

admiralapril
03-31-2004, 04:36 AM
I installed this hack earlier today and it seems to work fine (3.0.0) but now I can no longer log out. What could be the cause of this? Great hack, but I guess I'll be un-installing. :ermm:

kaotic
04-03-2004, 03:18 PM
Would it be possible to make a specific IP address 'miserable'?

Bryan Ex
04-09-2004, 04:56 AM
Installed and now running on my site with VB3 Gold without problems. Installation took about 2 minutes plus another 45 to be able to log out the test user name. LMAO I did tone it down considerably over the default settings for errors but... what an awesome idea. Nice way to run someone off without the usual hassles and harassment.

DenzoForums
04-21-2004, 03:56 PM
Click* Install !!

Just installed this on VB 3.0.1,and it works great. My site is brand new with only
Members: 12
Threads: 53
Posts: 115

but I figured if things go right, i will be getting some unsavory characters in my forums, and would need a tool like this.

Thanks!
Dave

JaNa
04-22-2004, 12:47 AM
Blah I'll just wait for the HTL Packet. Looks awesome tho! I don't want these annoying ***holes coming to my site :D

Boofo
04-22-2004, 03:02 AM
Installed and now running on my site with VB3 Gold without problems. Installation took about 2 minutes plus another 45 to be able to log out the test user name. LMAO I did tone it down considerably over the default settings for errors but... what an awesome idea. Nice way to run someone off without the usual hassles and harassment.

Can you share you settings after you toned them down?

Keyser S?ze
04-22-2004, 05:17 AM
well, couldnt there be some php files to edit so we can have a button in there profile that sets them to miserable, like in vb2? i cant use it with user groups since i use that for something else and would be too much of a pain in the ass

Bryan Ex
04-22-2004, 05:28 AM
Can you share you settings after you toned them down?
Sure thing Boofo. I'll have to dig up that file again but will post them shortly for ya.

Bryan Ex
04-22-2004, 05:31 AM
well, couldnt there be some php files to edit so we can have a button in there profile that sets them to miserable, like in vb2? i cant use it with user groups since i use that for something else and would be too much of a pain in the ass
Not sure about a profile link but it does work very well by just by adding them to Miserable Users as a secondary user group. A single check box and you don't change any of their other settings. Maybe I'm warped but this has got to be one of my three favourite hacks.

Bryan Ex
04-22-2004, 03:07 PM
Here ya go Boofo... I tested this out with a few users and they found these settings to be pretty realistic. Note: these are only the glitch settings and not the complete hack code.

{
$glitch = rand(5, 10);
for($x=0; $x<$glitch; $x++)
{
echo ' ';
sleep(1);
}

$vboptions['floodchecktime'] *= 10;
$glitch = rand(0, 100);
if($glitch < 35)
{
$vboptions['enablesearches'] = 0;
}

$glitch = rand(0, 100);
if ($glitch < 65)
{
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$timezone = "' . fetch_template('timezone') . '";');
eval('$gobutton = "' . fetch_template('gobutton') . '";');
$vboptions['useforumjump'] = 0;
eval(print_standard_error('error_toobusy'));
}

$glitch = rand(0, 100);
if ($glitch < 70)
{
if ($glitch < 70)
{
exit;
}

switchstance
04-22-2004, 04:53 PM
Here ya go Boofo... I tested this out with a few users and they found these settings to be pretty realistic. Note: these are only the glitch settings and not the complete hack code.

{
$glitch = rand(5, 10);
for($x=0; $x<$glitch; $x++)
{
echo ' ';
sleep(1);
}

$vboptions['floodchecktime'] *= 10;
$glitch = rand(0, 100);
if($glitch < 35)
{
$vboptions['enablesearches'] = 0;
}

$glitch = rand(0, 100);
if ($glitch < 65)
{
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$timezone = "' . fetch_template('timezone') . '";');
eval('$gobutton = "' . fetch_template('gobutton') . '";');
$vboptions['useforumjump'] = 0;
eval(print_standard_error('error_toobusy'));
}

$glitch = rand(0, 100);
if ($glitch < 70)
{
if ($glitch < 70)
{
exit;
}
Thanks, your numbers are much better. My testing was showing that it's way too slow to be believable.

This hack rocks quite hard tho. Loving it. :)

Boofo
04-22-2004, 05:41 PM
Here ya go Boofo... I tested this out with a few users and they found these settings to be pretty realistic. Note: these are only the glitch settings and not the complete hack code.

Thank you, sir. ;)

Bryan Ex
04-22-2004, 07:09 PM
Thank you, sir. ;)
Thanks go to the original author of this hack... now go forth and make users miserable. LMAO

Stu
04-24-2004, 03:45 PM
Would it be a big deal to somehow adapt this to work on an IP address.
I've had members made miserable who after talking to other members realise that it is only their account that is affected.
They clear their cookies and re-register!!
If this could be linked to any user with a certain IP or email it would give added protection.

Jujimufu
05-14-2004, 04:01 PM
I've always loved this hack. It's great to see it back on VB3 // It's even better now it's user group set and mods can apply it. + You can even lift it after X amount of days! This does come useful you know.

>:)

Bryan Ex
06-08-2004, 05:30 AM
You can even lift it after X amount of days!
Is there a way to automate the process... after 3 days it expires for example?

Cold Steel
06-08-2004, 06:25 PM
/me installs.

Lee Davies
06-08-2004, 09:22 PM
Is there anyway to make this work for Guest users but it stops slowing down when they click register?

For example, if a banned member is viewing the forum as a guest, i'd like that slowed down... but if it is a true member, and they click register, the registration process isn't affected?

Merjawy
07-12-2004, 01:53 AM
Where was this hiding? :)

I used this in vB2 and was waiting for vB3 one.. I just noticed it.. its great one and most wanted/needed :)

thnx

aranthorn
07-18-2004, 10:12 PM
In freaking stalled. This is a great MOD.

thx to the original maker and to the porting to 3

MrFaldyn
07-20-2004, 10:17 PM
/me installs! could have used this a long time ago. thanks alot!

Rambo
07-24-2004, 04:14 PM
haha nice mod, installed and works a charm ^_^

Renat_
07-26-2004, 01:17 PM
Installed, thank you!

monstergamer
07-26-2004, 01:33 PM
/me Installed, thank you!

9mmPrincess
07-27-2004, 11:28 PM
i cant get this to work, not sure what im doinig wrong...can someone help me out? i did exactly what the instructions said. can copy paste what i put in the phpinclude_start template if you need... just really want it to work, i could really use this hack...

btw when i say it doesnt work, i mean that i log in with the test account and nothing happens-pages load normally with no problems :/

EDIT nevermind got it to work, great hack, *clicks install* :)

9mmPrincess
07-28-2004, 03:04 PM
i cant get this to work, not sure what im doinig wrong...can someone help me out? i did exactly what the instructions said. can copy paste what i put in the phpinclude_start template if you need... just really want it to work, i could really use this hack...

btw when i say it doesnt work, i mean that i log in with the test account and nothing happens-pages load normally with no problems :/

EDIT nevermind got it to work, great hack, *clicks install* :)
actually, it doesnt work :/ i had two different ppl log into the test account, and all they get is "page cannot be displayed" errors. the pages never load, they never load slow-all of the other glitches dont happen-just 500 errors all the time, it doesnt let you view anything. :(

id really like to use this hack if i could get it to work correctly :/

SmartGnome
07-29-2004, 04:56 PM
Installed and Thanks

sblum
07-29-2004, 05:31 PM
This doesn't seem to be working at all for me...

sblum
07-29-2004, 05:35 PM
haha, nevermind, I'm an idiot. This rocks :)

9mmPrincess
07-31-2004, 12:31 PM
actually, it doesnt work :/ i had two different ppl log into the test account, and all they get is "page cannot be displayed" errors. the pages never load, they never load slow-all of the other glitches dont happen-just 500 errors all the time, it doesnt let you view anything. :(

id really like to use this hack if i could get it to work correctly :/

could i get some help with this? i changed the chance of getting an error page to a really low number and it didnt help. anyone?

9mmPrincess
08-03-2004, 11:25 PM
could i get some help with this? i changed the chance of getting an error page to a really low number and it didnt help. anyone?
*bump*

could i please get some help with this?

Malice
08-04-2004, 11:36 PM
SO what is the Default setting percentage of getting a page?

Malice
08-04-2004, 11:37 PM
How can this be adabpted so MODS can do it...just installed VB3 and a little new...learning quickly...

Malice
08-04-2004, 11:38 PM
How can this be adabpted so MODS can do it...just installed VB3 and a little new...learning quickly...

Ahh figured it out!

???`S?LV?R???`
08-06-2004, 04:01 PM
this works fine for 3.0.3 right?

Mickie D
08-15-2004, 08:56 AM
this hack is easily up there with the best of them

wonderful hack thanks so much

im still laughing to myself been playing a few pranks witht his on the mods and they are all on the shoutbox moaning lololololololol

top hack

pablo
08-25-2004, 08:15 AM
any ideas on how to get it to work with vb3.0.0b4 ?

buro9
08-25-2004, 08:22 AM
any ideas on how to get it to work with vb3.0.0b4 ?

Why on earth would you want to do that?

You should upgrade your board to the latest stable code... for which the hack will work effortlessly... rather than downgrade the hack to support a beta codebase that you really shouldn't be using on your site (because it's a beta!).

pablo
08-25-2004, 03:38 PM
Why on earth would you want to do that?

You should upgrade your board to the latest stable code... for which the hack will work effortlessly... rather than downgrade the hack to support a beta codebase that you really shouldn't be using on your site (because it's a beta!).I don't think that is the issue at hand. I am well aware of the implications of using this version of code.

Anyway in the end I just allowed the 'sleep' part of the code. That should do the trick for now.

Borisch
08-26-2004, 01:58 PM
one of the most brilliant hacks EVER!
Three thumbs up!!!

BeasTboyz
09-04-2004, 09:32 PM
inFREAKINGstalled, Big thanks to the developers of this hack!

venomx
09-07-2004, 07:52 AM
Does this work on vb3.0.3?

Also as meantioned in another thread about the user figuring it out... What do you say to them and others if they post asking questions as to why they was the only one having problems?

Borisch
09-07-2004, 11:14 AM
Sounds like you've never done customer support :P

"Must be a problem with your ISP"
"Can't be on our side, nobody else is having problems"
"I'll have a look into it, can't promise anything though"
"Have you tried reinstalling windows?"
"Maybe there's a knot on your TP cable? That can really choke the trafffic"
"Ever considered that NOBODY LIKES YOU?!?"

Kayn
09-30-2004, 10:17 PM
This hack is quite genious.

Mega props to both the original author and the port-to-vb3-guy. :D

KW802
09-30-2004, 10:47 PM
* KW802 clicks install so he can find this thread again in the future if he ever needs it. :D

teksigns
10-07-2004, 10:02 PM
this code in phpinclude_start only produces a solid white page ......


i can insert the code without the miserable user hack
and it still only produces a white page .......


eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$timezone = "' . fetch_template('timezone') . '";');
eval('$gobutton = "' . fetch_template('gobutton') . '";');
$vboptions['useforumjump'] = 0;
eval(print_standard_error('error_toobusy'));


anyone have any idea why it does not display the correct thing ?

rinkrat
10-08-2004, 04:42 AM
I've always found that it's better to be on the offensive rather than the defensive with the morons. This is a nice weapon.

crd
10-15-2004, 05:47 PM
We have a guy who is driving our moderaters nuts with proxies. So I think it's time for this hack.
Buahahahaha! This is gonna be fun.

crd
10-15-2004, 06:48 PM
Poor old miserable test user. When I logged in as him to test this the server was so "busy" I couldn't get in to log out. So I had to clobber all my bb cookies. As long as it's not applied to *me* this is a great hack. Buahahaha.... INSTALL..... click! :devious:

pseudocode
10-23-2004, 02:50 PM
Outstanding!! <clicks INSTALL>

bondjetta
10-23-2004, 03:29 PM
This is hilarious AND awesome :D

Thank you for this, my site isn't really one that needs to "ban" users, but aggrevating them...now THAT's handy :D

rlamego
11-25-2004, 08:17 AM
This is pure evil genius material! You and Zzed must have Mini-mes following you around! =)
Will install for sure!

folkish
12-02-2004, 08:24 PM
A truly useful hack.

* folkish clicks install. :)

Viks
12-02-2004, 08:47 PM
Great Mod for VB.
thanks KuraFire.

djjeffa
12-05-2004, 04:26 PM
This hack is awsome I have been using it for a month on my 3.0.3 vb , Ialso used a trap banned hack so they cant log out but now after a moth one of the members found a way out and re regestered so I want to know if this hack could be added to work with certin ip address?

Brent H
12-21-2004, 12:07 AM
Gotta say, this is way more effective than outright banning someone. I've got two users on my forums who haven't really done anything wrong, and if I just ban them it will look like I'm some kind of elitist dictator ;) This way they just think their computer is all screwed up. LOL

Rock on.

Viks
12-21-2004, 10:24 AM
TheHeggy, wudn't the users create another ID to get around the issue!? The hack doesnt work around the IP address but only the username. :rolleyes:

djjeffa
12-22-2004, 02:28 AM
TheHeggy, wudn't the users create another ID to get around the issue!? The hack doesnt work around the IP address but only the username. :rolleyes:

well the thing is if they dont know whats going on then why make a new user name lol i used the traped hack aswell to help prevnt that if they try

Brent H
12-22-2004, 04:32 AM
I did the same thing. ;) They don't know they're being played with so they assume my site is screwed up and go somewhere else. If they DO re-register somehow it'll be easy to spot soon enough anyways.

Only thing is that I wish I knew how to make it forward them to a random page.

trackpads
12-22-2004, 06:30 AM
Gotta say, this is way more effective than outright banning someone. I've got two users on my forums who haven't really done anything wrong, and if I just ban them it will look like I'm some kind of elitist dictator ;) This way they just think their computer is all screwed up. LOL

Rock on.
Ahh.. so you are just a sneaky dictator :) (Only kidding, not serious :) )

Boback
12-24-2004, 10:24 PM
Oh so bloody installed ;)

* Boback rubs his hands together!

smess
01-10-2005, 04:35 PM
what if you wanted to do this for more than one user group?

Marco van Herwaarden
01-10-2005, 07:22 PM
Why you would want that?

Independent on the usergroups a member has, you can give them the secondary membergroup of the miserable userhack

TMAC
01-12-2005, 02:55 PM
First:
Thank You for the hack.

Now will it work with Vbulletine 3.05?

Thank again :)

loxosceles
01-16-2005, 10:25 AM
Here's a modified version of the template. The delay is wildly variable from 1 to 20 seconds, and there's an additional 20 second delay if it decides to display a blank page. Half of the time, there's a 2-4 minute refresh to the prior page, regardless of whether it's the vbulletin forum or elsewhere. You can go further back in the browser history by using -2 or lower instead of -1 in the javascript.


// Miserable Hack for vB3
// Ported by KuraFire to vB3, original vB2 version by Zzed
// #############################################
// Put the id of your Miserable Usergroup here:
$miserableid = 10;

// 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))
{
$vboptions['floodchecktime'] *= 10;

$glitch = rand(0, 100);
// disable searching?
if($glitch < 70) {
$vboptions['enablesearches'] = 0;
}

sleep(rand(1,20));

$glitch = rand(0, 100);
// blank page glitch
if ($glitch < 20) { echo ' '; sleep(20); exit; }

// refresh glitch - 50% chance independent of the blank page glitch
if ($glitch > 50) {
$refdelay = rand(110, 245);
// orig URL=$vboptions[forumhome].php
$templatecache['headinclude'] = '<META HTTP-EQUIV=\"refresh\" CONTENT=\"' . $refdelay . '; URL=javascript:history.go(-1)\" />' . $templatecache['headinclude'];
}
}
unset($ids, $glitch, $miserableid, $refdelay, $x);
// End of Miserable Users Hack

bulbasnore
01-17-2005, 06:21 AM
Not working for me on 3.0.5. Unless my test user is REALLY lucky. I have the right group ID and the user is in there with that as his secondary group. No difference in his ability to access the board.

Can anyone confirm it works on 3.0.5?

Gnappy
01-20-2005, 10:58 PM
/me installed, thx!

yoyoyoyo
01-20-2005, 11:00 PM
Not working for me on 3.0.5. Unless my test user is REALLY lucky. I have the right group ID and the user is in there with that as his secondary group. No difference in his ability to access the board.

Can anyone confirm it works on 3.0.5?
it works on 3.0.5 and 3.0.6

djjeffa
01-21-2005, 12:21 AM
Not working for me on 3.0.5. Unless my test user is REALLY lucky. I have the right group ID and the user is in there with that as his secondary group. No difference in his ability to access the board.

Can anyone confirm it works on 3.0.5?
dont think it works if its secondary group

egharris
01-23-2005, 12:50 AM
How do I get the undesirable user to logout so that he will be affected when he logs back in.

I've tested this on a new user act. and it works great. However the undesirable user is now in the Miserable Users group and is still posting. It seems to only work when a user logs back again. I'm assuming this has to do w/ the users cookies.

Please help or give me some insight on how to make this bastard miserable once and for all.

thanks,

Elmer

bulbasnore
01-23-2005, 02:42 AM
Problem for me was the browser I was using to copy the code (I think). Its working under 3.0.5 p1. BTW, test user is in secondary group.

Bison
01-23-2005, 11:51 AM
I like the way the older version worked. This version requires that I edit the phpinclude_start in all of my styles, where as all I had to do with the older version was go into their profile and check the "Miserable Users" box and it's done.

I wouldn't call this hack a revision ... it's nothing close to what zzed did because you didn't come close to the through work he did with his version.

This is nothing but a Mini Mod, or a template hack...

djjeffa
01-23-2005, 03:41 PM
works great for me I just add this hack to it https://vborg.vbsupport.ru/showthread.php?t=63013&page=2&pp=15
but yea if they clear ther cookies they could reg under another name. I wonder if ther is a way of setting this up with ther ip add

rh2004
01-24-2005, 02:45 PM
lol sounds good ..

Imperial Fritz
01-30-2005, 12:58 PM
Pretty helpful, although I need it to work with IPs and not userids...

Imperial Fritz
01-30-2005, 01:33 PM
Ok there's a quick and very dirty way to go with IPs, provided you have just a few users you want to do this to:

find
if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $miserableid))

and replace with
if (IPADDRESS == '111.111.111.111')

where obviously 111.111.111.111 is replaced with the IP of the user
you can add any number of IPs inside, provided you separate them with '||' (php for "OR")

example

if (IPADDRESS == '111.111.111.111' || IPADDRESS == '222.222.222.222' || IPADDRESS == '333.333.333.333')

Any coder knows this, I'm just posting it for those who have no idea how to do it.

It would have been much better if the IPs were extracted form the user profiles but I'm really not familiar enough with vB to be able to do code it...

dethfire
02-05-2005, 06:12 AM
does this work with 3.0.6?

DSMNightmare
02-17-2005, 06:29 PM
is there a way to use this for both IPs and usernames? I would prefer to do it via usernames with the option to do IPs as well.

Thank you

DSMNightmare
02-17-2005, 08:20 PM
Seems to work by just copying the original code and then adding the IP part to the "copy" of the original.

SpankMe
03-11-2005, 01:23 AM
<font color="Red">*installed.</font>

At last a way to deal with the trolls. Now if only there were a hack to deal with the troll feeders.

evo_j
03-11-2005, 12:51 PM
ok 30 mins later, can someone tell me where the phpincludes_start is located?? vbulletin 3.07??? cannot see it anywhere

Marco van Herwaarden
03-11-2005, 12:57 PM
AdminCP->Styles & Templates->Style Manager->All Style Options

jeff bourman
03-17-2005, 04:25 AM
This is a brilliant hack. Sometimes banning people is too much but random troubles over a few days is just annoying.
What is needed now is a way of scheduling it :D

Slingblade61
03-23-2005, 12:42 AM
I've been using this hack for about 3 weeks and I'd like to say this;

Sheer, unadulterated genius!

It has worked perfectly every single time and as far as I know, no one has figured out that I kicked them off the site so I don't have to deal with any attempts at re-entry.

rezovor
03-23-2005, 11:58 PM
*clicks install*

Thank you for such a wonderful hack! Honestly, I just added a user that came back as 3 different usernames. I tested it out (friend wanted to first) and it works awesome :D

udo
03-24-2005, 06:00 AM
Excellent hack.

Is there any way to apply a separate glitch for replies only.

I use the hack with very moderate glitch settings, so it just slows down the user a bit. But I'd like to be able to act more strictly if the user tries to reply to a post.

mtrac
03-26-2005, 10:11 PM
Ok there's a quick and very dirty way to go with IPs, provided you have just a few users you want to do this to:If you wanted to test for either a miserable user or a guest with specific IP (user agent would also be nice), would the following work?

if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $miserableid)||IPADDRESS=='192.168.0.1')Thanks. This hack is spectacular. I installed it, and a few weeks later added someone who contributes nothing except occasional potshots on every board he frequents. Then, I forgot about it. Saw Mr. Potshot logged in a couple of weeks ago and went to who's online to see what he was doing. Basically, nothing. :p Hasn't been back.

I now want to sic this on a nutcake lurker.

mtrac
03-27-2005, 04:30 PM
I don't know if there's already an IP variable in VB that would make this easier, but replacing the above with the following works:

||$_SERVER['REMOTE_ADDR']=='192.168.0.1'

enginethatcan't
04-03-2005, 01:23 PM
very nice bro, and easy!

LambHyjoo
04-03-2005, 02:15 PM
Very nice hack, it works, but I have a little problem : the "Server too busy" page never comes.

I have tuned the code to make it appear, but instead of showing me a "Server too busy" page, it comes blank.

Any idea ?

flee2
04-07-2005, 04:46 AM
When i move a user to the group "miserable users" this figures as a BANNED GROUP and the Reputation icon on postbit disappear. exist any way to show the reputation icon on the postbit of users in the usergroup "Miserable".

I want to hide any "evidence" to all forum that show thats this users are "banned" or some likely.

udo
04-09-2005, 03:55 PM
@ LambHyjoo

I can confirm that.
If I´m not totally wrong it´s a bug. Seems you cannot call "print_standard_error" from within a template (I think that nees a require_once(include/functions.php))
But I´ve no clue on how to fix that.
By the way I dont get a blank page, but some impressing random garbage.

@flee2

Do not move the user, just add him/her to the misserable user group or change the miserable group settings.

flee2
04-09-2005, 05:27 PM
ok, how i do to super moderators to "ban" the users, if i put that is not a banned group, the option to "move" or "add" the miserable users group don't appear.

udo
04-10-2005, 07:00 AM
@ LambHyjoo

my idea was wrong :(
to fix it replace echo ' '; with echo ''; (or remove it completly)
just above the sleep call.

@ flee2
I see, admincp access is required for that. :(

The Dok
04-14-2005, 02:12 PM
I don't know if there's already an IP variable in VB that would make this easier, but replacing the above with the following works:

||$_SERVER['REMOTE_ADDR']=='192.168.0.1'

What would be the code for numerous IP's?

mtrac
04-17-2005, 01:59 AM
What would be the code for numerous IP's?I'm not a PHP expert. There are two ways I know of to approach this.

1. Chain a couple of ORs together
||$_SERVER['REMOTE_ADDR']=='192.168.0.1' ||$_SERVER['REMOTE_ADDR']=='192.168.100.1' 2. Use strpos to see if the address is in a string of addresses
||strpos('192.168.0.1,192.168.100.1', $_SERVER['REMOTE_ADDR'])
I saw an example at http://us3.php.net/manual/en/function.strpos.php#47322 that uses arrays.

Black88LX50
04-21-2005, 04:16 AM
*Installed, thanks!

almqdad
04-21-2005, 06:03 AM
hi

is there away to use the member id instead of group id

multiple ids can be seperated by commas

is it not a good idea

almqdad
04-28-2005, 05:47 PM
Hi

any chance to modify this hack so that it can be used at user level instead of group where multiple user from different group can be added

help will be highly apprecaited

HBC
05-08-2005, 11:49 PM
Very nice hack, it works, but I have a little problem : the "Server too busy" page never comes.

I have tuned the code to make it appear, but instead of showing me a "Server too busy" page, it comes blank.

Any idea ?


same thing here.. either nothing happens after a while
or i get a white page..

never a server busy error,never kicked back to the index..

same thing with search..


also the things you have to "tone down the pain" seem to be more
variables then are in the text block to copy to the template?

VBUsers
05-09-2005, 03:44 AM
great hack works great thanks

flee2
05-09-2005, 08:37 PM
Some users questioned the issue of allow moderators to send users to the group Miserable.. but only is allowed if Miserable Users Group is a Banned Group.

when you set the Miserable group, as a Banned group, the reputation link (balance) dissapear, and don't allow to give reputation to the post of a Miserable user.

With this 2 modifications, the miserable group, can be a BANNED GROUP and the balance of Reputation Link is showed and fully functional. Of course, this don't allow to give reputation to other users BANNED, ONLY allows to show the Miserable users in the forum, as a normal user..

this modifications:

// in function_showthread.php edit
// after of:

$show['reputationlink'] = iif(($permissions['genericpermissions'] & CANUSEREP OR $post['userid'] == $bbuserinfo['userid']) AND $vboptions['reputationenable'] AND $bbuserinfo['userid'] AND $post['userid'] AND !($usergroupcache["$post[usergroupid]"]['genericoptions'] & ISBANNEDGROUP), true, false);

//add:

if ($post['usergroupid'] == "21")
{
$show['reputationlink'] = true;
}


---------------------------------------------------

// IN reputation.php edit

search:

if ($usergroupcache["$userinfo[usergroupid]"]['genericoptions'] & ISBANNEDGROUP)
{
eval(print_standard_error('error_reputationbanned' ));
}

replace by:

if (($userinfo[usergroupid] != "21") AND ($usergroupcache["$userinfo[usergroupid]"]['genericoptions'] & ISBANNEDGROUP))
{
eval(print_standard_error('error_reputationbanned' ));
}


//IN ALL CASES, REPLACE THE NUMBER "21" with the same value of $miserableid in phpinclude_start


That's all! enjoy! only rest to, set the Miserable users as a Banned group to allow moderators to move users to this group and ready to work...

REMEMBER SET ALL "21" values in the above code with de USER GROUP ID of miserable users, set in phpinclude_start at 3rd line as $miserableid

bye byeeee

almqdad
05-10-2005, 01:41 AM
hi

can you make small modification so that miserableid is user id instead of group id

in this case only administrator can do that .. the moderator will not even know about it

I am not a coder I tried but failed to get it work

please can some one help me

flee2
05-10-2005, 02:19 AM
why you need a single userid? is better a groupid.. you send to this group many users as you want...

topten
05-10-2005, 06:39 AM
When I put people in the mIserable users group there friends can now see they are not a registered user but a miserable user

hence it makes it realy easy fro them to see whats up

is there any way to display soemthing else rather than 'miserable user' as the persons title?

thanks alot

almqdad
05-10-2005, 10:46 AM
Hi flee2

it is important that no one except admin to no this moderators can easily see the member A

who is having problem login to the forum is in a strange group even if you call that group

nice member or what ever

i hope some one can modify the hack

multiple user ids can be added

T3MEDIA
05-10-2005, 12:15 PM
When I put people in the mIserable users group there friends can now see they are not a registered user but a miserable user

hence it makes it realy easy fro them to see whats up

is there any way to display soemthing else rather than 'miserable user' as the persons title?

thanks alotI belive on vb 3.0.3 and up... you can have the usergroup take over the title or not.
or what about having them as a secondary group? you can hide the group name with out hacking.

simple_john
05-11-2005, 02:33 AM
is there a way to assign miserable user to an IP address?

MegaHertz
05-15-2005, 09:21 PM
Fantastic mod!

Installed

almqdad
06-02-2005, 10:15 AM
Hi

any chance for modification

dieselpowered
06-23-2005, 10:03 PM
same thing here.. either nothing happens after a while
or i get a white page..

never a server busy error,never kicked back to the index..

same thing with search..


also the things you have to "tone down the pain" seem to be more
variables then are in the text block to copy to the template?

Same issue here...any ideas?

dieselpowered
06-24-2005, 09:41 PM
Toned down everything...all that is received is a white blank page.

Cole2026
06-29-2005, 01:52 AM
is there a way to assign miserable user to an IP address?

I am still a beginner in PHP, but this may suffice (Use this code instead of the one above : (Put the IPs you want banned in the format it says below, between the ' and ' for the $ips variable.) :mad:


// Miserable Hack for vB3
// Ported by KuraFire to vB3, original vB2 version by Zzed
// ################################################## #####
// Put the id of your Miserable Usergroup here:
$miserableid = 8;
// Put the IP of the users you want to have this effect here
/*
* Example of how to input IPS into here: 127.0.0.1 OR 192.168.1.0 OR 125.455.854.555
$ips = '';

// 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) OR $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]!=$ips)
{
$glitch = rand(60, 120);
for($x=0; $x<$glitch; $x++)
{
echo ' ';
sleep(1);
}
$vboptions['floodchecktime'] *= 10;
$glitch = rand(0, 100);
if($glitch < 90)
{
$vboptions['enablesearches'] = 0;
}

$glitch = rand(0, 100);
if ($glitch < 75)
{
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$timezone = "' . fetch_template('timezone') . '";');
eval('$gobutton = "' . fetch_template('gobutton') . '";');
$vboptions['useforumjump'] = 0;
eval(print_standard_error('error_toobusy'));
}

$glitch = rand(0, 100);
if ($glitch < 80)
{
if ($glitch < 50)
{
exit;
}
$templatecache['headinclude'] = '<META HTTP-EQUIV=\"refresh\" CONTENT=\"5; URL=$vboptions[forumhome].php\" />' . $templatecache['headinclude'];
}
}
unset($ids, $glitch, $miserableid, $x, $ips);

almqdad
06-29-2005, 01:21 PM
Hello

great affort bfoot045

in many countries they have one IP address which means you can have 1000 member with the same IP

what about using member id instead

can you modifiy it to send members based on their forum ID

thank you so much

anne123456
06-30-2005, 07:06 PM
This is brilliant!

Quick question-I tried it and was only getting white pages, I kept lowering that variable to 0 and still get white pages, but never a server busy page. I don't understand the code enough to know why this is...any ideas?

CrazyLady
07-04-2005, 08:16 PM
Anyway to include a users IP address in this along with the user group? One of my members just logs out and voila, the site is fine again. It would be better if I could make it so this hacked worked for his IP?

darcyb
07-06-2005, 03:43 PM
Does this affect them when browsing 'archives' too?

The Joint
07-08-2005, 12:07 AM
this is my FAVORITE HACK!

Thank You Kura and Zzed! Excellent work!

Eagle Creek
07-10-2005, 09:40 PM
this is my FAVORITE HACK!

Thank You Kura and Zzed! Excellent work!
Howdy!

I heared there was a vBulletin crack to bypass this hack. Anybody who knows about it??

rossco_2005
07-27-2005, 09:17 PM
Installed :) Thanks a lot for this!

m0nde
07-28-2005, 11:49 AM
I am still a beginner in PHP, but this may suffice (Use this code instead of the one above : (Put the IPs you want banned in the format it says below, between the ' and ' for the $ips variable.) :mad:


// Miserable Hack for vB3
// Ported by KuraFire to vB3, original vB2 version by Zzed
// ################################################## #####
// Put the id of your Miserable Usergroup here:
$miserableid = 8;
// Put the IP of the users you want to have this effect here
/*
* Example of how to input IPS into here: 127.0.0.1 OR 192.168.1.0 OR 125.455.854.555
$ips = '';

// 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) OR $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]!=$ips)
{
$glitch = rand(60, 120);
for($x=0; $x<$glitch; $x++)
{
echo ' ';
sleep(1);
}
$vboptions['floodchecktime'] *= 10;
$glitch = rand(0, 100);
if($glitch < 90)
{
$vboptions['enablesearches'] = 0;
}

$glitch = rand(0, 100);
if ($glitch < 75)
{
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$timezone = "' . fetch_template('timezone') . '";');
eval('$gobutton = "' . fetch_template('gobutton') . '";');
$vboptions['useforumjump'] = 0;
eval(print_standard_error('error_toobusy'));
}

$glitch = rand(0, 100);
if ($glitch < 80)
{
if ($glitch < 50)
{
exit;
}
$templatecache['headinclude'] = '<META HTTP-EQUIV=\"refresh\" CONTENT=\"5; URL=$vboptions[forumhome].php\" />' . $templatecache['headinclude'];
}
}
unset($ids, $glitch, $miserableid, $x, $ips);What you've done here would make everyone miserable...

I think you should change the following in the code above:
if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $miserableid) OR $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]!=$ips)to this:if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $miserableid) OR $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"] == $ips)By using a NOT you're making all of your users, except the targeted ones, miserable.

- Sid

GoTTi
07-29-2005, 05:39 PM
this isnt working for me.

Bounce
08-03-2005, 08:40 PM
nice :squareeyed:

GoTTi
08-12-2005, 04:49 AM
why is this not working for me???

im using it on 308. and when i test it out with another account, everything loads fine.

Eagle Creek
08-12-2005, 10:33 AM
why is this not working for me???

im using it on 308. and when i test it out with another account, everything loads fine.

Is there a 3.5 version?

kanYe
08-27-2005, 12:18 AM
This is brilliant!

Quick question-I tried it and was only getting white pages, I kept lowering that variable to 0 and still get white pages, but never a server busy page. I don't understand the code enough to know why this is...any ideas?

Same here. I don't like the emails being sent about the down pages.

crash resistant
09-13-2005, 04:36 AM
brilliant.

If God made vb hacks this would be His.

GatorV
09-15-2005, 12:06 AM
Great
/me clicks install.

DrewzR/T
10-10-2005, 06:29 PM
HAHAHAHAHAHA Awesome hack.

I toned mine down with all of em being between the 5 and 15 range because with the original numbers I couldnt make any headway using my test user. This way might be a bit more aggrevating and they wont directly email me asking whats wrong with the site.

Clicks Install!!!!!

deb0
10-17-2005, 04:05 PM
Excellent! Installs!

NoRespect
10-21-2005, 03:58 PM
Is there a 3.5 version?

:ermm:

MegaHertz
10-21-2005, 05:16 PM
Is there a 3.5 version?You can find it here (https://vborg.vbsupport.ru/showthread.php?t=93258).

MRGTB
12-20-2005, 10:53 AM
First this is a great hack that I'm thinking of installing. But I have a question first.

If a member logs out and comes back as a guest who was in a Misrable User group. Would I be right in saying he would then be able to view the site fine as a guest without any problems seeing as it's not an IP based ban hack.

Meaning he would probably be able to spot that something is wrong because he would notice he can view the site as a guest fine, but not when logged on.

Todi
12-20-2005, 02:00 PM
Gary, that is correct. However, in the latest version of this hack, you can actually specify IP's or ip-ranges that should be treated as miserable users, as well as users.

Lyte
09-21-2006, 05:21 PM
I gotta say... I'm a noob to VB and I really appreciate the detailed instructions on this one!

Lyte

JoeyAnderson
11-20-2006, 07:58 PM
Figured it out!

Arrogant-One
11-11-2007, 07:09 AM
Hi All

I have VBulletin 3.6.7 - Will this hack work on 3.6.7? it looks like quite an outdtaed hack. Will it work at all?

Alex
_____

peterpiper
12-04-2007, 01:34 PM
i can't find phpinclude_start on 3.6.7. should it be inserted into a different template?