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

Reply
 
Thread Tools
Annother banning alternative : Starved Users Details »»
Annother banning alternative : Starved Users
Version: 1.00, by Zzed Zzed is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-18-2003 Last Update: Never Installs: 11
 
No support by the author.

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

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-19-2003, 08:15 PM
mistyl mistyl is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!!! I am off to install it!
Reply With Quote
  #13  
Old 03-19-2003, 08:22 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 02:15 PM mistyl said this in Post #11
Thank you!!! I am off to install it!

*Nods evilly at Misty*
Reply With Quote
  #14  
Old 03-19-2003, 08:24 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I'll write some code to randomly pick a user for the miserable hack and the starvation hack for April fool's day. Once they log off and back on, it will not pick them again 'til next year.
Reply With Quote
  #15  
Old 03-19-2003, 08:26 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It kinda scares me that there are a lot of boards out there that actually need this...that's joy of running a pro community instead of a general community, I very rarely have members bicker to each other
Reply With Quote
  #16  
Old 03-19-2003, 09:52 PM
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Location: Glasgow
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have to say , we get a few immatre folk, but as part of an art community were all tolerant. However is it possibel to say have only parts of this hack like the post limit and say avatar restrictions? or is it configurable via admin cp as to what features the user is starved of.
Reply With Quote
  #17  
Old 03-19-2003, 10:02 PM
cirisme cirisme is offline
 
Join Date: Jan 2003
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 10:24 PM Boofo said this in Post #13
I think I'll write some code to randomly pick a user for the miserable hack and the starvation hack for April fool's day. Once they log off and back on, it will not pick them again 'til next year.

ROFL!!! That would be too much fun.
Reply With Quote
  #18  
Old 03-19-2003, 10:05 PM
Vile's Avatar
Vile Vile is offline
 
Join Date: Apr 2002
Location: Arizona, USA
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 10:26 PM filburt1 said this in Post #14
It kinda scares me that there are a lot of boards out there that actually need this...that's joy of running a pro community instead of a general community, I very rarely have members bicker to each other
I know what you mean, but I think it's still cool to have something like this, just in case
Reply With Quote
  #19  
Old 03-20-2003, 04:13 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:56 PM Boofo said this in Post #7
Zzed, I have both hacks installed. Is this what my showthread.php should look like now?

Also, I have the user's avatar on the forumhome_pmloggedin and it still shows (not the red X) Any way to fix that?
Boofo, the way you have yours set up it will show either miserable, or starved but not both.

They should be changed to 2 successive if() statements. like this:
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>";
    }
  }
  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);

Reply With Quote
  #20  
Old 03-20-2003, 04:21 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 02:26 PM filburt1 said this in Post #14
It kinda scares me that there are a lot of boards out there that actually need this...that's joy of running a pro community instead of a general community, I very rarely have members bicker to each other

Unfortunately, the average age on my board has gone down to 18-20 years of age and we have a lot of trouble makers. This is the only way we can control them. It has been working quite effectively.

I have created a system through which my moderators can actually impose my custom bans on the users along with PM and Email warnings. The bans can last anywhere from one hour to 7 days and they automatically revert back to normal at the end of the period.
Reply With Quote
  #21  
Old 03-20-2003, 04:35 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will you be releasing the code for the timed ban? That would make this really complete.

Thanks, Zzed, for the fix on the code. Now that I look at the old code, I see what you mean. DOHH!!!

What happens if you enable both hacks (Miserable and Starved) for a use at the same time? Just curious. Also, is there a way to set this up so you could make a Miserable Usergroup and a Starved Usergroup and do the hacks by Usergroup, too? Or set them to the Banned usergroup by default and still be able to do them individually per user.
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 09:49 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.08470 seconds
  • Memory Usage 2,326KB
  • Queries Executed 27 (?)
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_php
  • (5)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
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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