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

Reply
 
Thread Tools
N9ne's Spam Points System 1.0 [Mega-Hack] Details »»
N9ne's Spam Points System 1.0 [Mega-Hack]
Version: 1.00, by N9ne N9ne is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-06-2003 Last Update: Never Installs: 17
 
No support by the author.

<--------------------------------------------------------------------------------------------------------->
Spam Points System
A hack by N9ne, copyright 2003+, created on March 7th 2003.
<--------------------------------------------------------------------------------------------------------->
Description:
This hack will give users spam points. They will have a spam point count, which can be edited from their user
profile in the adminCP. The spam point count will be displayed in the postbit and on their profile page (getinfo).

This is on a per forum basis. You can enable it or disable it per forum, so you can have one forum where you
can post small posts and not receive any spam points, whereas other forums, you will.

There are also 3 levels to the system. If enabled in a forum, for that forum, you have 3 levels to go up to.
You may use just level 1, level 1 + 2, or all 3 levels. For example,

General Discussion Forum
Enable Spam Points System in this forum? - YES
Enable level 1 - YES
Maximum # of characters user can post up to and gain the given number of spam points below: 100
Number of spam points given, if user doesn't reach the above # of characters in post: 3

Enable level 2 - YES
Maximum # of characters user can post up to and gain the given number of spam points below: 200
Number of spam points given, if user doesn't reach the above # of characters in post: 2

Enable level 3 - YES
Maximum # of characters user can post up to and gain the given number of spam points below: 300
Number of spam points given, if user doesn't reach the above # of characters in post: 1

Note:
If, with the above setup, a user posts a post which contains 250 characters, the user will receive 1
spam point.

If the user posts a post which has 105 characters, he will receive 2 spam points.

If the user posts 780 characters, he will receive no spam points.

If the user posts 50 characters in his post, he will receive 3 spam points.

Other options in this hack:

In each usergroup's setting page, there is a YES/NO switch, which will allow you to exempt the group from
spam points or not. Default value will be NO, not exempt from spam point system.

In newreply and newthread pages, detail is given of the rules pertaining to the forum. So if spam points are
not enabled in forum, it will say so. Also, if they are, detailed information will be given, ie. how many characters
are required in posts, and if targets aren't reached, how many spam points are given.

In vBulletin Options page in the adminCP, added to the custom avatar section, is a switch:
Disable Custom Avatars for user if spam point count exceeds given amount below? YES/NO
- The maximum number of spam points a user can have before he cannot use custom avatars, regardless of
post count.

The same goes for Custom Titles too, and they can't use custom titles regardless of post count AND days
registered.

By default, admins are exempt from the spam count system. You can simply enable it for them from their usergroup
page.

And just one more feature in this hack:
If, in a usergroup's setting, the switch to exempt the usergroup from the spam count system is enabled,
the spam count line will not appear in the postbit for anyone, and in their profile pages, the table row with
spam count will not appear either.
<--------------------------------------------------------------------------------------------------------->
For: 2.2.x and 2.3.x (created in 2.2.9 and 2.3.0)
<--------------------------------------------------------------------------------------------------------->
Files to modify:
admin/usergroup.php
admin/forum.php
admin/user.php
admin/functions.php
newreply.php
newthread.php
member.php
<--------------------------------------------------------------------------------------------------------->
Templates to modify:
newreply
newthread
getinfo
postbit
<--------------------------------------------------------------------------------------------------------->
Templates to create:
postbit_spampoints
getinfo_spampoints
<--------------------------------------------------------------------------------------------------------->
Queries to run: 17
<--------------------------------------------------------------------------------------------------------->
Please backup your database and the templates and files we're going to
modify in this hack, before proceeding to install it. I will not take any
responsibility and am not liable for any damage done to your forum.
You should have a backup.
<--------------------------------------------------------------------------------------------------------->

Open the attached .php file in a text editor to see instructions on how to install this hack.

Show Your Support

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

Comments
  #12  
Old 03-13-2003, 08:13 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yxboom: redo the steps on forum.php and see if it works.
Reply With Quote
  #13  
Old 03-19-2003, 08:33 PM
cirisme cirisme is offline
 
Join Date: Jan 2003
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

h4x0rtje.

They work together. You have to do it manually, but they work fine. As for the code you currently have, I wouldn't try to combine them. Just insert one infront of the other.
Reply With Quote
  #14  
Old 03-19-2003, 08:34 PM
cirisme cirisme is offline
 
Join Date: Jan 2003
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this hack, we're using it to reward people, however. Hehehe
Reply With Quote
  #15  
Old 03-19-2003, 08:55 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 10:33 PM cirisme said this in Post #12
h4x0rtje.

They work together. You have to do it manually, but they work fine. As for the code you currently have, I wouldn't try to combine them. Just insert one infront of the other.

I'm glad you have them working together. There shouldn't really be any problem with it, the only thing that requires some integration is the part in member.php with custom titles and custom avatars.
Reply With Quote
  #16  
Old 06-16-2003, 11:29 PM
Reoplex Reoplex is offline
 
Join Date: Jun 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is 17 queries a lot? will it put a lot of stress on the server?
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 09:22 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.04495 seconds
  • Memory Usage 2,248KB
  • Queries Executed 20 (?)
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_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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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