Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
[uCash + Warning System] Fine members Details »»
[uCash + Warning System] Fine members
Version: 1.00, by kevinnguyen kevinnguyen is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-03-2005 Last Update: Never Installs: 8
 
No support by the author.

On my forums, members spam like crazy to get points.
If you have a big RPG forum, u'll need this

What does this mod do?
It deducts an amount of points of a member if he gets warned

This mod takes less than 1' to install

Open functions_warning.php
Find:
PHP Code:
global $DB_site$warn_type$force_email_temp$force_email_perm$level
Replace with
PHP Code:
global $DB_site$warn_type$force_email_temp$force_email_perm$level$vboptions
Find:
PHP Code:
return $warn_type
Above add:
PHP Code:
$DB_site->query("UPDATE " TABLE_PREFIX "$vboptions[uttpoints_pointtable] SET " $vboptions['uttpoints_pointsfield'] . " = " $vboptions['uttpoints_pointsfield'] . "-" $amount " WHERE userid='$user[userid]'"); 
Replace $amount with an amount of points you wanna fine

That's it! Enjoy

Show Your Support

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

Comments
  #2  
Old 03-04-2005, 05:36 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is nice... will give it a try... thanks for sharing
Reply With Quote
  #3  
Old 03-05-2005, 12:52 PM
bluesteel bluesteel is offline
 
Join Date: Feb 2003
Location: Macclesfield, UK
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this kevin.Can you please tell me what happens if, for example, you set it to deduct 20 points, but the member only has 10 points?
Reply With Quote
  #4  
Old 03-05-2005, 01:32 PM
kevinnguyen kevinnguyen is offline
 
Join Date: Feb 2003
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the member will have -10 points
you can put a condition statement if you want him to have 0 points instead of a negative value
but for me, i like it that way as a punishment for spammer
Reply With Quote
  #5  
Old 03-07-2005, 03:35 AM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, I like this!!!!
Reply With Quote
  #6  
Old 03-08-2005, 01:48 PM
nettstedet nettstedet is offline
 
Join Date: Sep 2004
Location: Norway
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to update those that were members prior to installing this hack so they receive their cash points?
Reply With Quote
  #7  
Old 03-08-2005, 02:43 PM
bluesteel bluesteel is offline
 
Join Date: Feb 2003
Location: Macclesfield, UK
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kevinnguyen
the member will have -10 points
you can put a condition statement if you want him to have 0 points instead of a negative value
but for me, i like it that way as a punishment for spammer
Cheers Kevin. Was just worried in case it generated an error.
*installs
Reply With Quote
  #8  
Old 03-08-2005, 03:37 PM
kevinnguyen kevinnguyen is offline
 
Join Date: Feb 2003
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nettstedet
Is there a way to update those that were members prior to installing this hack so they receive their cash points?
u mean you wanna fine all members that got warned prior to installing this mod?
if so, yes its posible, just run an UPDATE query in phpMyAdmin
but i think we should inform members the punishment before we do it
Reply With Quote
  #9  
Old 03-10-2005, 04:24 PM
atrljoe atrljoe is offline
 
Join Date: Jan 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack
Reply With Quote
  #10  
Old 04-08-2005, 01:25 PM
Desainer Desainer is offline
 
Join Date: Mar 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey sorry to bother... But where can I get this functions_warning.php? I have a vbb 3.0.7 but I don't seem to have this file...
Reply With Quote
Reply

Thread Tools

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 02:07 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.11951 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_php
  • (2)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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