![]() |
Post Quality Points System! [megahack]
<--------------------------------------------------------------------------------------------------------->
Quality/Length of Post Points System A hack by N9ne, copyright 2003, created on Feb 16 2003. <---------------------------------------------------------------------------------------------------------> Description: This hack is packed full of features. It will introduce a point system to your forum. This is not like previous released points systems though. The points are allocated to users based on the length of their post, in characters. There are 3 levels to the amount of points allocated. You can choose to use up to level 1, level 2, or level 3. This is also done on a per forum basis. You can have the whole feature disabled in a forum, and you can have level 1 enabled on one forum, and level 3 enabled on another. You can set separate values of # of chars in post, and how many points are received when that figure is exceeded. This is also on a per forum, per level basis. No points are given if the post has less characters than specified in level 1. Quality point count is shown on the profile page of the user, in the postbit under post count, and in the user's profile in the adminCP. Admins can edit a user's amount of quality points in the adminCP. Options are also added to the vBulletin Options page in the adminCP. You can enable quality points - custom avatars, where you may specify the number of points a user must have, and if he has that amount, he can use a custom avatar, regardless of his post count. There is the same option for custom titles. You can set a value for minimum required quality points and if the user has that amount or more, they can specify a custom title, regardless of their post count or days registered. Options to specify levels, # of characters, # of points given, are in the add forum and edit forum pages in the adminCP. In newthread and newreply, above the options part, it will specify how many characters are to be in the post, to achieve specified levels, and how many points are awarded. If the quality point system is disabled in the forum, it will say so. <---------------------------------------------------------------------------------------------------------> For: 2.2.x and 2.3.x (hack created in 2.2.9 - should work on 2.2.x - 2.3.x though) <---------------------------------------------------------------------------------------------------------> Files to modify: admin/forum.php admin/user.php newreply.php newthread.php member.php <---------------------------------------------------------------------------------------------------------> Templates to modify: newreply newthread getinfo postbit <---------------------------------------------------------------------------------------------------------> Queries to run: 15 <---------------------------------------------------------------------------------------------------------> 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. <---------------------------------------------------------------------------------------------------------> Addons Top Quality Posters Page Download the attached .php file and open it in a text editor which can handle long strings of text and large files. Support will just be given in this thread. I will try my hardest to answer most questions! Screenshots can be found in next post. |
Loads of screenshots! - 8 screenshots.
|
Good idea for a points system. :) I may make my own version of your scoring system for my forums. I like how you base it on post length. :)
|
Quote:
|
Nice:)
Satan |
Looks good, might have a look tommorow :p
|
Hmm. Not bad, might encourage needlessly long posts though.
Still, nice idea, just not for me :) |
Hey this looks good. What's the best way to backup/restore a dB? I know the backup function is in the admin cp, but how do I restore if need be? 15 queries seems like it would definately be good to know how to do this before trying to install this. :)
|
If you have SSH or telnet access to your server, run this:
mysqldump --opt -u DBUSERNAME -p DBNAME > /path/to/backup/directory/backup.sql It will then ask for your db's password. enter it. To restore: mysql -u DBUSERNAME -p DBNAME < /path/to/backup/backup.sql it will then ask you for your db's password. You shouldn't need to restore, but i'm just keeping on the safe side, you know? The queries to run have no potential danger really, they're just adding fields. |
nice hack...
but i have a problem.... if quote someone's post and the post text over the setting it will count the point...how to make it only count own post even u quote someone's post...... any idea?Thankz |
Great thanks! I will install this tomorrow morning :) Is there a max number of points you can get or does it keep going?
I plan to use this with THIS :) Should be pretty sweet. :banana: |
Quote:
|
Sounds good n9ne :)
- miSt |
Would people be interested in an addon for this hack to, alongside the posts column in the memberlist, be a quality points column?
|
N9ne,
Can this be integrated in to Lesane's Store point system? Don't mean to be an ass and rain on your great system, but just curious. :) Great job btw. :) |
I'm sure it can, so you'd like it so there isn't separate points for quality, but just they get added on to their store points? If so, no problemo...
|
Quote:
I love the concept of quality posts. I run political forum, so quality is much more important than quantity. But to have the quality rules for the store would be awesome. Thanks again! |
Unfortunately, I don't have enough time to create the integration with the store hack today, as i'm leaving tomorrow early morning, on a one week trip to Germany. It's quite simple to integrate it though, I will be able to release the integration once I get back in one week.
If you can't wait that long and know your way around some of the files and you have already installed this hack, Replace every instance of qualitypoints to storep. - Delete the qualitypoints field created in the database. Really, all you should need to do is re-do the steps in newreply and newthread.php but with storep written instead of qualitypoints. This is not tested as I don't have the store installed, and I'm just going off the top of my head with this, but it should work. |
If you dont want quoted text to be counted towards the post length when awarding points then do the following...
In the install file replace all occurences of Code:
$message Code:
preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $message) |
Um, I have a problem. If I load up member.php, I get "Unexpected T_ELSE at line 499." and the script dies.
Here's the code it's talking about: PHP Code:
EDIT: I'm an ass, I haven't even modified any templates yet. I'll let you know if I'm still having this problem after that. 2nd EDIT: Now all the templates are in place I'm still getting that error. I get the feeling maybe that the if/elseif above it was closed, and this leaves an else on it's own with no if to support it? |
If it helps, this is the part of the instruction file that I am having probs with (been trhough it twice now and no change)
PHP Code:
|
Found out what it was, sorry, my fault, I had copied and pasted wrong.
|
nice
|
Nice work
But, waht's about the quick reply box ? :) |
I think it works with that automatically as QRB uses newreply.php...
|
ERORR! :(
You have an error in your SQL syntax near 'INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,op' at line 2 |
Which file is that? forum.php in the admin folder? Make sure you followed the instructions very carefully and make sure that you entered the code in the right places.
|
in phpmyadmin
when i insert the sql queries :( |
Insert each one separately.
|
That store integration idea didn't work... I would think it would but I don't know why it didn't. :(
|
N9ne can u tell me if i want to do top 5 quality points how should i do??
thankz...:D:D:D |
Addon released:
Top Quality Posters Page |
I think I'll be modifying this hack so it will add both points to lesane's store AND to the quality points. I think that this is an better concept.
Great hack! |
Nice hack, I might install it :)
|
Quote:
Not a bad idea :). It's quite simple to integrate it with the store hack, I just haven't had the time to do it though. |
I like this hack. I installed it on my forum, with the spam point system, to reward people.
The funny thing is, we're using it to reward people for spam, and good posts. :D |
Ironic isn't it!
|
LOL cirisme :p tut tut, rewarding people for spamming ;)...
|
i know some peopel who post will love his one! as they go on and on and on!
|
Have you considered a way to work this in with the store hack that the points u get u can get things with them?
|
All times are GMT. The time now is 06:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|