PDA

View Full Version : My "Thank You Hack" Postbit Template


Boosted Panda
25 Oct 2008, 22:26
This is a new "Users Saying Thank You" box. I think its MUCH cleaner! You can adjust colors and etc by changing the CSS fields in the .thanks.

First add this to your additional CSS area:


.thanks {
border: solid 1px #fff;
color: #444;
background: #def9e5;
font: 10px arial, tahoma, sans-serif;
}
Next add this to the post_thanks_postbit_legacy or post_thanks_postbit template.


<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<table width="100%" align="center">
<tr>
<td class="thanks" 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>
$post[post_thanks_bit]
<if condition="$bbuserinfo['usergroupid'] == 6">
<td class="thanks" align="center">
<a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a></td>

</if>
<if condition="$post['show_thanks_remove_option']">
<td class="thanks" align="center">
<a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a></td>
</if>
</td></tr>
</table>
</div>

glorify
25 Oct 2008, 22:32
I'd assume you'd need the actual Thank You Hack for this to work.

Boosted Panda
25 Oct 2008, 22:33
But of course! :)

It works for 3.8.X without any modifications.

YsTyle
26 Oct 2008, 20:04
i can't understand how it's work..
no xml file? just open new temp?
does not make any sense to me.
can you explain?

Boosted Panda
26 Oct 2008, 20:06
After you have installed Abe1's "Post Thank You Hack" it will install its own set of templates. Just replace the above templates with the code provided and add the additional CSS to your Theme.

djrapid.com
17 Nov 2008, 09:27
How do i center this text, thanks

nsaivamsi
18 Nov 2008, 13:26
thanks downloaded ...

DiziMedia
26 Nov 2008, 12:01
can you add the groans hack to this as well?

rob01
18 Dec 2008, 03:46
it dosnt seem to work :S

trulylowcarb
18 Jan 2009, 02:43
Thanks, but I think you meant REPLACE the text in the postbit, not add to it? Other than getting the original bulky box plus your cleaner one, until I removed the old code, it works perfectly for me on 3.8.

cooltechie
29 Jan 2009, 20:10
It looks cleaner, but what happens when you have many members giving thanks. Does it wrap to the next line?

legion!
08 Mar 2009, 13:08
Installed

TimberFloorAu
09 Mar 2009, 01:34
havent you nested 2 td classes but only one closing </td>

Is this correct ??

zero5854
08 Apr 2009, 16:59
I have a custom template and can only see the thanks x times in normal postbit but not in postbit_legacy?

does anyone what code to add in postbit_legacy to see how many thanks a user has/given?

Cloud_Strife
10 Jul 2009, 13:34
Great Job. Works perfectly with AJAX Post Thank You Hack 7.7. I just wanted the vertical view of Postibit in Threads-Posts and not in the Hack too... This solved my problems... I was really worrying! Well Done... Go On with good codes (I kept the same colors as they were inspired by future... I change the small font of 10 px to it's original, based on my forum fonts).

steve1966
10 Jul 2009, 16:57
cheers

Cmangum
12 Dec 2009, 03:35
Thanks just what I was looking for

Cmangum
12 Dec 2009, 04:37
I can't get the button to show up. I've entered the codes and used the 7.7 hack as well. The only place I see to put the button is in the button folder. Am I missing something

Cmangum
13 Dec 2009, 04:36
Here is the error I get when I click on the thanks button

<html><head><title>404 Not Found</title></head>
<body bgcolor=white>
<h1>404 Not Found</h1>

The requested URL /post_thanks.php does not exist.

</body></html>

Any help for anyone one this one

RobbieZ
13 Dec 2009, 07:41
I can't get the button to show up. I've entered the codes and used the 7.7 hack as well. The only place I see to put the button is in the button folder. Am I missing something

When the letters 'thanks' appear in your post, right click and view image, the browser will show an error but will show you the filepath to where the image should be uploaded too.

ie http://yourforum/images/buttons/thanks.gif

Here is the error I get when I click on the thanks button

<html><head><title>404 Not Found</title></head>
<body bgcolor=white>
<h1>404 Not Found</h1>

The requested URL /post_thanks.php does not exist.

</body></html>

Any help for anyone one this one

You need to overwrite the new template not ADD to it.

Thanks Boosted , looks a treat.

------------------------

Boosted may be busy for xmas :confused: Last online Nov :(

Cmangum
13 Dec 2009, 15:12
I did replace in the postbit legacy and still get the same error. The button is there and in the correct location.

RobbieZ
16 Dec 2009, 16:33
You need to PM me your forum URL and i can look at it for you.

ghostpt
18 Dec 2009, 11:54
Just replace post_thanks_postbit don't add anything.

m_k
18 Dec 2009, 16:23
It looks cleaner, but what happens when you have many members giving thanks. Does it wrap to the next line?

Just installed this, great idea :-)

yes, it does wrap if you have lots of thanks...

Thelonius Beck
30 Dec 2009, 12:27
can you add the groans hack to this as well?

Add to "Additional CSS Definitions":

.groan {
border: solid 1px #ffffff;
color: #444444;
background: #def9e5;
font: 10px arial, tahoma, sans-serif;
}
Replace "post_groan_postbit_legacy"/ "post_groan_postbit" contents with:

<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<table width="100%" align="center">
<tr>
<td class="groan" style="padding:0px">
<if condition="$post['post_groan_amount'] == 1">
<strong><phrase 1="$post[username]">$vbphrase[post_groan_user_says]</phrase></strong>
<else />
<strong><phrase 1="$post[post_groan_amount_formatted]" 2="$post[username]">$vbphrase[post_groan_users_say]</phrase></strong>
</if>
$post[post_groan_bit]
<if condition="$bbuserinfo['usergroupid'] == 6">
<td class="groan" align="center">
<a href="post_groan.php?do=post_groan_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_groan_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_groan_remove_all]</a>
</td>
</if>
<if condition="$post['show_groan_remove_option']">
<td class="groan" align="center">
<a href="post_groan.php?do=post_groan_remove_user&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_groan_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_groan_remove_user]</a>
</td>
</if>
</td>
</tr>
</table>
</div>
Hope that helps someone. ;)


***EDIT***
D'OH! I just realized that searching & replacing "thanks" with "groan" in my HTML editor would have yielded the same results. Ahh well.

kmoh
05 Feb 2010, 18:36
What will I do to show my Thanks and Thanked count in my postbit? I already installed a Thank You Hack in my forum, but its not showing on my postbit. Can someone help me. I really need it so bad. Thanks

http://img683.imageshack.us/img683/5572/14500991.jpg

RobbieZ
14 Jul 2010, 05:48
Edited and working on vb4. (Remove all/your thanks on one line whilst rest on another). Will share if ok'd by Boosted Panda.

www.ch-joy.com
15 Jul 2010, 00:28
Thank you
https://www.vbulletin.org/forum/external/2010/07/2.gif

asabet
25 Jan 2015, 22:22
This is working great for me on vB 4.2.2 PL4

Thanks!