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)

TimberFloorAu 02-01-2010 10:54 PM

Could this be "hacked" so that we can display a KUDOS image.

Similar to: http://discussions.nokia.com.au/disc...ssage.id=43559

I am happy to fiddle with the code for personal use if you allow, Thanks Ted

cloferba 02-01-2010 11:43 PM

Quote:

Originally Posted by Ted S (Post 1972606)
This mod does not offer that at this time.


that would be great

i want to improve a system to give awards to people whose posts are top well rated

Ted S 02-02-2010 12:25 AM

Quote:

Originally Posted by TimberFloorAu (Post 1972634)
Could this be "hacked" so that we can display a KUDOS image.

Similar to: http://discussions.nokia.com.au/disc...ssage.id=43559

I am happy to fiddle with the code for personal use if you allow, Thanks Ted

I'm not a user of that site so all I see is the image. Can you explain how the function works?

TimberFloorAu 02-02-2010 06:45 AM

1 Attachment(s)
Brilliant Ted. This has come on leaps and bounds since the first 3.x version we installed.

Excellent work

I have one issue at mo:

See Image. The results page is breaking style in usercp.

< will do some other hover images etc when I have time, to say thanks. :up:

struff 02-02-2010 02:15 PM

I just installed the current version but I am still having the same problem that I've been having where the Helpful line duplicates itself based on the message number in the thread (as other have reported a few pages ago).

Ted S 02-02-2010 03:15 PM

Quote:

Originally Posted by struff (Post 1973078)
I just installed the current version but I am still having the same problem that I've been having where the Helpful line duplicates itself based on the message number in the thread (as other have reported a few pages ago).

Can you please explain more? Please also provide your settings (if you have changed any options).

Ted S 02-02-2010 03:16 PM

Quote:

Originally Posted by TimberFloorAu (Post 1972832)
Brilliant Ted. This has come on leaps and bounds since the first 3.x version we installed.

Excellent work

I have one issue at mo:

See Image. The results page is breaking style in usercp.

< will do some other hover images etc when I have time, to say thanks. :up:

I'll take a look at this asap.

cloferba 02-03-2010 01:12 AM

on product page...on admincp, links of the products is this

https://vborg.vbsupport.ru/showthread.php?p=233296

instead of being this post...

fix it :)

pd: i ask again...and give an up to this
https://vborg.vbsupport.ru/showpost....&postcount=160 to to improve a system to give awards to people whose posts are top well rated

also..i cant see voting stats on user profile
https://vborg.vbsupport.ru/showpost....&postcount=156

Ted S 02-03-2010 02:15 AM

Quote:

Originally Posted by cloferba (Post 1973564)
pd: i ask again...and give an up to this
https://vborg.vbsupport.ru/showpost....&postcount=160 to to improve a system to give awards to people whose posts are top well rated


This modification is not intended to give awards. I would suggest you go to the mod forum and request something new there.

Ted S 02-03-2010 02:16 AM

Quote:

Originally Posted by cloferba (Post 1973564)
also..i cant see voting stats on user profile
https://vborg.vbsupport.ru/showpost....&postcount=156

There is no need to repost your issue, I will respond as soon as I have additional information and time to do so. Reposting simply makes responses take longer.

cloferba 02-03-2010 12:12 PM

Quote:

Originally Posted by Ted S (Post 1973592)
There is no need to repost your issue, I will respond as soon as I have additional information and time to do so. Reposting simply makes responses take longer.

for me not recieve a reply could be you didnt saw my post.
thanks

Verionia 02-03-2010 01:17 PM

Hi can this mod allow posters to leave their own reviews with each post? In the corner of the post would be the star rating which they left.

Ted S 02-03-2010 05:36 PM

Quote:

Originally Posted by Verionia (Post 1973936)
Hi can this mod allow posters to leave their own reviews with each post? In the corner of the post would be the star rating which they left.

This mod already lets them leave their own raiting of each post...

