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)

vertigo jones 07-20-2007 02:34 AM

Thanks Abe1 for this hack. I installed this the other day and everyone loves it. I changed things up a little bit and made it so when user click the thanks or groan it keeps a running total (+3 or -1, that type of thing) and displays that. The buttons also grey out instead of disappearing.

You can see it at http://www.stirrdup.com if you're logged in if anyone is interested.

I thought I had seen this sort of thing requested somewhere or another. I'll throw it together and upload it somewhere if anyone wants it, though I don't know how tough it would be to edit it to work with a default installation.

Thanks Abe!

chiwexa 07-20-2007 09:03 AM

I've got a question. To express, I made a little animated graphic. :)

Abe1 07-20-2007 11:22 AM

Quote:

Originally Posted by chiwexa (Post 1296363)
I've got a question. To express, I made a little animated graphic. :)

Edit the post_thanks_postbit template. Look at one of the first things in there. I think you have to change a number from 5 to 0.

chiwexa 07-20-2007 02:13 PM

Thank you. Another question:

I don't see a border around the Thanks-Box in the postbit_legacy, but in postbit I do.

post_thanks_postbit:

Code:

<div style="padding:0px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" style="padding:0px">
<if condition="$post['post_thanks_amount'] == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>
</td>
<if condition="$bbuserinfo['usergroupid'] == 6"><td class="alt2" style="padding:0px" align="right" nowrap="nowrap">
<a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</td></if>
<if condition="$post['show_thanks_remove_option']"><td class="alt2" style="padding:0px" align="right" nowrap="nowrap">
<a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</td></if>
</tr>
<tr><td class="alt1" colspan="3"><div>$post[post_thanks_bit]</div></td></tr>
</table>
</div>


post_thanks_postbit_legacy no Border?!


Code:

<div style="padding:0px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="162">
<if condition="$post['post_thanks_amount'] == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>
<if condition="$bbuserinfo['usergroupid'] == 6"><br />
<a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>
<if condition="$post['show_thanks_remove_option']"><br />
<a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</if>
</td>
<td class="alt1">
<div>$post[post_thanks_bit]</div>
</td>
</tr>
</table>
</div>


Merrillizer 07-21-2007 04:47 AM

Tonight I tried to fix this hack, I have 3.6.7 PL1. After I thank someone, I get this at the very top of the page, above the header....

Warning: Illegal offset type in /includes/functions_post_thanks.php on line 110

Warning: Illegal offset type in /includes/functions_post_thanks.php on line 110

Then, when I try to post in the thread that I just thanked someone in, I get this error...

Unable to add cookies, header already sent.
File: /homepages/42/d193140338/htdocs/marshmarauders/forums/includes/class_core.php
Line: 3083

Any help? I would like to use this MOD. However I have disabled it again until I can get some help.

adc-arab 07-21-2007 05:29 AM

i have vb v3.6.7 pl1 after i upgraded the mod from v5 to v6.2 i can't see the thankyou button or the users who thanked the post writer, dunno what the cuz and i done everything exactly as the Instructions says and i upload every file in the right palce -_- any help plz i really need it to work thx alot

edit: also i have the product template hook vb367 fix installed -_-

vcoderzdotcom 07-21-2007 11:51 AM

Quote:

Originally Posted by adc-arab (Post 1297159)
i have vb v3.6.7 pl1 after i upgraded the mod from v5 to v6.2 i can't see the thankyou button or the users who thanked the post writer, dunno what the cuz and i done everything exactly as the Instructions says and i upload every file in the right palce -_- any help plz i really need it to work thx alot

i'm having the same problem here , please help ASAP

Abe1 07-22-2007 01:44 AM

Please read this: http://www.vbulletin.com/forum/showthread.php?t=229448 (post 2)

adc-arab 07-22-2007 09:14 AM

i didn't get what i have to do with this post -__- would u explain more is there some changes i have to do to show the thankyou button and the users who thanked the post writer if so could u explain more
thx alot for ur support

Abe1 07-22-2007 01:06 PM

Quote:

Originally Posted by adc-arab (Post 1298061)
i didn't get what i have to do with this post -__- would u explain more is there some changes i have to do to show the thankyou button and the users who thanked the post writer if so could u explain more
thx alot for ur support

You have to revert the templates that have a $template_hook in it.


All times are GMT. The time now is 07: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.02874 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (3)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