Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[AJAX] Helpful Answers - Post Rating System (plus many sub-features) Details »»
[AJAX] Helpful Answers - Post Rating System (plus many sub-features)
Mod Version: 2.0.6, by Ted S (Coder) Ted S is offline
Developer Last Online: Jun 2016 I like it Show Printable Version Email this Page

vB Version: 3.8.1 Rating: (55 votes - 4.85 average) Installs: 457
Released: 03 Feb 2009 Last Update: 13 May 2011 Downloads: 4472
Not Supported DB Changes Uses Plugins Auto-Template Additional Files  

Note: While this modification is updated for compatibility, I am only developing features for the 4.x version. I understand many sites continue to use 3.8 for a variety of reasons but dual developing takes time away from adding anything new. I encourage you to develop out your own change and share them back as no modification is ideal for every forum out of the box.

Every day your users contribute hundreds if not thousands of posts making it hard for new members and guests to separate out the best answers from those that are less helpful. The Helpful Answers System offers your members a quick way (AJAX) to rate individual posts as either helpful or not allowing future visitors to understand the benefits of each post.

Designed for maximum flexibility:


This addon is built to be flexible and offers several customization options including:
  • The ability to show a user's vote stats in posts
  • The ability to use image or text ratings.
  • The ability to offer yes/no or scaled 1-10 point ranking.
  • The ability to turn off negative ratings for a positive only system.
  • The ability to decide which forums are open for helpful answer ratings.
  • The ability to audit the system and identify top users and potential abusers.
  • The ability to ban specific members from using the system.
  • The ability to customize the AJAX message shown after a post is rated.
  • The ability to edit all text and messages through phrases.
  • The ability to show a page with the top helpful posts.
  • The ability to show rating stats on a user's profile.
  • Integration with the reputation system for ratings.
  • Template driven display that can easily be customized to your forum.
For advanced users template conditionals and variables let you further extend the functionality to color highlight good or bad posts, include ratings in userís profiles and much more.

Load & Scale:
This addon is designed to work with small to large sites and is currently being used by sites with more than 2 million posts. If you have questions about integrating with your big board please contact me.

Modification Installation:
This addon requires uploading multiple files, installing a vBulletin product and enabling the feature in any forums you wish. No template modifications are required. Please see the included install file for detailed instructions.

If you are not seeing the rating bar double check that you have enabled the feature in the forum you are in and insure the Manual Template override option is not enabled.

Rating Review & Deletion:
To identify and remove abuse a reporting system is included with this addon and can be found in your vBulletin ACP under the Helpful Answers tab. Through this panel you will be able to view a user's overall rating history and individual ratings and can remove either if necessary. Users can also be explicitly banned from the system.

Reputation System Integration:
Helpful Answers can be extended to directly tie into your reputation system giving users positive or negative points based on the ratings of their posts. There are numerous options on how to handle ratings that can be found in a separate Helpful Answers Reputation part of your vBulletin Settings page.

External Integration:
vB Plaza Modification - http://www.vbplaza.com/forum/showthread.php?p=6359
vB Experience - http://www.vbulletin.org/forum/showthread.php?t=199556

Anonymous Stats Tracking (optional):
vBulletin forums reach millions of consumers around the world yet little is known about their habits and opinions. This addon was released to the public out of requests but also to further the research of forum user's behaviors and actions through collecting the most basic data on thousands of sites.

By default this addon will pass basic rating data (positive or negative) to a 3rd party site for statistical purposes. Only the most basic data is captured (the vote and your site name) and no user information or specific forum details are logged, not even an IP address.

While you may disable this feature through the administrative options I ask that you consider leaving it in place to help this research effort and insure the continued support of the addon.

The tracking feature uses the php library cURL on a 5 second timeout. If cURL is not installed this option is automatically disabled.

Updates:
- 5/13/2011 - Release of 2.0.6 minor bug fix
- 08/31/2009 - Release of 2.0.0
- 08/07/2009 - Release of 1.9.5 stable

Other Versions:
This addon will work with 3.7 but to avoid issues with different code versions please see the 3.7 version thread here.

