PDA

View Full Version : postbit edit for those who have problem showng points in postbit


ehsanix
05-20-2007, 01:50 PM
hi
special thanks to CMX for this usefull hack
in the original template edits for postbit/postbit_legacy we have this code :


$vbphrase[posts]: $post[posts]
<!-- vbPlaza start -->
<if condition="$show['pointsinpostbit']"><br />
$vbphrase[vbbux_points]: $post[points]<br />
$vbphrase[vbbux_bank]: $post[bank]<br />
<phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]<br />
<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
</if>
<!-- vbPlaza end -->


if u have problem for showing the points and bank and total in postbit try to change that code with this (this worked for me) :


$vbphrase[posts]: $post[posts]
<!-- vbPlaza start -->
<if condition="$post[userid]">
<br />
$vbphrase[vbbux_points]: $post[points]
<br />
$vbphrase[vbbux_bank]: $post[bank]
<br />
<phrase 1="$post[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]<br />
<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a>
<br />
</if>
<!-- vbPlaza end -->