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-07-2009 03:02 PM

Strange but glad it works.

You can use a conditional to highlight good posts. I'll put sample code up in a bit.

guvner 02-07-2009 06:22 PM

Hi Ted,

I'd like to add my voice to a couple of previous suggestions as well.

1. I think this mod would be perfect if it hooked into the rep. points system - but in a simple manner. I'd like to see it be able to award a point(s) for a good suggestion, but I couldn't use it to subtract points - IMHO that would be too harsh to penalize someone for providing an answer that didn't quite work out.

2. I also agree with a previous poster that the mod's options page needs to have a cell which allows us to add a comma separated listing of applicable forums (or the reverse - a list of excluded forums). In my particular setup, I have 78 forums and sub-forums - all but 6 of them needed the mod to be activated. It took me a long time last night to set them all up - granted that was mostly down to browser refresh speeds, but being able to deal with all forums in one go would be sweet.

3. I'm also hoping that your sample (or future) code will include the ability to add a line in the postbit somewhere under the avatar which lists how many helpful posts a member has made? A little like the current "thank you" mod does - i.e. "Thanked 396 times in 329 posts"

4. In helpfulanswers.php, when the link is clicked, I'd like to see it go to the post in question, but in full thread view (for context) instead of just the single post view.

Hope these suggestions are useful because for forums like mine, this is going to be a very popular mod - I've already nominated it for MOTM.

Thanks,
Mike :)

Ted S 02-07-2009 07:20 PM

Thanks mike. All good ideas that will all be making it into the addon (the first 3 sooner). That said the detail on how you want it to work is awesome. Thanks.

apiasto 02-07-2009 09:30 PM

thnx for the update,will it be the same process or just the xml with overwrite?

Ted S 02-07-2009 09:35 PM

For upgrades you should reupload the php file and install the new plugin. If an update is plugin only I'll generally announce it as such. Thanks for asking!

tpearl5 02-08-2009 09:30 PM

Quote:

Originally Posted by Ted S (Post 1736433)
How about a positive point (or points, you'd set the scale) for each vote they get [negative for a negative vote].

Reputation points? yeh, that would be great!

Quote:

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

Maybe just the first thread should impact the rating? If there's an individual post within a thread that is getting a lot of good ratings then it should probably be in its own thread anyway.
Quote:

Originally Posted by Ted S (Post 1736433)
I'm not familiar with this system; is this AND the rep both needed?

No - if you add the reputation feature then that alone will add to their vbplaza points.

Ted S 02-09-2009 11:13 PM

I'm pleased to announce the release of version 1.4.0 which contains several major feature updates and a few bug fixes. See the complete change log below:

- (Feature) Added optional integration with the reputation system
- (Feature) Added optional variable to identify the top rated thread in template conditionals
- (Feature) Added optional statistics to a user's profile
- (Admin) Added Bulk tool to enable system in forums
- (Admin) Option to disable automatic template plugin
- (System) Add overall rank variable for template conditionals
- (System) Auto add to templates for easier installs (no more templates to edit)
- (System) Added hook locations throughout addon
- (Bug) Fixes issue where non-ajax users weren't getting votes counted
- (Bug) Don't show HR line if no votes and user cant vote

This wraps up most of the requested features on my list. If there's something you would like to see added that was not put into 1.4.0 please let me know.

And of course as a new release please report any bugs or errors you find.

guvner 02-10-2009 02:54 AM

Great stuff Ted!

A couple of questions if I may:

1. Will the upgrade revert my current helful-answers templates and/or overwrite the current phrases? I have some formatting in there I want to keep so if they do revert I'll take a copy first.

2. You mentioned earlier about some conditional examples - i.e. I wanted to add some code to the postbit in addition to the usercp feature which you've now built in - did you get a chance to look at this yet?

My users love this hack - thank you again!

Mike :)

Ted S 02-10-2009 03:01 AM

Thanks Mike!

Quote:

Originally Posted by guvner (Post 1739331)
1. Will the upgrade revert my current helful-answers templates and/or overwrite the current phrases? I have some formatting in there I want to keep so if they do revert I'll take a copy first.

The old phrases shouldn't be overritten but the template might depending on the version you used (no changes in 1.4 but there were before) so back that up.

Quote:

2. You mentioned earlier about some conditional examples - i.e. I wanted to add some code to the postbit in addition to the usercp feature which you've now built in - did you get a chance to look at this yet?
I'm building some more examples tonight, if you tell me what you're trying to do I can start with that example...

guvner 02-10-2009 03:15 AM

Sounds good - I'd like to add a line to the postbit which is along the lines of what the "thank you" mod provides. similar to:

"Thanked 396 times in 329 posts"

I guess we could adjust the phrase ourselves in the conditional, but perhaps something like:

"Has provided xx helpful answers in the last yy days"

Maybe the "yy days" is a stretch and could add too many extra queries, but just a thought . . .


All times are GMT. The time now is 06:35 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.01466 seconds
  • Memory Usage 1,746KB
  • 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
  • (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