PDA

View Full Version : Add-On Releases - Post Thanks Deletion Images


glorify
05-16-2007, 10:00 PM
This is a mod of two templates for Abe1's [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=122944) Version 6.0, 6.1, and 6.2

Very simple. Instead of the default text links for removal of Thanks given, it adds buttons. I made 2 generic buttons, but feel free to make your own to fit your board's style.

Makes the template a lot cleaner looking. Instructions for postbit and legacy are given.

Click install if ya use :)

Upload both images to your images/buttons folder. Then---

For Legacy, replace entire template with:
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175">
<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>
<br />
<if condition="$bbuserinfo['usergroupid'] == 6">
<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"><img class="inlineimg" src="$stylevar[imgdir_button]/del_thanks_all.gif" alt="$vbphrase[post_thanks_remove]" border="0" /></a>
</if>
<if condition="$post['show_thanks_remove_option']">
<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"><img class="inlineimg" src="$stylevar[imgdir_button]/del_thanks.gif" alt="$vbphrase[post_thanks_remove_user]" border="0" /></a>
</if>
</td>
<td class="alt1"><div>$post[post_thanks_bit]</div></td>
</tr>
</table>
</div>

For postbit, replace entire template with:
<div style="padding:$stylevar[cellpadding]px 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="center" 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"><img class="inlineimg" src="$stylevar[imgdir_button]/del_thanks_all.gif" alt="$vbphrase[post_thanks_remove]" border="0" /></a>
</td></if>
<if condition="$post['show_thanks_remove_option']"><td class="alt2" style="padding:0px" align="center" 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"><img class="inlineimg" src="$stylevar[imgdir_button]/del_thanks.gif" alt="$vbphrase[post_thanks_remove_user]" border="0" /></a>
</td>
</td></if>
</tr>
<tr><td class="alt1" colspan="3"><div>$post[post_thanks_bit]</div></td></tr>
</table>
</div>

glorify
05-17-2007, 10:07 PM
Here is what my postbit looks like in my style with custom buttons ;)

rjmjr69
05-17-2007, 10:09 PM
Nice

glorify
05-17-2007, 10:12 PM
Thank you. :)

Enjoy.

rjmjr69
05-17-2007, 10:15 PM
Have a small issues. I get one button the ALL click that and it just resets the screen nothing changes

glorify
05-17-2007, 10:17 PM
It does not remove anything?

rjmjr69
05-17-2007, 10:24 PM
After redoing the template again. I can get the ALL to appear "your image" but clicking it just refresh's the screen and nothing happens. The remove MY THANKS is still in text and works fine but no button appears.

glorify
05-17-2007, 10:26 PM
which template?

rjmjr69
05-17-2007, 10:29 PM
Legacy

glorify
05-17-2007, 10:34 PM
I reverted mine and completed the edits again--no probs. PM me yer template ;)

rjmjr69
05-17-2007, 10:41 PM
Yeah I reverted 4 times still same results. I just pm'ed the template.

rjmjr69
05-17-2007, 10:53 PM
Works now thank you. Did i do something wrong with the edits? Is there a way to get the bottons to be next too eachother instead of stacked on one another?

glorify
05-17-2007, 11:10 PM
PM Sent.

There was a slight change in the templates since 3.6.4. Works now with 6.0 and 6.1 :) First post edited.

glorify
05-28-2007, 01:48 PM
This works with 6.2 as well, first post edited :)