vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Annother banning alternative : Starved Users (https://vborg.vbsupport.ru/showthread.php?t=50474)

Zzed 03-18-2003 10:00 PM

Annother banning alternative : Starved Users
 
This hack is another alternative to banning a user. As the name suggests a user who
gets hit with this hack will be deprived from a lot of the general board features.

So here is what really happens to a starved user:

- Every graphic image on the board will be replaces with a red X icon. http://www.ls1.com/.zed/redx.gif
- They don't have access to the search engine.
- They have a 10x flood control time
- They are only allowed to post 20 characters per post (the 20 charcters is
inclusive of the post title.)
- They can not see avatars in posts
- They can not display their signature
- Their user options is set to 0

This hack is another one of my sadistic hacks on my board. :D

The hack allows you to make your user starved via the admin CP (In the Edit User
screen). It also allows you to search for all starved users through the admin CP
as well.

Also in showthread.php, it appends a red status that is only visibly to admins
and mods stating that a user is starved.

Tables affected by this hack: user

Files affected by this hack: global.php, showthread.php, newthread.php, newreply.php, admin/user.php, admin/functions.php

There is also a new icon that needs to be placed in the images directory: images/redx.gif

################################################## ##########

From the MySQL prompt execute the following statement:

alter table user add starved smallint(5) unsigned DEFAULT 0 NOT NULL;

################################################## ##########

Please click the install button if you like this hack and you install it on your board. :)

Zzed 03-19-2003 07:23 PM

Here is a forum view screen shot

Zzed 03-19-2003 07:23 PM

And here is a thread view screen shot

Rose 03-19-2003 07:29 PM

You're evil, Zzed. Plain and simple.

:D

[high]* Rose loves it![/high]

N9ne 03-19-2003 07:35 PM

Yep, Zzed, you are an evil evil man.....:p

Boofo 03-19-2003 07:43 PM

What would happen if you put the user in this AND the miserable hack at the same time? You might want to make a catch-all for that since some people will use this and miserable for their banned groups. ;)

Boofo 03-19-2003 07:56 PM

Zzed, I have both hacks installed. Is this what my showthread.php should look like now?

PHP Code:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {

  if (
$postdone[$post[postid]]) {
    
$counter--;
    continue;
  } else {
    
$postdone[$post[postid]]=1;
  }

  
$onlinestat "";
  if(
$post[miserable] == 1) {
    if((
$bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) {
      
$onlinestat "$onlinestat<br><font color=\"green\"><b>Miserable User</b></font>";
    } else if(
$post[starved] == 1) {
    if((
$bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) {
      
$onlinestat "$onlinestat<br><font color=\"red\"><b>Starved User</b></font>";
    }
  }
  }
  
$post[posts]="$post[posts]$onlinestat";

  
$post[postcount] = ++$postcount;
  
$post[totalposts] = $totalposts;
  
$postbits .= iif(empty($postbits), '''<br>').getpostbit($post);


Also, I have the user's avatar on the forumhome_pmloggedin and it still shows (not the red X) Any way to fix that?

Vile 03-19-2003 08:04 PM

LMAO, great stuff :D

Sweet Cheeks 03-19-2003 08:11 PM

Awesome, Thank you!!!! Im off to install it now :banana:

Link14716 03-19-2003 08:15 PM

Very evil indeed. :)


All times are GMT. The time now is 01:47 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.00986 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_php_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
  • (10)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