vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - [AJAX] Helpful Answers - Allow users to rate individual posts (https://vborg.vbsupport.ru/showthread.php?t=233296)

SilverBoy 01-16-2012 05:08 AM

Quote:

Originally Posted by Ted S (Post 2288413)
Alter the hook forumdisplay_query_threadid and add
Code:

echo "option enabled";
after

Code:

if($foruminfo['helpfulanswerbits'] AND $foruminfo['helpfulanswerorderbits']){
If the option is properly enabled, this message will show up with you view the page.

do you mean it will sort the threads in forumdisplay page according to the votes?

Ted S 01-16-2012 05:23 AM

Quote:

Originally Posted by SilverBoy (Post 2288416)
as you said in admin option "If enabled, users will have votes on their posts counted to display in the postbit template, their profile, etc" this option will display the total # of votes in postbit template and in profile, for me it displayed only in profile page, but it not appear in postbit.

It's enabled but not automatically displayed. You have to add the appropriate variable [check post #3 of this thread] to show whatever data you want.

Ted S 01-16-2012 05:25 AM

Quote:

Originally Posted by SilverBoy (Post 2288421)
do you mean it will sort the threads in forumdisplay page according to the votes?

You keep stating that things don't work and then asking what they do which makes it very hard to understand if the feature has a bug or if you simply don't understand it.

The option alters the ranking of posts based on votes.

Ted S 01-16-2012 05:27 AM

Quote:

Originally Posted by SilverBoy (Post 2288419)
I installed it, I get only this line before the header
"debugging...show blockdebugging...show blockdebugging...show blockdebugging...show blockdebugging...show blockdebugging...show blockdebugging...show block "

Strange that it repeats but good that it's getting called.

Check that the template helpful_answers_mosthelp_post exists and that the hook location postbit_end is still in your template if you have modified it.

SilverBoy 01-16-2012 05:36 AM

I don't have template with this name "helpful_answers_mosthelp_post" !!

SilverBoy 01-16-2012 05:54 AM

I rechecked the plugin xml file and I didn't get template with that name in it !!

systutorials 01-16-2012 05:58 AM

Hey Ted S, great mod and was exactly what I was after. Thanks for this. I've installed it today and have read pages of this thread to get the answer i'm after but couldn't find it, or i've missed it along the way, but i'm trying to display the "rated helpful x out of x times" count under the users avatar or under their posts count mini profile within threads ? Was thinking to have some text like "Helpfull Posts: X"

SilverBoy 01-16-2012 06:02 AM

I asked you about this option meaning before "Enable Single Post Voting" and you told me about the description that must be under it, but for me I don't get that description.

so after I checked the plugin file I find that you add "k" letter in add that phrase line that is why it is not work.

I'm talking about this line
"<phrase name="setting_helpans_onevotek_desc" date="0" username="Ted S" version="2.0.5"><![CDATA[If enabled, will only be able to vote on one post in a single thread. <strong>Adds one query to each SHOWTHREAD page.</strong>]]></phrase>"

the phrase name must be "setting_helpans_onevote_desc"

Ted S 01-16-2012 06:08 AM

Quote:

Originally Posted by SilverBoy (Post 2288432)
I rechecked the plugin xml file and I didn't get template with that name in it !!

You are correct.

We'll add this to the bug list but honestly as no one else has mentioned this since the 4.x version came out, it's not something you'll see added in until our next major update.

Ted S 01-16-2012 06:09 AM

Quote:

Originally Posted by systutorials (Post 2288434)
Hey Ted S, great mod and was exactly what I was after. Thanks for this. I've installed it today and have read pages of this thread to get the answer i'm after but couldn't find it, or i've missed it along the way, but i'm trying to display the "rated helpful x out of x times" count under the users avatar or under their posts count mini profile within threads ? Was thinking to have some text like "Helpfull Posts: X"

No problem... You can find the variables in post #3 of this thread.

This is a fairly old mod and I can't recall if they're all actually enabled but that's the best place to start.


All times are GMT. The time now is 01:36 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.02145 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)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