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)
-   -   [uCash + Warning System] Fine members (https://vborg.vbsupport.ru/showthread.php?t=77479)

kevinnguyen 03-03-2005 10:00 PM

[uCash + Warning System] Fine members
 
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

Polo 03-04-2005 05:36 PM

This is nice... will give it a try... thanks for sharing :)

bluesteel 03-05-2005 12:52 PM

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?

kevinnguyen 03-05-2005 01:32 PM

the member will have -10 points :D
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 ;)

Creed 03-07-2005 03:35 AM

Very nice, I like this!!!!

nettstedet 03-08-2005 01:48 PM

Is there a way to update those that were members prior to installing this hack so they receive their cash points?

bluesteel 03-08-2005 02:43 PM

Quote:

Originally Posted by kevinnguyen
the member will have -10 points :D
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

kevinnguyen 03-08-2005 03:37 PM

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

atrljoe 03-10-2005 04:24 PM

Nice hack

Desainer 04-08-2005 01:25 PM

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


All times are GMT. The time now is 01:32 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.01194 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_php_printable
  • (2)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
  • (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