Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] Helpful Answers - Allow users to rate individual posts Details »»
[AJAX] Helpful Answers - Allow users to rate individual posts
Version: 2.4.2, by Ted S Ted S is offline
Developer Last Online: Nov 2020 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.x.x Rating:
Released: 01-15-2010 Last Update: 08-11-2012 Installs: 592
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Helpful Answers has been used to record over 6 MILLION times on more than 2,000 forums. If you're not using HA your users are looking for it!

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
to rate individual posts as either helpful or not allowing future visitors to understand the value of each post.

Designed to be flexible, HA has over 30 configurable settings:
  • Use image or text ratings AJAX or traditional links.
  • Offer yes/no or scaled 1-10 point ranking.
  • Turn off negative ratings for a positive only system.
  • Decide which forums are open for helpful answer ratings.
  • Audit the system and identify top users and potential abusers.
  • Ban specific members from using the system.
  • Customize the message shown after a post is rated.
  • Show a page with the top helpful posts.
  • Show rating stats on a user's profile.
  • Hide posts that rate "too low"
  • Template driven so you can customize it all for 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.

Modification Installation [Must Read]:


Step 1: Upload the addon files found in the upload/ folder to your forum directory
Step 2: Install the plugin through your vB Administration area
Step 3: Configure settings & enable the mod in individual forums


You must configure settings & enable forums before voting will show up.

Anonymous Stats Tracking (optional):

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. You can disable this through the admin.


Mod Philosophy -- Drive Your Own Success:

All of my mods are inspired by my work in digital marketing and are designed to drive registrations, interaction or other engagement activities the core platform does not address.

Each is designed to fit a general need by providing a starting point but it's on you to decide how to make things work to their best possible outcome. Feel free to suggest what you'd like to see next but don't wait to have what everyone else has; figure out what your forum needs and customize away.

Download Now

File Type: zip Helpful Answers vb - 2.4.2.zip (42.0 KB, 999 views)

Screenshots

