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)

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:56 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.01493 seconds
  • Memory Usage 1,751KB
  • 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
  • (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