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
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
  #2  
Old 03-07-2003, 09:16 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

10 Screenshots.
Reply With Quote
  #3  
Old 03-07-2003, 09:17 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Boom* I'm fast, huh? Interesting concept behind the hack, N9ne. So many files edited, queries ran, templates to modify and create, this is without a doubt, your biggest hack (hence the mega-hack).

Although I won't use this hack, it's a good idea for several forums. Thanks for the option and thanks for sharing!
Reply With Quote
  #4  
Old 03-07-2003, 09:20 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

afterlab, I saw you browsing this thread right after I posted it . Like I said in the thread of another of my hacks', you haven't seen anything yet . Well, here it is, my biggest hack ever. Maybe one of the biggest hacks at vb.org (of course the store hack beats everyone hands down there, takes a while to install ).

Anyway everyone, get installing! Hehe, if anyone uses this hack, please click install.

N9ne.
Reply With Quote
  #5  
Old 03-07-2003, 10:51 PM
Gaffer's Avatar
Gaffer Gaffer is offline
 
Join Date: Nov 2001
Location: Australia
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this hack is soo being installed on both my forums when i get a chance which will be tomorrow i think but i'm hitting install now
Reply With Quote
  #6  
Old 03-10-2003, 12:36 AM
yxboom's Avatar
yxboom yxboom is offline
 
Join Date: Jan 2003
Location: The City
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gonna install ASAP!
Reply With Quote
  #7  
Old 03-12-2003, 10:41 AM
h4x0rtje h4x0rtje is offline
 
Join Date: Dec 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to combine this hack with the quality point? I love 'm both
I ended up trying to do it myself but got stuck in the member.php edit
Would be nice to have 'm both.. Really great hacks!
Reply With Quote
  #8  
Old 03-12-2003, 03:08 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you mean combine? Do you want them both? I'm sure they both work together?
Reply With Quote
  #9  
Old 03-12-2003, 07:15 PM
h4x0rtje h4x0rtje is offline
 
Join Date: Dec 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope they do work together.. But. For example
Code:
 if ($ctEnable == 1 and $customtext) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
     $ctShowTitle = 0;
	 if ($disableCTspam == 1 and $ctEnable == 1 and ($bbuserinfo[spampoints] > $maxCTspam) ) {
		$ctShowTitle = 0;
  	 } elseif (ismoderator() and $ctAdmin == 1) {// Allow mods to use titles no matter what
        $ctShowTitle = 1;
     } else {
        if ($ctEitherOr==0)  {// Allow titles if Posts are ok OR JoinDate is ok
           if ( ($bbuserinfo[posts] >= $ctPosts) or ( ($bbuserinfo[joindate] <= (time()-($ctDays*86400))) or ($ctDays==0)) ) {
              $ctShowTitle = 1;
           }
How to combine that with
Code:
  if ($ctEnable == 1 and $customtext) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
     $ctShowTitle = 0;
	 if ($qpct == 1 and $ctEnable == 1 and ($bbuserinfo[qualitypoints] >= $minqpct) ) {
		$ctShowTitle = 1;
  	 } elseif (ismoderator() and $ctAdmin == 1) {// Allow mods to use titles no matter what
        $ctShowTitle = 1;
     } else {
        if ($ctEitherOr==0)  {// Allow titles if Posts are ok OR JoinDate is ok
           if ( ($bbuserinfo[posts] >= $ctPosts) or ( ($bbuserinfo[joindate] <= (time()-($ctDays*86400))) or ($ctDays==0)) ) {
              $ctShowTitle = 1;
           }
I can see it's only a matter of inserting the new (Spam points) if-statement in the one I already have (Quality points), but where and how

This is just an example of things I dont know how to do
Reply With Quote
  #10  
Old 03-13-2003, 08:03 PM
yxboom's Avatar
yxboom yxboom is offline
 
Join Date: Jan 2003
Location: The City
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed this onto my board everything looks to be working fine except in the forums modify in the Admin CP the settings are not being saved. After saving when I return to the Forum settings everything is back to NO. Help
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 11:12 AM.


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.04572 seconds
  • Memory Usage 2,297KB
  • 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
  • (2)bbcode_code
  • (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