Quote:
Originally Posted by Hippy
if you add the contents from post_thanks_button in place of {vb:raw template_hook.postbit_controls}
the button shows up on everyone ..
If you have it set so you can thank yourself it is showing
then if clicked you get the you don't have permission to do this act or what ever it says.
any ideas would be greatly appreciated
|
Ah - I didn't think oif permissiosn etc....
try wrapping the following conditional around it:
<vb:if condition="$display_thanks_image=='none'">
Code:
<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
</vb:if>