Alien 02-03-2010 11:38 PM

I may have missed the answer, but I was curious if this was fully phrased. So I could use this on a site with a primary focus on making people laugh. Can we have this show "Funny Answers"? "Did you find this post funny?" etc.? Will that be easy enough?

Ted S 02-04-2010 12:40 AM

Yes it is.

Alien 02-04-2010 01:21 AM

Excellent, thanks so much for the rapid response Ted!

ShadowStalker 02-04-2010 02:06 AM

While I love this add-on, some of my users have complained that they accidentally clicked helpful when it wasn't and they couldn't undo what they clicked

Verionia 02-04-2010 02:20 AM

Quote:

Originally Posted by Ted S (Post 1974084)
This mod already lets them leave their own raiting of each post...

With stars on top of each post to show what each user rated it?

Ted S 02-04-2010 02:43 AM

Quote:

Originally Posted by Verionia (Post 1974368)
With stars on top of each post to show what each user rated it?

Each user? No. The user who is viewing it, yes. Just enabe the 10 point voting scale and add your star images for values 1-5.

TimberFloorAu 02-05-2010 07:33 AM

Just checking error logs, we are getting hundreds of error messages:

Such as:
Code:

Database error in vBulletin 4.0.1:

Invalid SQL:

              SELECT post.postid,post.title as posttile,helpfulpost.goodrank,helpfulpost.totalrank,helpfulpost.lastvote,
                      thread.threadid,thread.title as title,thread.postusername as postusername,forum.title as ftitle ,goodrank as avgrank

              FROM yobromofhelpfulpost as helpfulpost
              INNER JOIN yobromofpost AS post ON(helpfulpost.postid = post.postid)
              INNER JOIN yobromofthread AS thread ON(post.threadid = thread.threadid)
              INNER JOIN yobromofforum AS forum ON(thread.forumid = forum.forumid)
              WHERE goodrank > 0


              ORDER BY avgrank desc
              LIMIT 0, 25;

MySQL Error  : Column 'goodrank' in field list is ambiguous
Error Number  : 1052
Request Date  : Friday, February 5th 2010 @ 10:04:32 AM
Error Date    : Friday, February 5th 2010 @ 10:04:32 AM
Script        : http://www.yobromofo.com/forum/helpfulanswers.php
Referrer      :
IP Address    : 67.195.112.247
Username      : Unregistered
Classname    : vB_Database
MySQL Version :


Verionia 02-05-2010 01:40 PM

Quote:

Originally Posted by Ted S (Post 1974384)
Each user? No. The user who is viewing it, yes. Just enabe the 10 point voting scale and add your star images for values 1-5.

Sorry I am running a product review forum. Don't know if you could add some add ons like - only the user who made the post can rate the product with a post once from a scale of 1-5. An option for only the owner of the post to rate with stars. Thx!

Ted S 02-05-2010 03:49 PM

Quote:

Originally Posted by TimberFloorAu (Post 1975231)
Just checking error logs, we are getting hundreds of error messages:

Such as:
Code:

Database error in vBulletin 4.0.1:
 
Invalid SQL:
 
              SELECT post.postid,post.title as posttile,helpfulpost.goodrank,helpfulpost.totalrank,helpfulpost.lastvote,
                      thread.threadid,thread.title as title,thread.postusername as postusername,forum.title as ftitle ,goodrank as avgrank
 
              FROM yobromofhelpfulpost as helpfulpost
              INNER JOIN yobromofpost AS post ON(helpfulpost.postid = post.postid)
              INNER JOIN yobromofthread AS thread ON(post.threadid = thread.threadid)
              INNER JOIN yobromofforum AS forum ON(thread.forumid = forum.forumid)
              WHERE goodrank > 0
 
 
              ORDER BY avgrank desc
              LIMIT 0, 25;
 
MySQL Error  : Column 'goodrank' in field list is ambiguous
Error Number  : 1052
Request Date  : Friday, February 5th 2010 @ 10:04:32 AM
Error Date    : Friday, February 5th 2010 @ 10:04:32 AM
Script        : http://www.yobromofo.com/forum/helpfulanswers.php
Referrer      :
IP Address    : 67.195.112.247
Username      : Unregistered
Classname    : vB_Database
MySQL Version :


Disable this page, I will have this bug resolved this weekend.

Ted S 02-05-2010 03:50 PM

Quote:

Originally Posted by Verionia (Post 1975412)
Sorry I am running a product review forum. Don't know if you could add some add ons like - only the user who made the post can rate the product with a post once from a scale of 1-5. An option for only the owner of the post to rate with stars. Thx!

Sounds like you need a different modification or to extend this for your specific use...

TimberFloorAu 02-05-2010 05:52 PM

Cheers Ted

Ted S 02-06-2010 12:54 AM

Version 2.1.6 has been released which fixes an SQL query error for some users when viewing the most helpful answers page.

TimberFloorAu 02-06-2010 01:11 AM

Cheers TED will try now :yes: and report back

*installed.

All good at the Mo fingers crossed. No errors to report yet :)

Ted S 02-06-2010 02:49 AM

Quote:

Originally Posted by TimberFloorAu (Post 1975749)
Cheers TED will try now :yes: and report back

*installed.

All good at the Mo fingers crossed. No errors to report yet :)

No faith ;)

vivamexico55 02-06-2010 10:35 PM

I'm glad this modification is supported, I'm eagerly awaiting vbulletin 4.02 to install it and test it, keep up the good work =)


Quote:

Originally Posted by tafreeh (Post 1957884)
good hack...

Suggestion:
add a stats in each user info(where username, post counts shows) in post bit or postbil legacy.. and i will replace this with other Thank you hack :)

Cheers

This might be interesting, yes.

TimberFloorAu 02-06-2010 10:56 PM

1 Attachment(s)
Quote:

Originally Posted by Ted S (Post 1975796)
No faith ;)

Mate when a coder, like yourself sorts stuff out, faith plays a big part in our trust.

Yet again , great fix. No issues at all. Love it.

Now question for you please.

Is it at all possible to embed a background Image, and sit the Yes/no images on top ?

Similar to this ... ( Just made this graphic so apologies for quality )

TimberFloorAu 02-06-2010 11:02 PM

Also daft question.

Is there a reverse system.

For example.

Thread starter posts really useful stuff. So the Helpful answer system appears just on the very first post, and then viewers can click helpful yes or no, but the graphic does not appear on subsequent replies.

Ste

Ranger187 02-07-2010 02:03 AM

Ted, just wanna thank you again for your support. You helped fix that issue with it not showing when rep was given..It was blank......

I thanked ya then...but just thanking again. It's good to see a coder active ;)

TimberFloorAu 02-07-2010 03:05 AM

Just noted when we look at source code.

Output code for helpful answers displays.

Code:

<div id="helpfulanswers_box_173107" style="text-align:right;"> <br /><hr size="1" style="color:$stylevar[tborder_bgcolor]" /> <strong>Did you find this post helpful?</strong> <a href="http://www.yobromofo.com/forum/./helpfulanswers.php?do=rate&amp;postid=173107&amp;rank=1"  onclick="return helpfulanswers_rate(173107, 1);"  rel="nofollow"><img src="http://www.yobromofo.com/forum/images/buttons/ha_plus.png" width="18" height="18" border="0" alt="Yes" /></a> |
                                                <a href="http://www.yobromofo.com/forum/./helpfulanswers.php?do=rate&amp;postid=173107&amp;rank=0"  onclick="return helpfulanswers_rate(173107, 0);"  rel="nofollow"><img src="http://www.yobromofo.com/forum/images/buttons/ha_minus.png" width="18" height="18" border="0" alt="No" /></a> </div>

The part of concern is the /./
This appears in the product file ./helpfulanswers.php