Before you download this modification please remember this is a free tool provided as a courtesy to you and support responses are subject to the availability of the author and other members. If you are looking for a professionally supported system this is not the solution for you.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

admin-stats1.gif   admin-stats2.gif   admin-stats3.gif   topanswers.gif  

settings.jpg   rating-methods.gif  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 03 Feb 2009, 22:22
Ted S Ted S is offline
 
Join Date: Dec 2003
Tips & Tricks Using Template Variables:

While the Helpful Answers section may appear to only add to a small part of your post it can be used much more extensively to change the color of an entire post, to add a special icon or just about anything else you like. Here are list of the variables available for your postbit and postbit_legacy templates.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

============================================================================

Additional variables can also be found in the user's profile page (if enabled).


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

============================================================================

Identify the top rated post.

Step 1 - Enable the top rated post feature from your Helpful Answers Settings.
Step 2 - Add the code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To your postbit or postbig_legacy template

This can be changed around to add colors, an icon or anything else you want.

============================================================================

Digg Like Ratings (Format: +6 Yes | No)
Step 1 - Open the template helpful_answers
Step 2 -
Replace the code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With the new code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

============================================================================

(Thumb Up)...5 (Thumb Down)...2
Step 1 - Open the template helpful_answers
Step 2 -
Replace the code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With the new code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

============================================================================

Highlighting the top rated post:

Step 1 - Set "Get Top Post per Thread" to on in your Helpful Answers settings.
Step 2 - Open your postbit or postbit_legacy template (whichever your forum uses)
Step 3 - Find all instances of class="alt1" and class="alt2"
Step 4 - At each instance add the following code directly after style="

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

#CCCCCC is the color to highlight the post with. You may change this to another HTML Color Code

Step 5 - Repeat this for each instance (there may be as many as 5 depending on the template)
For example:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

============================================================================

Utility Scripts

Three utility scripts are attached to this post which you may need to use if you are modifying the addon or doing a special import. Each of these should be run from your admincp folder and deleted after use.

1. ha_userstats.php - This file will resync user votes for the postbit templates.
2 . ha_old.php - This file will resync vote summaries for version 1.5 and below.
3. ha_revote.php - This file will resync vote summaries for versions 1.6 and above
Attached Files
File Type: php ha_old.php (2.7 KB, 65 views)
File Type: php ha_revote.php (2.8 KB, 63 views)
File Type: php ha_userstats.php (2.8 KB, 56 views)
__________________
New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)

Last edited by Ted S; 01 Sep 2009 at 02:59.
Reply With Quote
  #3  
Old 03 Feb 2009, 22:23
esperone esperone is offline
 
Join Date: Feb 2006
Sounds good but can u upload the mod files?
Reply With Quote
  #4  
Old 03 Feb 2009, 22:34
Ted S Ted S is offline
 
Join Date: Dec 2003
Unfortunately there's no way to hide an addon while you're setting it up here. The files have been posted.
__________________
New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)
Reply With Quote
  #5  
Old 03 Feb 2009, 23:51
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Real name: Maxim
I get database error:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Few questions.
This is don't work with ajax?
Why you don't use phrase in postbit?
__________________
SamForum.ws - Key to your programme!
All my mods

Last edited by mad@Max; 04 Feb 2009 at 00:10.
Reply With Quote
  #6  
Old 04 Feb 2009, 00:07
forexforum forexforum is offline
 
Join Date: Sep 2008
Does this mod add into the reputation/infraction points? It would be good if we can choose whether to allow infraction/rep points to be counted. It can be like, either choose one or both of the options. Thanks.
Reply With Quote
  #7  
Old 04 Feb 2009, 00:13
Ted S Ted S is offline
 
Join Date: Dec 2003
forexforum,

This mod is intended for rating posts and does not deal with rating users or the reputation system. I'd love to get your thoughts if you feel there is a reason or way to relate the two.
__________________
New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)
Reply With Quote
  #8  
Old 04 Feb 2009, 00:17
Ted S Ted S is offline
 
Join Date: Dec 2003
Originally Posted by mad@Max View Post
I get database error:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Few questions.
This is don't work with ajax?
Why you don't use phrase in postbit?
Lots of questions!

