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)

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

Quote:

Originally Posted by TheHeggy
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 ;)

[high]* Boback rubs his hands together![/high]

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.

Code:

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

Quote:

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

Quote:

Originally Posted by bulbasnore
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/showthrea...3&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
Quote:

if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $miserableid))
and replace with
Quote:

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

Quote:

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

Quote:

Originally Posted by Imperial Fritz
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?

PHP Code:

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:

PHP Code:

||$_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
Code:

echo ' ';
with
Code:

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

Quote:

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

PHP Code:

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


What would be the code for numerous IP's?

mtrac 04-17-2005 01:59 AM

Quote:

Originally Posted by The Dok
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
PHP Code:

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

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


All times are GMT. The time now is 09:14 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.01509 seconds
  • Memory Usage 1,834KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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