vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Miserable Users for vB3 (https://vborg.vbsupport.ru/showthread.php?t=59727)

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

Quote:

Originally Posted by LambHyjoo
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:

PHP Code:

// 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), truefalse);

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

Quote:

Originally Posted by topten
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

I 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

Quote:

Originally Posted by tommy2watt
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

Quote:

Originally Posted by simple_john
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:

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

Quote:

Originally Posted by The Joint
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

Quote:

Originally Posted by bfoot045
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:

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;
    // 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:
PHP Code:

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:
PHP Code:

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

Quote:

Originally Posted by Da_GoTTi
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

Quote:

Originally Posted by anne123456
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

Quote:

Originally Posted by Eagle Creek
Is there a 3.5 version?

:ermm:

MegaHertz 10-21-2005 05:16 PM

Quote:

Originally Posted by Eagle Creek
Is there a 3.5 version?

You can find it here.

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?


All times are GMT. The time now is 04:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01761 seconds
  • Memory Usage 1,852KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete