Quote:
Originally Posted by dartho
This probably needs a bit of tweaking, but here goes:
edit post_thanks_box template in the lightweight style and replace contents with:
Code:
<div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div>
edit post_thanks_button template in lightweight style and replace contents with:
Code:
<a id="btn" href="post_thanks.php?$session[sessionurl]do=post_thanks_add&p=$post[postid]&securitytoken=$bbuserinfo[securitytoken]" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_thanks_image == 'none'">style="display:none"</if> rel="nofollow">Thanks</a>
edit post_thanks_postbit template in the lightweight style and replace contents with:
Code:
<if condition="$post['post_thanks_amount'] == 1">
<phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase>
<else />
<phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if>
$post[post_thanks_bit]
edit postbit and postbit_legacy templates in lightweight style , search for
Code:
<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>
and replace with
Code:
<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
$template_hook[postbit_controls]
</div>
</if>
$template_hook[postbit_end]
I think that should just about do it - assuming it is this hack: https://vborg.vbsupport.ru/showthread.php?t=165673 that you have installed
caveat: this may introduce other hacks into the lightweight style which use the postbit_end and postbit_control hooks
|
the code posted is old
anyway updated to vb4
would be I guess (below)
but still don't work
post_thanks_box
Code:
<div class="windowbg" id="post_thanks_box_{vb:raw post.postid}">
{vb:raw post_thanks_box}
</div>
post_thanks_button
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_groans_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>
post_thanks_postbit
Code:
<vb:if condition="$post['post_thanks_amount'] == 1">
{vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
{vb:raw post.post_thanks_bit}
postbit and
postbit_legacy templates in lightweight style I don't have
Code:
<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>
and the hooks would be
Code:
{vb:raw template_hook.postbit_controls}
{vb:raw template_hook.postbit_end}
but the hooks are not working from what I can tell.. or something else..