1. Please check to see if you have the table helpfulanswer or anything related to it using phpMyAdmin or a similar tool. If not the installer was unable to create it but you can manually with the query:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Be sure to add any prefix to the table.

2. This addon now offes ajax. Fun stuff!

3. As far as using phrases for the template look for an upgrade soon to handle that.
__________________
New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)
Reply With Quote
  #9  
Old 04 Feb 2009, 00:17
Ted S Ted S is offline
 
Join Date: Dec 2003
I know I just released the core addon a few hours ago but after doing some additional work AJAX rankings are now supported.
__________________
New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)
Reply With Quote
  #10  
Old 04 Feb 2009, 00:21
WoodiE WoodiE is offline
 
Join Date: May 2002
Ted,

Just upgraded my forum to version 1.3 - the AJAX rocks! Nicely done.
Reply With Quote
  #11  
Old 04 Feb 2009, 00:29
Ted S Ted S is offline
 
Join Date: Dec 2003
Thanks WoodiE. I've really never dived deep into AJAX and I was pretty pleased to have it go so fast although for a mod like this it was a pretty simple change.

Also releasing 1.3.1 which moves the helpful_answers template to phrases for better translation support and easier editing.
__________________
New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)
Reply With Quote
  #12  
Old 04 Feb 2009, 01:51
Ted S Ted S is offline
 
Join Date: Dec 2003
Thanks for the private feedback; I've added a simple page showing the Most Helpful Answers. This can be disabled through the options and the number of results to show can also be configured.
__________________
New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)
Reply With Quote
  #13  
Old 04 Feb 2009, 03:00
buileminh buileminh is offline
 
Join Date: Jan 2005
How does this impact to server load?
Reply With Quote
  #14  
Old 04 Feb 2009, 03:20
Ted S Ted S is offline
 
Join Date: Dec 2003
Originally Posted by buileminh View Post
How does this impact to server load?
Fair question and as I'm sure it will be asked later, I'll break down the different areas of potential impact:

1. Viewing a thread

No new queries are made with this addon but there is a change that impacts the existing post query. Basically with this addon 3 additional fields are pulled from the select routine, 2 exist in the post table and one is from a join on the helpful answers table. Joins certainly add to the query length but as both keys are indexed it's minimal.

There are also a few template conditionals called; while conditionals don't do much to load on their own they do add up if you use enough.

While testing this script I used microstats to measure impact and did not identify any noticeable impact to the page rendering or CPU usage.

2. Rating a post

When a post is rated the script goes through a series of checks including 2 queries to read out data and two updates to insert the vote record and change the post table. This is fairly minimal and since it's a specific request option (rather than something passive that happens when viewing a page) it should be expected.

3. Viewing the most helpful answers page

When enabled this page will run one looping query with a single join. This is not a major process at all.

4. Admin functions

The admin functions are mostly simple querying one or two times per page. The exception to this is doing a bulk delete on a user with a lot of rating history; in this case there's two queries per rating which can be intensive. As such this function is marked as being intensive.

Summed up

It's easy to get worried about a function like this where data is read on every post but I have done my best to minimize any impact. For example, rather than querying tables to get vote totals for every post the totals are stored with the post record and calling them up adds minimal load. Other steps are also taken to prevent load like using an array with banned members and a forum option to check if the forum is allowed to use the addon rather than querying the database for a standalone piece of data.

To be crystal clear, this addon has been used for over a year on a decent traffic forum that runs, as most of the users would say, fast. While there are new functions with the public release this is not an untested app and if it was impacting performance on my sites I wouldn't be using it let alone releasing it.

I'm confident this addon will have minimal additional performance impact but like every addon it does introduce more queries on some pages, more joins, more conditionals and more code which does mean more load. For larger sites I always encourage basic load testing (even just watching load times with microstats is often enough).

Hope that answers your question.
__________________
New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)
Reply With Quote
  #15  
Old 04 Feb 2009, 03:35
The3rdNipple The3rdNipple is offline
 
Join Date: Oct 2008

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


My error after visiting a thread
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 21:11.

Layout Options | Width: Wide Color: