PDA

View Full Version : Hide quote button on last post


rady
03-11-2011, 08:12 AM
Hi everyone. Is there anyway the quote button on the last post to be make invisible? I never liked the way users are quoting the last message on a topic when it's obvious their replying to it.

BirdOPrey5
03-13-2011, 08:53 PM
Edit your postbit_legacy (or postbit) template...

find:

<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>

and replace with:

<if condition="$post['replylink'] AND !$post[islastshown]">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>


Basically add the AND !$post[islastshown] to the conditional, this will stop the quote button from displaying on the last post.