PDA

View Full Version : Alternate Postbit creating problems between FireFox/IE


sickboy6ths
05-09-2006, 12:05 PM
Hi There,

I modded my Postbit template to include a special place for signature, and tried to make a certain hybrid between postbit legacy and normal postbit.
(code included)

I now have 1 problem and I can't seem to figure out what is causing
The Left Column (avatar) is showing perfect on firefox (limited to 104px) but on internet explorer it just randomly makes the left column bigger (see screenshot)

I have been watching like crazy but I don't seem to find it :( I'm no PHP/HTML specialist, I do know just basic stuff, but since the postbit is fine the way I want it.. im kinda out of ideas what the problem is with the left collumn in Internet Explorer...

Any help appreciated!!

(Screenshot: 1st = Internet Explorer, 2nd = FireFox)

Postbit:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" 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 border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<strong>$post[postdate]</strong><if condition="!$show['detailedtime']">, <strong>$post[posttime]</strong></if>
&nbsp; $post[title]
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
</if>
</tr>
</table>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td colspan="2" class="thead" style="font-weight:normal">
<div class="normal" align="$stylevar[right]" style="float:right; vertical-align:middle;">
<if condition="$post['joindate']"><strong>$vbphrase[join_date]:</strong> $post[joindate] &nbsp; </if>
<if condition="$post['field2']"><strong>$vbphrase[location_perm]:</strong> $post[field2] &nbsp; </if><if condition="$post['age']"><strong>$vbphrase[age]:</strong> $post[age] &nbsp; </if><strong>$vbphrase[posts]</strong>: $post[posts] &nbsp;
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp; </if>
$post[iplogged]
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</div>
<div id="postmenu_$post[postid]" align="$stylevar[left]" style="float:left; vertical-align:middle;">
$post[onlinestatus]
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><strong>$post[musername]</strong></a><if condition="$post['usertitle']">&nbsp; [$post[usertitle]]</if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]<if condition="$post['usertitle']"> &nbsp; [$post[usertitle]]</if>
</if>
$post[firstnewinsert]
</div>
</td>
</tr>
<tr valign="top">
<td class="alt2" width="104" rowspan="2">
<if condition="$show['avatar']">
<div class="smallfont" align="center">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<!-- message -->
<div id="post_message_$post[postid]">$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>
<div align="right">
<if condition="$show['postedited']">
<!-- edit note -->
<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>
<!-- / edit note -->
</if>

<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><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="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<!-- / controls -->
</div>
</td>
</tr>
<if condition="$post['signature']">
<tr>
<if condition="$show['moderated']">
<td class="alt1" align="$stylevar[left]">
<else />
<td class="alt2" align="$stylevar[left]">
</if>
<!-- sig -->
<if condition="$post['signature'] AND $bbuserinfo[field16] AND $bbuserinfo[field17]">
<div>
<div align="$stylevar[left]" style="overflow: auto; height: $bbuserinfo[field16]; width: $bbuserinfo[field17]">$post[signature]</div>
</div>
<else />
<if condition="$post['signature'] AND $bbuserinfo[field16]">
<div>
<div align="$stylevar[left]" style="overflow: auto; height: $bbuserinfo[field16]">$post[signature]</div>
</div>
<else />
<if condition="$post['signature'] AND $bbuserinfo[field17]">
<div>
<div align="$stylevar[left]" style="overflow: auto; width: $bbuserinfo[field17]">$post[signature]</div>
</div>
<else />
<if condition="$post['signature']">
<div>
<div align="$stylevar[left]">$post[signature]</div>
</div>
</if>
</if>
</if>
</if>
<!-- / sig -->
</td>
</tr>
</if>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">
$post[username]
&nbsp;
<if condition="$vboptions['vbpager_active'] AND $bbuserinfo['userid']"><a href="#" onclick="window.open('pager.php?do=buddylist&amp;puserid=$post[userid]','pagerbuddylist','statusbar=no,menubar=no,toolba r=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/vbpager_icon.gif" alt="<phrase 1="$post[username]">$vbphrase[pager_send_pager_message_to_x]</phrase>" border="0" /></a> </if>
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
<if condition="$show['last_seen_online']">
<tr><td class="vbmenu_option"><strong>$vbphrase[last_seen_online]:</strong> $post[lastseen_date] $post[lastseen_time]</td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->

<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->

WashUJon
07-16-2007, 06:12 PM
I'm actually having the same problem. Just discovered it today after a few days. I normally use firefox and a member who uses IE complained today.