Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #12  
Old 02-17-2003, 06:36 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally posted by squawell
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
I'm aware of this, i'm looking for a way to fix it.
Reply With Quote
  #14  
Old 02-17-2003, 03:58 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds good n9ne

- miSt
Reply With Quote
  #15  
Old 02-17-2003, 08:09 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would people be interested in an addon for this hack to, alongside the posts column in the memberlist, be a quality points column?
Reply With Quote
  #16  
Old 02-18-2003, 02:28 AM
ethics ethics is offline
 
Join Date: Feb 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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

Quote:
Originally posted by N9ne
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...
Yes yes.

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

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.
Reply With Quote
  #20  
Old 02-25-2003, 05:04 AM
Dan_UPC Dan_UPC is offline
 
Join Date: Dec 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
with

Code:
preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $message)
That should do the trick.
Reply With Quote
  #21  
Old 02-25-2003, 06:04 PM
MartynJ MartynJ is offline
 
Join Date: May 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
// 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;
           }
           }
        } else {
// Allow titles if Posts AND Joindate is ok
           
if ( ($bbuserinfo[posts] >= $ctPosts) and ( ($bbuserinfo[joindate] <= (time()-($ctDays*86400))) or ($ctDays==0)) ) {
              
$ctShowTitle 1;
           }
        }
     } 
It's that } else { in the middle that's doing it. I wouldn't be surprised if I've made an error somewhere, this hack has an awful lot of manual file changes to be made. Though I really want this to work, it seems great.


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?
Reply With Quote
Reply

Thread Tools

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 09:45 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.04835 seconds
  • Memory Usage 2,312KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (2)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
  • (3)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