vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=122944)

Abe1 01-10-2007 11:39 PM

Quote:

Originally Posted by adhari_com (Post 1154683)
Hi,

Why am I getting this JS error rarely happening from time to time, not ALL the time, once the error, the Thank button is hidden but no thanks has been posted, as shown:

Did you edit the post_thanks templates at all? Can you give me a better idea of how you get this error?

Cybershaolin 01-11-2007 12:31 AM

Quote:

Originally Posted by Abe1 (Post 1155878)
I dont support other hacks. You have to find someone else to do it.

This is just too bad although I find it kind of normal that you don't.

The database hack is a great mod and many forums use it, even here! Using that hack, the fact that somebody posts a file on the first post is usually the one which we would thanks for the file but it does not appear. But now the Thnaks button does not appear with it. Anyhow, I'll try to ask in another thread.

Thanks for having taken the time to answer my question. :) And thanks again for your great mod.

andreamarucci 01-11-2007 05:58 AM

Quote:

Originally Posted by Abe1 (Post 1155876)
You can edit the phrases and img. how you'd like.

Thank you very much. And if I would like to install two copy of your hack to have a "welcome aboard" and a "happy birthday hack" what I've to modify?

Thanks

jarosciak 01-11-2007 02:02 PM

Hi Everyone,

I have both THANKS and GROAN hacks install, but it's taking too much space on the right side.

Can someone quickly point me to a code change I have to do to go from this look:
https://vborg.vbsupport.ru/external/2007/01/17.jpg

to this one:
https://vborg.vbsupport.ru/external/2007/01/18.jpg

The second one looks so much more compact and I can't find the code anywhere.
I am sure it has been posted already, I just can't find it :)
Please help me out.

Joe

Abe1 01-11-2007 06:57 PM

Quote:

Originally Posted by jarosciak (Post 1156258)
Hi Everyone,

I have both THANKS and GROAN hacks install, but it's taking too much space on the right side.

Can someone quickly point me to a code change I have to do to go from this look:
https://vborg.vbsupport.ru/external/2007/01/17.jpg

to this one:
https://vborg.vbsupport.ru/external/2007/01/18.jpg

The second one looks so much more compact and I can't find the code anywhere.
I am sure it has been posted already, I just can't find it :)
Please help me out.

Joe

It is in the templates. One of the template edits you ade for the hack.

Abe1 01-11-2007 06:58 PM

Quote:

Originally Posted by andreamarucci (Post 1156033)
Thank you very much. And if I would like to install two copy of your hack to have a "welcome aboard" and a "happy birthday hack" what I've to modify?

Thanks

Not sure if you can do that easily. The tempalates have to be renames and the hackid has to be renamed also.

jarosciak 01-11-2007 07:01 PM

Any idea how to change it? I am sure I am not alone here, who would want this amendment done.
Any help?

jarosciak 01-11-2007 09:23 PM

Ok, thanks anyways, looks like I am on my own. Once I changed it, I will post the code here. Thanks for your help.

jarosciak 01-12-2007 03:07 AM

Ok, this is not the best way to do it, as I manually typed in wording, but it works fine.

I added this to postbit and postbit_legacy, replacing original values:

PHP Code:

<!-- Start Post Thank You Hack -->
<if 
condition="$post[userid]">
<
br />
Thanks Given$post[post_thanks_user_amount], Groans Given$post[post_groan_user_amount]
<
br />
<if 
condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if 
condition="$post[post_thanks_thanked_posts_on] == 1">
<
phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<
phrase 1="$post[post_thanks_thanked_times]2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- 
End Post Thank You Hack -->

<
br />

<!-- 
Start Post Groan Hack -->
<if 
condition="$post[post_groan_times_on] == 1">
$vbphrase[post_groan_time_post]
<else />
<if 
condition="$post[post_groan_posts_on] == 1">
<
phrase 1="$post[post_groan_times]">$vbphrase[post_groan_times_post]</phrase>
<else />
<
phrase 1="$post[post_groan_times]2="$post[post_groan_posts]">$vbphrase[post_groan_times_posts]</phrase>
</if>
</if>
</if>
<!-- 
End Post Groan Hack --> 

Now it shows like this:

Thanks Given: 0, Groans Given: 0
Thanked 0 Times in 0 Posts
Groaned at 0 Times in 0 Posts

ariellio 01-12-2007 09:18 PM

This is the best hack! I am so glad it works with AJAX! Thank you!!!


All times are GMT. The time now is 08: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.03310 seconds
  • Memory Usage 1,763KB
  • 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_php_printable
  • (5)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