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
  #572  
Old 07-21-2010, 12:30 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pete_brady View Post
sure is - can you share how you achieved this?
Quote:
Originally Posted by 10 Gauge View Post
+1

I want this!
Here's what you need to do:

first open the helpfulanswers.php in your forum root.
then comment out the lines shown in image. our objective is to always use helpful_answers_roll.

Then go to admincp > style manager > edit template > help templates > helpful_answers_roll

replace all the code in that template with this:

Code:
			
			<vb:if condition="$show['helpfulanswer']">
				<span id="helpfulanswers_box_{vb:raw post.postid}">
				<span class="seperator">&nbsp;</span>
				<vb:if condition="$show['rate_helpfulanswer']">
					<a class="rateuppost" href="./helpfulanswers.php?do=rate&postid={vb:raw post.postid}&rank=1" <vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate({vb:raw post.postid}, 1);" </vb:if> rel="nofollow" >&nbsp;{vb:raw post.goodrank}</a>
<vb:if condition="$vboptions['helpans_neg']">
					<span class="seperator">&nbsp;</span>
					<a class="ratedownpost" href="./helpfulanswers.php?do=rate&postid={vb:raw post.postid}&rank=0" <vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate({vb:raw post.postid}, 0);" </vb:if> rel="nofollow" >{vb:raw post.badrank}&nbsp;</a>
</vb:if>
				<vb:else />
					<vb:if condition="!$show[guest]">
						<vb:if condition="$post[yesno]">
					<span class="rateuppost_u">&nbsp;{vb:raw post.goodrank}</span>
<vb:if condition="$vboptions['helpans_neg']">
					<span class="seperator">&nbsp;</span>
					<span class="ratedownpost">&nbsp;{vb:raw post.badrank}</span>
</vb:if>
						<vb:else />
					<span class="rateuppost">&nbsp;{vb:raw post.goodrank}</span>
<vb:if condition="$vboptions['helpans_neg']">
					<span class="seperator">&nbsp;</span>
					<span class="ratedownpost_u">&nbsp;{vb:raw post.badrank}</span>
</vb:if>
						</vb:if>
					</vb:if>
				</vb:if>
				<vb:if condition="$show['guest'] AND $vboptions['helpans_guestshow']">
					<a class="rateuppost" href="./helpfulanswers.php?do=guestrate" rel="nofollow" >&nbsp;{vb:raw post.goodrank}</a>
<vb:if condition="$vboptions['helpans_neg']">
					<span class="seperator">&nbsp;</span>
					<a class="ratedownpost" href="./helpfulanswers.php?do=guestrate" rel="nofollow" >&nbsp;{vb:raw post.badrank}</a>
</vb:if>
				</vb:if>
				</span>
			</vb:if>
then go to admincp > style manager > edit template > postbit templates > postbit legacy
under
Code:
<div class="postfoot">
find
Code:
<a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a> </vb:if>
so after that </vb:if> and before </span>, add
Code:
<vb:if condition="$show['helpfulanswer']">
						{vb:raw helpful_answers}
					</vb:if>
now go to admincp > style manager > edit template > css templates > additional.css
add
Code:
.postbitlegacy .postfoot .textcontrols a.rateuppost, .postbit .postfoot .textcontrols a.rateuppost, .eventbit .eventfoot .textcontrols a.rateupevent {
background:url("images/buttons/arrow_mini_up_gray.png") no-repeat scroll left center #E9E9E9;
border:0 solid #A8A8A8;
padding:0 0 0 20px;
color: #008000;
}
.postbitlegacy .postfoot .textcontrols a.rateuppost:hover, .postbit .postfoot .textcontrols a.rateuppost:hover, .eventbit .eventfoot .textcontrols a.rateupevent:hover {
background:url("images/buttons/arrow_mini_up_hover.png") no-repeat scroll left center transparent;
border:0 none;
padding:0 0 0 20px;
color: #008000;
}

.postbitlegacy .postfoot .textcontrols a.ratedownpost, .postbit .postfoot .textcontrols a.ratedownpost, .eventbit .eventfoot .textcontrols a.ratedownevent {
background:url("images/buttons/arrow_mini_down_gray.png") no-repeat scroll right center #E9E9E9;
border:0 solid #A8A8A8;
padding:0 20px 0 0;
color: #800000;
}
.postbitlegacy .postfoot .textcontrols a.ratedownpost:hover, .postbit .postfoot .textcontrols a.ratedownpost:hover, .eventbit .eventfoot .textcontrols a.ratedownevent:hover {
background:url("images/buttons/arrow_mini_down_hover.png") no-repeat scroll right center transparent;
border:0 none;
padding:0 20px 0 0;
color: #800000;
}

.postbitlegacy .postfoot .textcontrols span.rateuppost, .postbit .postfoot .textcontrols span.rateuppost {
background:url("images/buttons/arrow_mini_up.png") no-repeat scroll left center #E9E9E9;
border:0 solid #A8A8A8;
padding:0 0 0 20px;
color: #008000;
}

.postbitlegacy .postfoot .textcontrols span.ratedownpost, .postbit .postfoot .textcontrols span.ratedownpost {
background:url("images/buttons/arrow_mini_down.png") no-repeat scroll right center #E9E9E9;
border:0 solid #A8A8A8;
padding:0 20px 0 0;
color: #800000;
}
.postbitlegacy .postfoot .textcontrols span.rateuppost_u, .postbit .postfoot .textcontrols span.rateuppost_u {
background:url("images/buttons/arrow_mini_up_hover.png") no-repeat scroll left center #E9E9E9;
border:0 solid #A8A8A8;
padding:0 0 0 20px;
color: #008000;
}

