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
Post Quality Points System! [megahack] Details »»
Post Quality Points System! [megahack]
Version: 1.00, by N9ne N9ne is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-15-2003 Last Update: Never Installs: 29
 
No support by the author.

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

Show Your Support

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

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

Loads of screenshots! - 8 screenshots.
Reply With Quote
  #3  
Old 02-16-2003, 06:16 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-16-2003, 06:18 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
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.
Feel free to take my code and modify it, to save time. PM me with how you change it, i'm interested .
Reply With Quote
  #5  
Old 02-16-2003, 06:38 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice

Satan
Reply With Quote
  #6  
Old 02-16-2003, 08:47 PM
Automated Automated is offline
 
Join Date: Sep 2002
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good, might have a look tommorow
Reply With Quote
  #7  
Old 02-16-2003, 10:00 PM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm. Not bad, might encourage needlessly long posts though.
Still, nice idea, just not for me
Reply With Quote
  #8  
Old 02-16-2003, 11:24 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 02-16-2003, 11:28 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 02-17-2003, 05:45 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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:15 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.04380 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
  • (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
  • (2)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