vb.org Archive

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

Ted S 02-06-2009 04:06 AM

Quote:

Originally Posted by Quantnet.org (Post 1735744)
suggestion:
Instead of manually enable forum by forum, consider having the options in setting control to enable a group of forums.
for example:
Enable (Forum ID) : 1,3,4,5
Disable: 2,6,8


I'm not sure that's any more effective. Many sites have 50 or 100 or more forums and getting all their ids would not be fun. perhaps a bulk upload tool would make more sense.

tpearl5 02-06-2009 02:01 PM

Quote:

Originally Posted by Ted S (Post 1735743)
can you explain this a bit more?

Sure
  • Add option to allow this hack to also contribute to the user's reputation. (without comments) This way the user gets credit for posting the thread/post.
  • Add option to contribute to thread rating. "yes" is a 5, "no" is a 1. Thread rating is redundant with this hack, no?
  • Include setting for vbplaza to add points to user when they get a good rating, and subtract when they get a bad rating. (this will be done through reputation if that option is added)

Ted S 02-06-2009 07:40 PM

Version 1.3.4 has been releases which addresses several minor bugs and adds functionality. Here's a complete list of the changes:

- Bug Fix: Templates 'helpful_answers_top' and 'helpful_answers_top_bit' are now cached.
- Bug Fix: English text in topanswers routine now uses phrases
- Bug Fix: Users may not rate their own posts (see new feature)
- New template: 'helpful_answers_error' is used to show ajax errors
- New feature: Admins may require a minimum number of posts before a user can rate posts
- New feature: Admins may now enable self rating to let users rate their own posts
- New feature: User related errors now print back to ajax users (allows user to understand issue)

Updating is recommended but not required.

Ted S 02-06-2009 07:43 PM

Quote:

Originally Posted by tpearl5 (Post 1736107)
[*]Add option to allow this hack to also contribute to the user's reputation. (without comments) This way the user gets credit for posting the thread/post.

How about a positive point (or points, you'd set the scale) for each vote they get [negative for a negative vote].

Quote:

Originally Posted by tpearl5 (Post 1736107)
[*]Add option to contribute to thread rating. "yes" is a 5, "no" is a 1. Thread rating is redundant with this hack, no?

I'm not sure the post should impact the thread rating... you could have a great post with a few bad ratings. We could however do a new column: average post and show the ratings of those?

Quote:

Originally Posted by tpearl5 (Post 1736107)
[*]Include setting for vbplaza to add points to user when they get a good rating, and subtract when they get a bad rating. (this will be done through reputation if that option is added)

I'm not familiar with this system; is this AND the rep both needed?

guvner 02-06-2009 09:30 PM

For my tech support forum this is ideal - many thanks Ted!

I'm testing this at the moment in a private forum - just one small problem though, I can't get the "Did you find this post helpful? Yes | No" box to show up when using the standard postbit template yet it shows just fine with postbit legacy.

In my case, my primary style is uses the standard postbit and I also offer a child style of the primary which uses the postbit legacy template as the default.

I can confirm that the template hook $template_hook[postbit_controls] appears in both templates.

To troubleshoot this, I next added the template code $helpful_answers to the default VB templates and the same thing happened - it showed up when the legacy template is used but not with the standard postbit template.

Any ideas? :confused:

Ted S 02-06-2009 10:29 PM

I just tried this myself; Try placing the variable before "<!-- message, attachments, sig -->".

If that doesn't work let me know.

guvner 02-06-2009 10:39 PM

Nope, sorry - same result - this is very puzzling - can't think of a logical reason for it.

Ted S 02-06-2009 10:43 PM

Interesting. Can you think of any Addons which may impact the postbit template? If you view source do you see the <hr ...> tag?

guvner 02-06-2009 10:47 PM

yes - just after the title as per:

Code:

                        <!-- icon and title -->
                        <div class="smallfont">
                               
                                <strong>Re: It's really starting to get annoying...</strong>
                        </div>
                        <hr size="1" style="color:#D1D1E1; background-color:#D1D1E1" />
                        <!-- / icon and title -->

I considered another hack being involved - but why would my stock VB templates be affected the same in the same way?

Should I post my posbit template code here?

Ted S 02-06-2009 10:51 PM

Well that's good progress. It doesn't sound like another addon conflict as the script is making it to rendering.

It looks like there's no vote to show and for some reason no rights for you to vote on that post. Are you sure the addon is (1) enabled for the forum with the postbit style and (2) not your own post?


All times are GMT. The time now is 04:21 AM.

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.01152 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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