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
  #22  
Old 02-25-2003, 06:27 PM
MartynJ MartynJ is offline
 
Join Date: May 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
<--------------------------------------------------------------------------------------------------------->
Find:
<--------------------------------------------------------------------------------------------------------->

  
if ($ctEnable == 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 (
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;
           }
<--------------------------------------------------------------------------------------------------------->
Replace it with:
<--------------------------------------------------------------------------------------------------------->

  
if ($ctEnable == 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 == and $ctEnable == 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;
           } 
Reply With Quote
  #23  
Old 02-25-2003, 06:33 PM
MartynJ MartynJ is offline
 
Join Date: May 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found out what it was, sorry, my fault, I had copied and pasted wrong.
Reply With Quote
  #24  
Old 02-26-2003, 04:33 PM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice
Reply With Quote
  #25  
Old 03-01-2003, 04:14 PM
Sun Boy Sun Boy is offline
 
Join Date: Feb 2003
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work

But, waht's about the quick reply box ?
Reply With Quote
  #26  
Old 03-01-2003, 04:44 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it works with that automatically as QRB uses newreply.php...
Reply With Quote
  #27  
Old 03-01-2003, 04:45 PM
Lord Man Lord Man is offline
 
Join Date: Dec 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ERORR!

You have an error in your SQL syntax near 'INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,op' at line 2
Reply With Quote
  #28  
Old 03-01-2003, 05:22 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 03-02-2003, 10:56 AM
Lord Man Lord Man is offline
 
Join Date: Dec 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in phpmyadmin

when i insert the sql queries
Reply With Quote
  #30  
Old 03-02-2003, 12:01 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Insert each one separately.
Reply With Quote
  #31  
Old 03-07-2003, 07:30 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That store integration idea didn't work... I would think it would but I don't know why it didn't.
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 04:42 PM.


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.05110 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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_php
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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