So Is it okay to remove the . from the code associated within the xml file. In a few places.

Cheers Ste

Still working on adding BG img to the helpfulanswers_box div.

TimberFloorAu 02-07-2010 05:40 AM

1 Attachment(s)
Well took a while fiddling, but managed to tweak it.

I hope Ted doesnt mind, I have amended the product with new hover thumb images. Background image and css styling.

If he agrees I will share the code - I am in no way in Teds league ( so please NOTE you if he agrees use at own risk ), BUT please please note this is my bastardized version, and I cannot guarantee it will work for you. However, if you use the hover thumb method, then my rejigged product file ( if you want it to look like ours ) should work.

The backgroudn image is a png 200px by 200px Could be replaced with anything really.

Anyhoo.. heres our version.

Verionia 02-07-2010 01:21 PM

Quote:

Originally Posted by Ted S (Post 1975471)
Sounds like you need a different modification or to extend this for your specific use...

anyway you can help me create this? :)

Ted S 02-07-2010 10:22 PM

Quote:

Originally Posted by TimberFloorAu (Post 1976327)
Similar to this ... ( Just made this graphic so apologies for quality )

Sure. The voting block is all done with a template and a few conditionals. You could make an image map, build something with a little table, whatever you like.

Ted S 02-07-2010 10:22 PM

Quote:

Originally Posted by TimberFloorAu (Post 1976450)
Well took a while fiddling, but managed to tweak it.

I hope Ted doesnt mind, I have amended the product with new hover thumb images. Background image and css styling.

If he agrees I will share the code - I am in no way in Teds league ( so please NOTE you if he agrees use at own risk ), BUT please please note this is my bastardized version, and I cannot guarantee it will work for you. However, if you use the hover thumb method, then my rejigged product file ( if you want it to look like ours ) should work.

The backgroudn image is a png 200px by 200px Could be replaced with anything really.

Anyhoo.. heres our version.

Looks like I should have read this post first.

You're free to share with anyone who likes, or if you prefer, I can post the code to the addon as a user contribution.

Ted S 02-07-2010 10:23 PM

Quote:

Originally Posted by Ranger187 (Post 1976395)
Ted, just wanna thank you again for your support. You helped fix that issue with it not showing when rep was given..It was blank......

I thanked ya then...but just thanking again. It's good to see a coder active ;)

Thanks!

Ted S 02-07-2010 10:24 PM

Quote:

Originally Posted by TimberFloorAu (Post 1976331)
Also daft question.

Is there a reverse system.

For example.

Thread starter posts really useful stuff. So the Helpful answer system appears just on the very first post, and then viewers can click helpful yes or no, but the graphic does not appear on subsequent replies.

Ste

You can just enable the hide on first post option and inverse the logic of the code (change != to ==).

TimberFloorAu 02-07-2010 10:56 PM

1 Attachment(s)
Quote:

Originally Posted by Ted S (Post 1976985)
Looks like I should have read this post first.

You're free to share with anyone who likes, or if you prefer, I can post the code to the addon as a user contribution.

It does have a couple of limitations.

The <strong> message 1 out of 1 expats found this post helpful. etc isnt aligned correctly.

Also it displays behind Quoted text. Isnt ideal lol.

Apart from that works fine.

Will post product here ( dont forget this is heavily bastardized and ONLY functions for thumbs hover version )

Also will post png images and psd.

Feel free to look at the code Ted, and do with as you wish. To prevent any issues, I will once you have replied. Edit this post and remove the attachments.

Regards Ste


added: some additional backgrounds. Just rename the one you want to answer_bg

Bouncer222 02-07-2010 11:17 PM

Is there a way to set this for only one forum? Like we have a specific forum category for Tech Help only, so I would want to use this only for that forum, if its possible, how can I do this?


All times are GMT. The time now is 11:24 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.04391 seconds
  • Memory Usage 1,849KB
  • 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
  • (3)bbcode_code_printable
  • (22)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
  • (40)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