vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - [AJAX] Helpful Answers - Post Rating System (plus many sub-features) (https://vborg.vbsupport.ru/showthread.php?t=204117)

Wonksta 07-21-2009 12:47 PM

When I installed 1.8.4 it does not add the vote options in posts even though the manual insert code is disabled!

tpearl5 07-21-2009 12:52 PM

Quote:

Originally Posted by Ted S (Post 1852580)
Odd. Let's try again...

hrm, that didn't do it either

Saviour 07-21-2009 01:16 PM

I use the Articles Forum mod and would like to know if there's any way to set your mod to just show the rating in the first thread...and not the subsequent posts.

What do I need to edit in order to accomplish this...or is there a setting in the mod, itself?

Update...

Nevermind...found out I have to edit one of the Article Forum templates in order to accomplish this.

tpearl5 07-21-2009 02:04 PM

Quote:

Originally Posted by Ted S (Post 1852580)
Odd. Let's try again...

This is the condition you'll want for helpful_answers_mosthelp_post
<if condition="!$GLOBALS['FIRSTPOSTID'] AND $helpfulanswer[postid] != $GLOBALS['qrfirstpostid']">

Ted S 07-21-2009 02:46 PM

Quote:

Originally Posted by willy888 (Post 1852817)
I installed it 1.8.4 but can't vote in posts !!!!! Nothing apears
I only see in admim cp Helpful Answers settings & Helpful Answers Reputation Settings

Step 3) Enable the system in any of your forums by visiting the forum options and scrolling to the end of the page.

There are not

Alternatively you can update multiple forums through the Bulk Forum Enabler located in the Helpful Answers Tab.(Required)

what is this?

It sounds like you didn't follow the directions properly and have not enabled the addon in any forums. By default it is turned off in all forums.

To enable it there are two options. First you may go to the forum options page for each forum and turn it on.

Secondly you may use a tool included with this addon to enable it in multiple forums. The tool can be found in the helpful answers section of your Admin CP.

Ted S 07-21-2009 02:47 PM

Quote:

Originally Posted by tpearl5 (Post 1852883)
This is the condition you'll want for helpful_answers_mosthelp_post
<if condition="!$GLOBALS['FIRSTPOSTID'] AND $helpfulanswer[postid] != $GLOBALS['qrfirstpostid']">

Awesome! I'll get that updated for 1.9.1 beta 290239 :D

Ted S 07-21-2009 02:50 PM

Quote:

Originally Posted by SighK (Post 1852834)
When I installed 1.8.4 it does not add the vote options in posts even though the manual insert code is disabled!

Have you enabled the modification in the forum you are viewing threads in?

The Smoking Gun 07-21-2009 05:08 PM

Sorry to take the easy way out but there are 500 some odd posts in this thread for me to look for what I have to ask.
~Thank you for understanding~

It states there are three utility scripts attached to this post...
ha_import.php
ha_old.php
ha_revote.php

Which I believe are VERY useful tools for this mod, however before installing it I would like to have the most (for me being a 3.8 for my first version used) applicable tool, which seems to be missing from the attachments list of files as listed here.

Attached Files
File Type: php ha_old.php (2.7 KB, 16 views)
File Type: php ha_revote.php (2.8 KB, 17 views)

Where would one find the 'ha_import.php' attachment which seems to be missing?

Thanks for sharing such a great add-on that is sure to make things much easier to find for many newer users who often get overwhelmed by what they would need to read through to get close to the answer they are looking for! (wonders why this isn't being utilized here LOL)

Thanks for enlightening me to what I may just be overlooking, or isn't obvious to someone new here!

TSG!


Quote:

Originally Posted by Ted S (Post 1733465)
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.

Code:

$post[totalrank] - The total number of ratings
$post[goodrank] - The number of good ratings
$post[badrank] - The number of bad ratings
$post[helpfulgood] - True if the post is positive overall (more good than bad ratings)
$show[rate_helpfulanswer] - True if the user can rate the post (false if they are banned or have rated it).
$post[helpfulanswerid] - True if the user has already rated the post.

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

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

Code:

$helpfulposts[totalranks] - The total ratings of a member's ppsts
$helpfulposts[goodranks] - The total good ratings of a member's posts
$helpfulposts[badranks] - The total bad ratings of a member's posts

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

Identify the top rated post.

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

Code:

<if condition="$thread[toppost] == $post[postid] AND THIS_SCRIPT == 'showthread'">This is the top rated post!</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
Code:

<if condition="$post['totalrank']">
 <phrase 1="$post[goodrank]" 2="$post[totalrank]">$vbphrase[helpfulanswer_x_out_of_y]</phrase>
</if>

With the new code:
Code:

<if condition="$post['totalrank']">
 + $post[goodrank]
</if>

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

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

<if condition="$post['totalrank']">
 <phrase 1="$post[goodrank]" 2="$post[totalrank]">$vbphrase[helpfulanswer_x_out_of_y]</phrase>
</if>

With the new code:
Code:

<if condition="$post['totalrank']">
 <img src="images/buttons/ha_thumbsup.gif" width="11" height="20" border="0" alt="Good" /> $post[goodrank]
 <img src="images/buttons/ha_thumbsdn.gif" width="11" height="20" border="0" alt="Bad" /> $post[badrank]
</if>

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

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="
Code:

<if condition="$thread[toppost] == $post[postid]">background-color:#CCCCCC;</if>
#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:
Code:

<td class="alt1" align="$stylevar[right]" style="<if condition="$thread[toppost] == $post[postid]">background-color:#CCCCCC;</if>border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
================================================== ==========================

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_import.php - This file will import thank yous out of the Thank You Post hack and import them as helpful votes.
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


Ted S 07-21-2009 06:08 PM

That's a wonderfully observant question!

ha_import.php is missing as it contained a nasty bug and needs to be redone. In the mean time you can use the modification, you just can't import those votes but I will have it back up soon!

The Smoking Gun 07-21-2009 06:40 PM

Thank you for your expedient reply Ted, being a bit new to this I have to ask... which votes won't I be able to import until this is re-done?
And I assume anything that has previously transpired will then still be able to be imported with out corrupting the existing stats?

And is there an ETC (estimated time of completion) ?
I am not trying to rush you, only make informed plans for my forums.

Thanks again,
TSG!


All times are GMT. The time now is 01:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03165 seconds
  • Memory Usage 1,776KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete