Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Miserable Users for vB3 Details »»
Miserable Users for vB3
Version: 1.00, by KuraFire KuraFire is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-04-2004 Last Update: Never Installs: 276
 
No support by the author.

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)
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(60120);
        for(
$x=0$x<$glitch$x++)
        {
            echo 
' ';
            
sleep(1);
        }
    
        
$vboptions['floodchecktime'] *= 10;
        
$glitch rand(0100);
        if(
$glitch 90)
        {
            
$vboptions['enablesearches'] = 0;
        }
    
        
$glitch rand(0100);
       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(0100);
       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:
PHP Code:
     $glitch rand(60120); 
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(0100);
       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.

Comments
  #102  
Old 08-25-2004, 03:38 PM
pablo pablo is offline
 
Join Date: Apr 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by buro9
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.
Reply With Quote
  #103  
Old 08-26-2004, 01:58 PM
Borisch Borisch is offline
 
Join Date: Mar 2002
Location: Sweden
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one of the most brilliant hacks EVER!
Three thumbs up!!!
Reply With Quote
  #104  
Old 09-04-2004, 09:32 PM
BeasTboyz BeasTboyz is offline
 
Join Date: May 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

inFREAKINGstalled, Big thanks to the developers of this hack!
Reply With Quote
  #105  
Old 09-07-2004, 07:52 AM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #106  
Old 09-07-2004, 11:14 AM
Borisch Borisch is offline
 
Join Date: Mar 2002
Location: Sweden
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?!?"
Reply With Quote
  #107  
Old 09-30-2004, 10:17 PM
Kayn's Avatar
Kayn Kayn is offline
 
Join Date: Nov 2001
Location: Phoenix, AZ
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack is quite genious.

Mega props to both the original author and the port-to-vb3-guy.
Reply With Quote
  #108  
Old 09-30-2004, 10:47 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* KW802 clicks install so he can find this thread again in the future if he ever needs it. [/high]
Reply With Quote
  #109  
Old 10-07-2004, 10:02 PM
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
          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 ?
Reply With Quote
  #110  
Old 10-08-2004, 04:42 AM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #111  
Old 10-15-2004, 05:47 PM
crd crd is offline
 
Join Date: Aug 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07745 seconds
  • Memory Usage 2,349KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (7)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete