vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Post Quality Points System! [megahack] (https://vborg.vbsupport.ru/showthread.php?t=48991)

N9ne 02-15-2003 10:00 PM

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.

N9ne 02-16-2003 06:07 PM

Loads of screenshots! - 8 screenshots.

Erwin 02-16-2003 06:16 PM

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

N9ne 02-16-2003 06:18 PM

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

Chris M 02-16-2003 06:38 PM

Nice:)

Satan

Automated 02-16-2003 08:47 PM

Looks good, might have a look tommorow :p

Hwulex 02-16-2003 10:00 PM

Hmm. Not bad, might encourage needlessly long posts though.
Still, nice idea, just not for me :)

007 02-16-2003 11:24 PM

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

N9ne 02-16-2003 11:28 PM

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.

squawell 02-17-2003 05:45 AM

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


All times are GMT. The time now is 08:18 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
  • Page Generation 0.01062 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete