Version: 1.00, by N9ne
Developer Last Online: Jul 2019
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.
*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!
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.
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!
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
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