Quote:
Originally Posted by reddyink
Actually, pretty simple to modify this article for 4.x.x as there are just couple of phrase differences and plugin differences.
|
I have modified a little bit Joe's proposal to work with vb4
Change post_thanks_box template to:
PHP Code:
<div <vb:if condition="!$post_thanks_box == 1"> style="background-color: #f2f6f8; border: 1px ridge #417394; border-width: 1px 1px 1px 1px; padding: 2px; width:92%; margin:
0px auto 0px auto; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; margin-top:10px; margin-bottom:0px;display:none" <vb:else />
style="background-color: #f2f6f8; border: 1px ridge #417394; border-width: 1px 1px 1px 1px; padding: 2px; width:92%; margin: 0px auto 0px auto; -webkit-border-radius: 5px; -
moz-border-radius: 5px; border-radius: 5px; margin-top:10px; margin-bottom:0px;"
</vb:if> id="post_thanks_box_{vb:raw post.postid}">
{vb:raw post_thanks_box}
</div>
In posbit_legacy template find:
PHP Code:
<vb:if condition="$show['postedited'] || $post['signature']">
and add before:
PHP Code:
{vb:raw template_hook.postbit_messagearea_end}
In Admin CP -> Plugin Manager, edit the plugin: Post Thank You Hack on hook: postbit_display_complete
Find:
PHP Code:
$template_hook['postbit_end'] .= $templater->render();
and replace with:
PHP Code:
$template_hook['postbit_messagearea_end'] .= $templater->render();
You can also modify window's content:
In post_thanks_postbit template replace:
PHP Code:
<h2 class="<vb:if condition="!$vboptions['legacypostbit']">post</vb:if>title">
<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>
</h2>
<div class="content">
<div id="post_thanks_bit_{vb:raw post.postid}">
<blockquote class="postcontent restore">
{vb:raw post.post_thanks_bit}
</blockquote>
</div>
</div>
with:
PHP Code:
<div class="content">
<div id="post_thanks_bit_{vb:raw post.postid}">
<blockquote class="postcontent restore">
<strong><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>
</strong>{vb:raw post.post_thanks_bit}
</blockquote>
</div>
</div>
BR