Back to vBulletin 3.6 Template Modifications

Post Thanks Deletion Images
Mod Version: 1.00, by glorify

This modification is in the archives.
vB Version: 3.6.7 Rating: (2 votes - 5.00 average) Installs: 4
Released: 18 May 2007 Last Update: Never Downloads: 3
Not Supported  

This is a mod of two templates for Abe1's [AJAX] Post Thank You Hack 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:
Code:
<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:
Code:
<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>

Download

No files for download.

Screenshots

Click image for larger version
Name:	legacy.jpg
Views:	236
Size:	8.7 KB
ID:	64460   Click image for larger version
Name:	postbit.jpg
Views:	210
Size:	9.8 KB
ID:	64461  


vblts.ru supports vBulletin®, 2022-2024