File Type: jpg 1-16-2010 1-11-43 PM.jpg (41.6 KB, 0 views)
File Type: gif admin-stats1.gif (15.5 KB, 0 views)
File Type: gif admin-stats2.gif (11.3 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
10 благодарности(ей) от:
Baja, Eole, piratarg, PoorGuysGarage, tbworld, TheLastSuperman, thompson, U-Fig

Comments
  #1152  
Old 06-25-2012, 07:36 PM
penmai.com penmai.com is offline
 
Join Date: Feb 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your immediate reply.

Can you tell me, whats the exact code i have to change, to get the feature?
Reply With Quote
  #1153  
Old 06-25-2012, 11:31 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by penmai.com View Post
Thank you for your immediate reply.

Can you tell me, whats the exact code i have to change, to get the feature?
In the xml file there's an existing set of functions that check for a user's rights to vote in the hook postbit_display_complete. A very similar routine exists in the rate function of helpfulanswers.php. You'll want to change both so only approved users see the option to vote on the frontend and so that no one can trick a vote in on the backend.

Beyond that I can't teach you how to code but there are many great resources out there that will... Start hacking and searching, that's the best way to learn.
Reply With Quote
  #1154  
Old 07-11-2012, 11:49 PM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eole View Post
Hi,

When someone vote on a post, the thread appears as many time as there are posts that have been voted (+ or -). Who to avoid this duplicates ?

Thanks.
First of all thanks for the Mod.

I have the same problem as Eole in that while it works fine, it replicates the thread like three times. If I switch disable Helpful Answers the replicated threads are deleted.

I read the suggestions but really dont get it.
Reply With Quote
  #1155  
Old 07-12-2012, 02:05 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Impromptu View Post
First of all thanks for the Mod.

I have the same problem as Eole in that while it works fine, it replicates the thread like three times. If I switch disable Helpful Answers the replicated threads are deleted.

I read the suggestions but really dont get it.
He stopped responding [can't say I blame him] so we never sorted out the issue for his forum... Back to square one.

Take a look at the table helpfulpost and a post that shows up multiple times. There should be just one entry per postid.

I.E. SELECT COUNT(*) FROM helpfulpost WHERE postid = '12345';
Reply With Quote
Благодарность от:
  #1156  
Old 07-12-2012, 02:01 PM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S View Post
He stopped responding [can't say I blame him] so we never sorted out the issue for his forum... Back to square one.

Take a look at the table helpfulpost and a post that shows up multiple times. There should be just one entry per postid.

I.E. SELECT COUNT(*) FROM helpfulpost WHERE postid = '12345';
Hey Ted,

First of all thanks for the response.

Unfortunately, I'm a layman in I.T and have no idea what you mean in terms of table?

I might just try to find an easier Mod, which is ashame as I 'liked' this one

But thanks again for responding
Reply With Quote
  #1157  
Old 07-12-2012, 04:14 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gotcha... Well best of luck with your site!
Reply With Quote
  #1158  
Old 07-22-2012, 01:39 PM
Eole Eole is offline
 
Join Date: May 2012
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S View Post
And when you disable just this mod that goes away, correct?
Hi Ted S,

Yes, when disabling the mod, everything looks right.

I found the options that generate duplicate entries in the forum page :
On your forum, when activating "Order By Helpful Answers Votes?" (set to yes), every thread that have multiple post with a note, the thraed appears multiple times in the thread page of the forum.

I have disable this option at this time (not useful for my forum).

I have an other question : did you think about sorting posts in a thread depending on the number of positive/negative vote. this could give users show rapidly the bests answers (when multiple) just below the question. I'm just working on it, but maybe not with the best way than you.

Bye.
Reply With Quote
  #1159  
Old 08-11-2012, 04:42 PM
faisaly.com faisaly.com is offline
 
Join Date: Mar 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello all .
There is a nasty bug with this hack .
If someone tries to copy the link of a yes/no button which is used for rating while he is logged in , and then logs out and enters it in a browser, the rate gets accepted!!
(suppose the link to the yest button is like this : http://forum.ustmb.ir/helpfulanswers...id=5662&rank=1 , if you copy this to your address bar and press enter, the rate will be accepted! while you are not logged in at all!)
This causes mischievous users to abuse the system for giving positive or negative rates as they wish!
would someone please think about it ?
Reply With Quote
  #1160  
Old 08-11-2012, 07:02 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by faisaly.com View Post
Hello all .
There is a nasty bug with this hack .
If someone tries to copy the link of a yes/no button which is used for rating while he is logged in , and then logs out and enters it in a browser, the rate gets accepted!!
(suppose the link to the yest button is like this : http://forum.ustmb.ir/helpfulanswers...id=5662&rank=1 , if you copy this to your address bar and press enter, the rate will be accepted! while you are not logged in at all!)
This causes mischievous users to abuse the system for giving positive or negative rates as they wish!
would someone please think about it ?
Interesting.... There's 5 of 6 different options that would stop this from happening like if you had a post minimum, votes per day, etc. but in the absence of those it looks like you are correct. And it's gone unnoticed for years too

Simple fix with the attached xml and voting script.

I'll test around more this evening and clean it up for a release.
Attached Files
File Type: xml helpful_answers.xml (82.0 KB, 9 views)
File Type: php helpfulanswers.php (20.0 KB, 9 views)
Reply With Quote
  #1161  
Old 08-12-2012, 12:03 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HA version 2.4.2 has been released this evening to fix two small but important bugs.

The first resolves issues where selected voting types should show strange characters in the ajax posted votes [i.e. %1$s voted...]. This changes phrases only.

The second and more devious issue was spotted by faisaly.com in which users could copy a vote link, logout and use it multiple times to game the system. Forums with minimum post counts and voting limits were not impacted but given the potential impact it's suggested all forums update.

Changes are made to the XML file and /upload/helpfulanswers.php only.

No templates were modified.
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 01:53 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.05762 seconds
  • Memory Usage 2,368KB
  • Queries Executed 27 (?)
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
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete