I just finished coding a new type postbit for my forums, but it wont come out right for some reason, and I've looked through my code several times and cannot seem to find the problem. Could anyone tell me what is wrong, here is my postbit as well as an image of what is happening.
PHP Code:
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<table class='tborder' id='post$post[postid]' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='100%'>
<tr>
<td $scrolltothis>
<table width='100%' border='0' cellspacing='$stylevar[cellspacing]' cellpadding='$stylevar[cellpadding]' style="border-bottom:1px solid #DDDDDD; background-image:url(http://www.tikigames.com/boards/images/tikigames/postbit.gif);">
<tr>
<td height='84' width='84' align='center' valign='middle' style='background-image:url(http://www.tikigames.com/boards/images/tikigames/avatarbg.gif) one-repeat;'>
<if condition="$show['avatar']"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" height="64" width="64" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" <if condition="$onlinestatus ==1">style="filter:alpha(opacity=50); -moz-opacity: 0.7;"</if> /></a></if>
</td>
<td>
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="smallusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<div>
<span class="smallfont">$vbphrase[posts]: $post[posts]</span>
</div>
$post[arcadeawards]
</td>
<td>
<fieldset><legend>User Info</legend>
<if condition="$post['joindate']"><span class="smallfont">$vbphrase[join_date]: $post[joindate]</span><br /></if>
<if condition="$post['field2']"><span class="smallfont">$vbphrase[location_perm]: $post[field2]</span><br /></if>
<if condition="$post['age']"><span class="smallfont">$vbphrase[age]: $post[age]</span><br /></if>
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]
</fieldset>
</td>
<td>
<fieldset><legend>User Reputation</legend>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if>$post[reputationdisplay]</if>
</fieldset>
</td>
<td>
<div style="float:$stylevar[right];"><if condition="$bbuserinfo['usergroupid'] == 6 OR 7 OR 5"><img src="http://www.tikigames.com/boards/images/ranks/staff.jpg">
<else /><if condition="$bbuserinfo['usergroupid'] == 9"><img src="http://www.tikigames.com/boards/images/ranks/premium.jpg"></if></if>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="thead" style="border-bottom:1px solid #DDDDDD;">
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont" style="float:$stylevar[left];" valign="middle">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<!-- / icon and title -->
</if>
<if condition="$post['replylink']">
<div style="float:$stylevar[right];">
<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</div>
</if>
</td>
</tr>
<tr>
<td class="alt2">
<!-- message -->
<div>$post[message]</div>
<!-- / message -->
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
<if condition="$post['signature']">
<!-- sig -->
<div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" /><br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>
<tr class="thead">
<td>
<div style="float:$stylevar[right];">
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="THIS_SCRIPT=='showthread' and !is_browser('opera') and $post['editlink'] and $bbuserinfo[userid]>0">
$quickedit
</if>
<if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<a href="#top"><img src="http://www.tikigames.com/boards/images/tikigames/up.gif"></a>
<!-- / controls -->
</div>
</td>
</tr>
</table>
</table>
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
Thanks!