.postbitlegacy .postfoot .textcontrols span.ratedownpost_u, .postbit .postfoot .textcontrols span.ratedownpost_u {
background:url("images/buttons/arrow_mini_down_hover.png") no-repeat scroll right center #E9E9E9;
border:0 solid #A8A8A8;
padding:0 20px 0 0;
color: #800000;
}
Finally, go to admincp > options > helpful options > enable manual placement.

I have only checked it in legacy postbit.
if you make the similar change in regular postbit, it should work.


NOTE: This layout is NOT for "ten-based" rating.

Please remember to backup your database before trying. and I'm not responsible if anything goes wrong.


edit: you need to extract the arrow_mini.zip in /images/buttons directory.
Attached Images
File Type: jpg Capture.jpg (103.9 KB, 0 views)
Attached Files
File Type: zip arrow_mini.zip (18.3 KB, 17 views)
Reply With Quote
  #573  
Old 07-21-2010, 02:38 PM
10 Gauge's Avatar
10 Gauge 10 Gauge is offline
 
Join Date: Nov 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the guide CvP, after following the instructions this is the output I am getting.... Thanks for having a look.
Attached Images
File Type: jpg new_helpful_layout.jpg (11.3 KB, 0 views)
Reply With Quote
  #574  
Old 07-21-2010, 02:41 PM
10 Gauge's Avatar
10 Gauge 10 Gauge is offline
 
Join Date: Nov 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit: I'm a 'tard.... Didn't have it set to arrows in the options.....

Ok one last question, what bit of CSS do I need to change to make the non-rolled over arrows have my darker footer background. From the screenshot you can see that the background is lighter, the rollover color is correct.

Thanks.

2nd Edit: GOT IT! Thanks. Looking forward to the 0 bug fix for the up arrow.
Attached Images
File Type: jpg helpful_css_help.jpg (6.1 KB, 0 views)
Reply With Quote
  #575  
Old 07-21-2010, 02:46 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

find what you added in additional.css
remove all #E9E9E9
from
background:url("images/buttons/arrow_mini_up_gray.png") no-repeat scroll left center #E9E9E9;
to
background:url("images/buttons/arrow_mini_up_gray.png") no-repeat scroll left center;
Reply With Quote
  #576  
Old 07-21-2010, 02:57 PM
10 Gauge's Avatar
10 Gauge 10 Gauge is offline
 
Join Date: Nov 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man, got it! Let us know when you get the 0 bug fixed.

Also, when I go to replace the Post Thank You Hack with this permanently, could you direct me where to place the code to have the up and down arrows at the far left of the footer bar instead of the far right? (This would put it where the Thanks button currently is)
Attached Images
File Type: jpg md_footer.jpg (8.0 KB, 0 views)
Reply With Quote
  #577  
Old 07-21-2010, 05:39 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 10 Gauge View Post
Thanks man, got it! Let us know when you get the 0 bug fixed.

Also, when I go to replace the Post Thank You Hack with this permanently, could you direct me where to place the code to have the up and down arrows at the far left of the footer bar instead of the far right? (This would put it where the Thanks button currently is)
refer to the postbit legacy modification i posted.
there I asked you to place a code after </vb:if> and before </span>.
if you notice, there is another <span> right after that </span>.
move that piece of code right after this <span>.

btw, placing is far right makes no sense unless you are using RTL.
Reply With Quote
  #578  
Old 07-21-2010, 06:35 PM
pete_brady pete_brady is offline
 
Join Date: Mar 2002
Location: Dublin
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CvP View Post
Here's what you need to do:


awesome. thanks a lot dude.
Reply With Quote
  #579  
Old 07-21-2010, 06:54 PM
10 Gauge's Avatar
10 Gauge 10 Gauge is offline
 
Join Date: Nov 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CvP View Post
refer to the postbit legacy modification i posted.
there I asked you to place a code after </vb:if> and before </span>.
if you notice, there is another <span> right after that </span>.
move that piece of code right after this <span>.

btw, placing is far right makes no sense unless you are using RTL.
Lemme pick ur brain on the CSS again real quick. Moving it to the left side, how do I move the divider bar from the left to the right?

Edit: Nevermind, think I got it.... Was lookin' in the wrong spot!
Reply With Quote
  #580  
Old 07-21-2010, 07:01 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edit helpful_answers_roll
and move the
<span class="seperator">&nbsp;</span>
to where you want.
Reply With Quote
  #581  
Old 07-21-2010, 08:48 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CvP View Post
I'm sorry but I'm not sure where to place it. 946 number line of which file? the main XML? it didn't work
In the XML file yes. Are all the fields blank or just goodrank?

Quote:
then you can try using the already built in post hiding method. the one vB uses for deleted posts. it has a view post button. so you can just reuse that template with a little modification.
then add a hide post button if necessary.
The function being used is from the core vbulletin... I'll take a look at this more down the road, several old feature requests to get too first.
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 03:44 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.05650 seconds
  • Memory Usage 2,387KB
  • 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
  • (5)bbcode_code
  • (7)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
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)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