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

Quote:
Originally Posted by Ted S View Post
There is basic moderation via the admin, more extensive admin options are still in development.
Glad to know there are still more features to come :up:

Quote:
Originally Posted by Ted S View Post
Are you using the hide negative rated posts option?
yes, he was using it. when turned off, it was fixed.

Quote:
Originally Posted by Ted S View Post
It sounds like your css template modifications have altered the default collapse behavoir or the behavoir in the postbit pages.
can you please elaborate? I have a vB's stock skin (only admin available) and this problem occurs in that too.
To me, it seems like while hiding the post, it is placing the "collapse" button instead of "expand" button.
setting display: none; and display: block; thru firebug works fine. so the problem is placing the wrong button in there.

Quote:
Originally Posted by Ted S View Post
The hide bit adds a new layer to hide the post. If you have a background you should not use this option.
how about doing it this way:
to hide a post,
Code:
li#post_203404 div.postdetails, li#post_203404 div.postfoot {
 display: none;
}
then in li#post_203404 div.posthead
insert something like this in span.nodecontrols [i just copy pasted the collapse code that i get; it should be the expand code):
HTML Code:
<a class="collapse" id="collapse_ppost_203404" href="#top"><img src="images/buttons/collapse_40b.png" alt="" title="Collapse this Post"></a>
when clicked, i can just set display: block; to those two div.
when clicked again, set display: none;
Reply With Quote
  #563  
Old 07-20-2010, 06:03 AM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

template name: helpful_answers_hidelowstart

contents:
Code:
		
			<div class="block collapse">
				<h2 class="blockhead" style="background-color:#fff;border:none;">

				<a class="collapse" id="collapse_ppost_{vb:raw post.postid}" href="#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_ppost_{vb:raw post.postid}_img}_40b.png" alt="" title="Collapse this Post" /></a>		
				<span class="blocktitle" style="color:#000">{vb:rawphrase helpfulanswer_hidden,{vb:raw post.username}}</span>
				
				</h2>
			</div><br />
			
			<div id="ppost_{vb:raw post.postid}" style="display: none;">
I'm not that much expert in vB codings, but somehow, this seems wrong to me.


also, Ted, what does this option do? "Enable Single Post Voting"
Reply With Quote
  #564  
Old 07-20-2010, 01:53 PM
bfdzio bfdzio is offline
 
Join Date: Oct 2007
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has the problem with all posts collapsing when you have a negative rating?

I want to have bad posts get collapsed but not when only ONE person votes it negatively. I want bad posts to collapse when they get at least 5 negative votes. Unfortunately, once any post is hidden they are all hidden.

Was mentioned and replied to here:
https://vborg.vbsupport.ru/showthrea...86&post2062886
Reply With Quote
  #565  
Old 07-20-2010, 02:42 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey Ted. I have modified it a bit. I believe this UI is much better (and simple) than lots of texts.
i have moved it to post footer; after multi quote button.



anyways, I have two problems.

It seems post.goodrank is not initialized to 0 (but post.badrank is 0) when a post is not voted (up or down) even once.
so i can never get a /\ 0 | 0 \/ it is always /\ | 0 \/




2nd problem: I'm not sure how I can update the counters and images using ajax.
if you can give me some hint, I'm sure i can manage it.
I have modified the _roll template properly. all it needs to do is update codes according to the template.
Reply With Quote
  #566  
Old 07-20-2010, 09:32 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
hey Ted. I have modified it a bit. I believe this UI is much better (and simple) than lots of texts.

sure is - can you share how you achieved this?
Reply With Quote
  #567  
Old 07-20-2010, 11:22 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 pete_brady View Post
sure is - can you share how you achieved this?
+1

I want this!
Reply With Quote
  #568  
Old 07-21-2010, 04:21 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bfdzio View Post
Has the problem with all posts collapsing when you have a negative rating?

I want to have bad posts get collapsed but not when only ONE person votes it negatively. I want bad posts to collapse when they get at least 5 negative votes. Unfortunately, once any post is hidden they are all hidden.

Was mentioned and replied to here:
https://vborg.vbsupport.ru/showthrea...86&post2062886
The feature lets you pick the number of votes, just be sure you set this in your admin options.
Reply With Quote
  #569  
Old 07-21-2010, 04:24 AM
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
It seems post.goodrank is not initialized to 0 (but post.badrank is 0) when a post is not voted (up or down) even once.
So you mean it's blank? Yes. It's not set unless there's a value... simple solution is to edit the plugin to make this variable an INT so if it's empty it goes to 0. This is changed for the next release but you can do it yourself... around like 946

Code:
$post['goodrank'] = int($post['goodrank']);
Quote:
2nd problem: I'm not sure how I can update the counters and images using ajax.
if you can give me some hint, I'm sure i can manage it.
I have modified the _roll template properly. all it needs to do is update codes according to the template.
You need to use the javascript voting code:

Code:
<a 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" onmouseover="document.post_{vb:raw post.postid}_up.src='images/buttons/ha_arrowup.gif';" onmouseout="document.post_{vb:raw post.postid}_up.src='images/buttons/ha_arrowup_gray.gif';"><img name="post_{vb:raw post.postid}_up" src="images/buttons/ha_arrowup_gray.gif" width="11" height="20" border="0" alt="{vb:rawphrase helpfulanswer_yes}" /></a>
Reply With Quote
  #570  
Old 07-21-2010, 04:26 AM
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
how about doing it this way:
to hide a post,
Code:
li#post_203404 div.postdetails, li#post_203404 div.postfoot {
 display: none;
}
then in li#post_203404 div.posthead
insert something like this in span.nodecontrols [i just copy pasted the collapse code that i get; it should be the expand code):
HTML Code:
<a class="collapse" id="collapse_ppost_203404" href="#top"><img src="images/buttons/collapse_40b.png" alt="" title="Collapse this Post"></a>
when clicked, i can just set display: block; to those two div.
when clicked again, set display: none;
The post ids are generated dynamically per thread so it's a burden to set this per li.

The css styles for your post will generally still show, i'm looking to see what's getting overriden... vb css is pretty evil.
Reply With Quote
  #571  
Old 07-21-2010, 08:14 AM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S
So you mean it's blank? Yes. It's not set unless there's a value... simple solution is to edit the plugin to make this variable an INT so if it's empty it goes to 0. This is changed for the next release but you can do it yourself... around like 946
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

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!
sure. but let me get it working properly first
If Ted feels like, he can even include it in the core product.

Quote:
Originally Posted by Ted S View Post
You need to use the javascript voting code:

Code:
<a 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" onmouseover="document.post_{vb:raw post.postid}_up.src='images/buttons/ha_arrowup.gif';" onmouseout="document.post_{vb:raw post.postid}_up.src='images/buttons/ha_arrowup_gray.gif';"><img name="post_{vb:raw post.postid}_up" src="images/buttons/ha_arrowup_gray.gif" width="11" height="20" border="0" alt="{vb:rawphrase helpfulanswer_yes}" /></a>
[s]The rating, ajax etc...everything is working.
After rating, I get the msg "...thanks for rating...".
But I want to update the counter and arrow images. I'm not sure from where the ajax response text is coming from.[/s]
I managed to pull it off


Quote:
Originally Posted by Ted S View Post
The post ids are generated dynamically per thread so it's a burden to set this per li.

The css styles for your post will generally still show, i'm looking to see what's getting overriden... vb css is pretty evil.
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.
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:55 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.06291 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
  • (6)bbcode_code
  • (2)bbcode_html
  • (15)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
  • (4)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