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)

Ted S 10-22-2009 03:30 AM

Great! For the future there's also a bulk forum tool in your admin panel.

reddyink 10-27-2009 07:46 PM

I installed the add-on from VBExperience for Helpful answers. Nothing happened anywhere. Where do I need to enable it. It doesn't automatically take VOTE on Threads and add VOTE on posts!

Ted S 10-28-2009 02:43 AM

This mod must be enabled per forum using the bulk forum manager. There is also a template change that must be made per the install file.

As for removing other voting options, that's entirely up to you.

rlpartida 11-03-2009 08:06 PM

Thank you Ted for this wonderfull addon... Do you have any idea if this works with GARS?

Thanks again!

Ted S 11-03-2009 11:41 PM

Quote:

Originally Posted by rlpartida (Post 1909934)
Thank you Ted for this wonderfull addon... Do you have any idea if this works with GARS?

Thanks again!

I do not but I would encourage you to give it a test try!

dai-kun 11-04-2009 01:16 AM

Is it possible for only letting members rate one post per thread? Thanks!

Pvtiste 11-04-2009 02:03 AM

Excellent mod! Congrats and thanks for sharing!!!! :D

Ted S 11-04-2009 03:29 AM

Quote:

Originally Posted by dai-kun (Post 1910019)
Is it possible for only letting members rate one post per thread? Thanks!

Not currently but a few little tweaks would let you do this.

Ted S 11-05-2009 01:42 AM

1 Attachment(s)
Quote:

Originally Posted by dai-kun (Post 1910019)
Is it possible for only letting members rate one post per thread? Thanks!

Try this beta version of 2.0.5.

dai-kun 11-05-2009 07:44 AM

Hey thanks for the addon. I tried using "Enable Single Post Voting" as "yes" but members can still vote for multiple post in single thread. :(

You're missing a curly bracket and onevote should be helpans_onevote I believe

In helpfulanswers.php

Quote:

// check if they can vote more than once per thread
if($vbulletin->options['onevote']){

$helpfulvote = $db->query_first_slave("
SELECT COUNT(helpfulanswerid) as count FROM " . TABLE_PREFIX . "helpfulanswer
WHERE userid = $safeuserid AND threadid = $postinfo[threadid]
");
$count = $helpfulvote['count'];
Quote:

// check if they can vote more than once per thread
if($vbulletin->options['helpans_onevote']){

$helpfulvote = $db->query_first_slave("
SELECT COUNT(helpfulanswerid) as count FROM " . TABLE_PREFIX . "helpfulanswer
WHERE userid = $safeuserid AND threadid = $postinfo[threadid]
");
} $count = $helpfulvote['count'];
There is no threadid field under helpfulanswer table so we need to run a query to add that field in.

Then we need to have the query update the threadid when a user votes

In helpfulanswers.php

Quote:

// add the vote to the db log
$db->query_write("
INSERT INTO " . TABLE_PREFIX . "helpfulanswer
SET postid = $postinfo[postid], userid = $safeuserid, yesno = '$saferank', dateline = ". TIMENOW ."
");
Quote:

// add the vote to the db log
$db->query_write("
INSERT INTO " . TABLE_PREFIX . "helpfulanswer
SET postid = $postinfo[postid], threadid = $postinfo[threadid], userid = $safeuserid, yesno = '$saferank', dateline = ". TIMENOW ."
");
Now I got it to work :D


All times are GMT. The time now is 09:35 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.07449 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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