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)
-   -   Trap Banned Members: They can not logout (VB3) (https://vborg.vbsupport.ru/showthread.php?t=63013)

Logician 03-26-2004 10:00 PM

Trap Banned Members: They can not logout (VB3)
 
I'm releasing this ported version of an old very tiny hack upon request. It is a 1 line hack that prevents banned usergroups (or any other usergroup you want) to log out. Since they can not log out, they can not reregister either.

The hack prevents them to clear the cookies so they are stuck with their banned usernames in the forum. But obviously this applies:
a) If user is a cookie user
b) If he is not able to clear them manually in his computer.

So the hack is effective for novices only. Tested in vB3.0.0, should work in all vb 3.x versions though. Vb2.x version is here. Click install if you use it, thanks!

VB3.5 version is here:
here



Enjoy!

Boofo 03-27-2004 08:56 AM

Welcome back! I hope this is just the first of many great hacks from you, my friend. Been waiting a long time for you to get back into the old grind with us here. ;)

gmarik 03-27-2004 09:59 AM

This is really hard - this is something to believe in...

Koutaru 03-27-2004 10:57 AM

:D Excellent. Thanks Logician!

FleaBag 03-27-2004 12:44 PM

This is definitely going to be of great use to me. :D

AutomatikStudio 03-27-2004 02:51 PM

Wow...this solves so many problems on my boards...

wrongful 03-27-2004 03:42 PM

thank you

Zachariah 03-27-2004 03:54 PM

nice

Merjawy 03-27-2004 05:25 PM

Nice hack thnx,

as for the user must be using cookies, thats easy.. you just make that group use cookies which is simple in vB3 by global edit command :)

Charlie Argueta 03-27-2004 05:33 PM

I was looking for something so evil and easy as well :D

See Ya

Mr. Brian 03-27-2004 05:42 PM

One of my idol finally back in action!

???`S?LV?R???` 03-27-2004 05:59 PM

very nice idea (clicks install)

Zelda-King 03-27-2004 07:37 PM

Thanks! Been awaiting this one.

datainternet 03-28-2004 08:39 AM

Thx dude for this great hack!!!

MFG datainternet

bluecat 03-28-2004 08:26 PM

Thank you.

bluecat 03-28-2004 10:25 PM

I found myself (as administrator) being unable to log out, even though the XX are replaced with the id's of banned and banned by mods. This happen to anyone else?

akiy 03-29-2004 12:07 AM

Wouldn't this be "not nice" for those people using public computers (eg at a library)?

TRStealth 03-29-2004 03:13 AM

Well, if they're banned, what difference would it make? The account would basically be useless.

akiy 03-29-2004 05:24 AM

True, the banned account is useless, but it also means that anyone else using that specific computer/browser will be unable to log in. For example, if I'm using a shared computer and my account gets banned on your forums, anyone else who will be using that computer to access your forums will not be able to log in (unless the cookies got wiped).

Charlie Argueta 03-30-2004 12:37 PM

In the last days I have been thinking in a evil modification :devious: is it possible to add some adons to this hack.

For example is it possible to at the same time block the access to the new threads automaticly when you using this hack, also specificate the vissible parts, as Terms of Use :rolleyes:

See Ya

GamerzWorld 03-30-2004 12:48 PM

Perfect, works great :) Ty

JoergZ 04-03-2004 07:25 PM

I had this hack already in my vB2 and now in vB3. *installed*

But I have a little suggestion for an improvement: To not insert hard-coded the usergroupid in the PHP, how about that:

PHP Code:

 if ($permissions['genericoptions'] & ISBANNEDGROUP

I have tested it and works fine for me in vB3 Gold.


Regards

J?rg

Sin City 04-05-2004 07:25 PM

wow... awesome hack man... thank you :)

RugBurn 04-05-2004 09:48 PM

Thank you sir.

MentaL 04-10-2004 07:11 PM

gr8 ;)

Massacure 04-14-2004 03:14 AM

So, what happens if they are banned while they are logged out? If they are logged out will it allow them to log in before banning them?

rinkrat 04-14-2004 04:13 AM

Edit file "login.php", find line:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// clear all cookies beginning with COOKIE_PREFIX
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

That does not exist in GOLD login.php

Logician 04-14-2004 05:43 AM

Quote:

Originally Posted by Massacure
So, what happens if they are banned while they are logged out? If they are logged out will it allow them to log in before banning them?

yes they can log in ok.

Quote:

That does not exist in GOLD login.php
It does. Check carefully around lines 50-55.

Bulent Tekcan 04-15-2004 01:59 PM

Dear JoergZ

Can you explain me ?

Quote:

Originally Posted by JoergZ
I had this hack already in my vB2 and now in vB3. *installed*

But I have a little suggestion for an improvement: To not insert hard-coded the usergroupid in the PHP, how about that:

PHP Code:

 if ($permissions['genericoptions'] & ISBANNEDGROUP

I have tested it and works fine for me in vB3 Gold.


Regards

J?rg


Logician 04-15-2004 04:40 PM

Quote:

Originally Posted by turkeyforum
Dear JoergZ

How can I add this line ?

huh?

Skyline_GT 04-26-2004 09:53 PM

Good stuff.

bluecat 04-27-2004 10:46 AM

Quote:

Originally Posted by Merjawy
Nice hack thnx,

as for the user must be using cookies, thats easy.. you just make that group use cookies which is simple in vB3 by global edit command :)

Hi. I know to go into phrase manager, but you can explain how to do this exactly? Do I have to add or edit an existing phrase, if so, what exactly? Thanks.

hollyboy 05-04-2004 09:10 PM

nice. I've clicked on install

hollyboy 05-05-2004 06:01 AM

I get this error

Parse error: parse error in /home/interfan/public_html/forum/login.php on line 63

My line 63 is:

if ($bbuserinfo['usergroupid']==15 {print_no_permission(); exit;}

Logician 05-05-2004 06:35 AM

Quote:

Originally Posted by hollyboy
I get this error

Parse error: parse error in /home/interfan/public_html/forum/login.php on line 63

My line 63 is:

if ($bbuserinfo['usergroupid']==15 {print_no_permission(); exit;}

if ($bbuserinfo['usergroupid']==15) {print_no_permission(); exit;}

0zone 05-30-2004 11:05 PM

Nice hack. :)

Thank you for posting this one.

[clicks install]

Flow Fusion 06-05-2004 01:56 PM

Thank You For This!

Cold Steel 06-08-2004 06:22 PM

/me installs.

dutchbb 06-12-2004 12:16 PM

Parse error: parse error in /home/httpd/vhosts/dutchbodybuilding.com/httpdocs/forum/login.php on line 58


if ($bbuserinfo['usergroupid']==9) OR $bbuserinfo['usergroupid']==11) {print_no_permission(); exit;}



SOLVED!!

should be

if ($bbuserinfo['usergroupid']==9 OR $bbuserinfo['usergroupid']==11) {print_no_permission(); exit;}

Great hack logician :D

sv1cec 07-01-2004 06:50 AM

Quote:

Originally Posted by Merjawy
Nice hack thnx,

as for the user must be using cookies, thats easy.. you just make that group use cookies which is simple in vB3 by global edit command :)

Can you please elaborate on that? I am not sure I know how to set it up.

Tnx


All times are GMT. The time now is 11:05 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.01327 seconds
  • Memory Usage 1,791KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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