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)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

Videx 09-18-2012 02:03 PM

Quote:

Originally Posted by vinayagam (Post 2366427)
i get this error when i install it

Don't take this the wrong way please, but you really shouldn't be installing anything but the simplest mods until you understand vb more. And the first rule of any mod install is that first you must read the entire thread to familiarize yourself with it. While that may not be practical, at the very least you should read the last couple pages.

The first thing you should have noticed about this mod is that the author hasn't been around in ages (a BIG warning sign!) and that the first post already answered your earlier question. I don't even know about your second question, I think you're just installing it wrong.
https://vborg.vbsupport.ru/showthread.php?t=201864

Hippy 09-18-2012 09:45 PM

what Videx said ..:up:
get the mod working them customize it



Quote:

Originally Posted by vinayagam (Post 2366426)
Where should i put this ???

that template is for eTiKeT? 2011 Posbit_legacy - Postbit Details
if your using that modification then

your post_thanks_postbit_info is replaced with that code

Quote:

Originally Posted by vinayagam (Post 2366427)
i get this error when i install it

Quote:

Originally Posted by Videx (Post 2366433)
Don't take this the wrong way please, but you really shouldn't be installing anything but the simplest mods until you understand vb more. And the first rule of any mod install is that first you must read the entire thread to familiarize yourself with it. While that may not be practical, at the very least you should read the last couple pages.

The first thing you should have noticed about this mod is that the author hasn't been around in ages (a BIG warning sign!) and that the first post already answered your earlier question. I don't even know about your second question, I think you're just installing it wrong.
https://vborg.vbsupport.ru/showthread.php?t=201864


RedTurtle 09-19-2012 11:23 PM

Hi guys,

I'm having an issue where after a user thanks a certain post and refreshes the page, the Thank you button still persists on that same post even though the thanks has been recorded.

Which file would I have to track this down to?

Could it be because I'm using a CSS class to make the thank you button rather than just a direct img src tag?

Thank you!

Here is my post_thanks_button template:


HTML Code:

<a href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&amp;p={vb:raw post.postid}&amp;securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groans_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button" style="width: 0px; margin: 0px; padding: 0px;" ></a>

<span id="post_thanks_separator_{vb:raw post.postid}" <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> style="border: 0px; padding: 0px; margin: 0px;"></span>


Hippy 09-19-2012 11:50 PM

Most likely its your edit. You should not have to refresh the page. Put it back to default and make sure it works as it should, so you can track the issue down.

RedTurtle 09-20-2012 12:03 AM

Quote:

Originally Posted by Hippy (Post 2366839)
Most likely its your edit. You should not have to refresh the page. Put it back to default and make sure it works as it should, so you can track the issue down.

Thank you Hippy. Would it be the edit in the post_thanks_button template itself? I am a little lost but it looks like maybe the ID of the specific thank you button that needs to be removed is not being added properly?

I have tried putting the default post_thanks_button template back in and the issue still seems to persist. Is there any way I could have you take a look at the site or send you some templates? I would be willing to compensate you for your time.

Thank you for responding.

EDIT: In response to your reply -- I don't have to refresh the page to see the thank you register but when I do refresh the page, the thank you button shows up again on the same post even though it is showing that I already thanked that post.

Hippy 09-20-2012 12:11 AM

Pm me details. I'll take a look

DFORMS 09-21-2012 04:02 PM

Hi guys!

First I would like to thank everyone who is keeping this mod alive. For me this is one of the best mods! I am currently running a phpbb forum http://fragnet.ca but now I want to switch to VB 4.2 http://quebec-gamer.ca (my test/dev board).

I've followed the instructions and successfully installed this mod but I am having a display issue with my custom profile fields :

http://quebec-gamer.ca/images/thank_1.jpg

Secondly I would like to use two different images for the thumbs up icon. The height of the two new images are 18px so it?s being cut off at the top and the bottom :

http://quebec-gamer.ca/images/thank_2.jpg

Any help with this would be greatly appreciated, thank you!

Hippy 09-21-2012 06:40 PM

send me links to the new images your using and I will resize them..
replace your post_thanks_postbit_info
with for the alignment issue
Code:

<vb:if condition="$post['userid']">
    <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
    <vb:if condition="$post['post_thanks_thanked_times'] == 1">
        <dd>{vb:rawphrase post_thanks_time_post}</dd>
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <dd>{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
    <vb:else />
        <dd>{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
    </vb:if>
</vb:if>


DFORMS 09-21-2012 09:22 PM

Thank you Hippy, that did the trick!

I have Photoshop and modifying the images is not a problem. I just hoping to could keep the same height and not reduce the quality.

Nirjonadda 09-22-2012 06:08 PM

1 Attachment(s)
Bug on thread Show block in Username ? How to fix this ?

Attachment 141386


All times are GMT. The time now is 09:10 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.04690 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_html_printable
  • (5)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