The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[AJAX] Helpful Answers - Allow users to rate individual posts Details »» | |||||||||||||||||||||||||||||||||||
[AJAX] Helpful Answers - Allow users to rate individual posts
Developer Last Online: Nov 2020
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:
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
Screenshots
Supporters / CoAuthors Show Your Support
|
10 благодарности(ей) от: | ||
Baja, Eole, piratarg, PoorGuysGarage, tbworld, TheLastSuperman, thompson, U-Fig |
Comments |
#572
|
||||
|
||||
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"> </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" > {vb:raw post.goodrank}</a> <vb:if condition="$vboptions['helpans_neg']"> <span class="seperator"> </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} </a> </vb:if> <vb:else /> <vb:if condition="!$show[guest]"> <vb:if condition="$post[yesno]"> <span class="rateuppost_u"> {vb:raw post.goodrank}</span> <vb:if condition="$vboptions['helpans_neg']"> <span class="seperator"> </span> <span class="ratedownpost"> {vb:raw post.badrank}</span> </vb:if> <vb:else /> <span class="rateuppost"> {vb:raw post.goodrank}</span> <vb:if condition="$vboptions['helpans_neg']"> <span class="seperator"> </span> <span class="ratedownpost_u"> {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" > {vb:raw post.goodrank}</a> <vb:if condition="$vboptions['helpans_neg']"> <span class="seperator"> </span> <a class="ratedownpost" href="./helpfulanswers.php?do=guestrate" rel="nofollow" > {vb:raw post.badrank}</a> </vb:if> </vb:if> </span> </vb:if> under Code:
<div class="postfoot"> 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}" /> </a> </vb:if> Code:
<vb:if condition="$show['helpfulanswer']"> {vb:raw helpful_answers} </vb:if> 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; } 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. |
#573
|
||||
|
||||
Thanks for the guide CvP, after following the instructions this is the output I am getting.... Thanks for having a look.
|
#574
|
||||
|
||||
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. |
#575
|
||||
|
||||
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; |
#576
|
||||
|
||||
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) |
#577
|
||||
|
||||
Quote:
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. |
#578
|
|||
|
|||
|
#579
|
||||
|
||||
Quote:
Edit: Nevermind, think I got it.... Was lookin' in the wrong spot! |
#580
|
||||
|
||||
edit helpful_answers_roll
and move the <span class="seperator"> </span> to where you want. |
#581
|
|||
|
|||
Quote:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|