Quote:
Originally Posted by temsamane
i dont want the guests see this mod, so they cant see who's thanks a post (for seo)
how can i do this? with an if condition?
|
Quote:
Originally Posted by temsamane
can you help us please Hippy
there is no kind of permissions to hide this mod for guests. I know its possible with if condition, but i dont know how. i tried a lot of things, but it was still showing for guests.
i will appreciate your support
|
ok ok ..
first so guest can't see the post thanks box under each post
replace your "post_thanks_box" template with this code
Code:
<li class="postbit<vb:if condition="$vboptions['legacypostbit']">legacy</vb:if> postbitim" id="post_thanks_box_{vb:raw post.postid}"<vb:if condition="!$post_thanks_box == 1"> style="display:none"</vb:if>>
<vb:if condition="$bbuserinfo['userid'] != 0">{vb:raw post_thanks_box}</vb:if>
</li>
now, so quests can't see the postbit info under your avatar open up "post_thanks_postbit_info" template
and replace it with this code
Code:
<vb:if condition="$bbuserinfo['userid'] != 0">
<vb:if condition="$post['userid']">
<dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
<vb:if condition="$post['post_thanks_thanked_times'] == 1">
<dd >{vb:rawphrase post_thanks_time_post}</dd>
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<dd>{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
<vb:else />
<dd>{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
</vb:if>
</vb:if>
</vb:if>

let me know if I missed something