PDA

View Full Version : Postbit issue, can someone help please ?


509pro
01-31-2008, 06:43 AM
I have a small issue... Please see image....

I have not mod anything, just changed the postbit to go on the left and this is what happen...

I can post my code if needed


Thank you

http://www.509productions.com/issue003.jpg

Dismounted
01-31-2008, 07:46 AM
Please post your postbit_legacy template.

509pro
01-31-2008, 07:54 AM
$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" 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; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $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>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[right]">
&nbsp;
<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]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" 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>
$template_hook[postbit_userinfo_left]

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<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>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</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>

$template_hook[postbit_signature_start]

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

$template_hook[postbit_signature_end]

<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>

</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</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></if>
$post[iplogged]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<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['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></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>
<if condition="$show['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]

<!-- 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]</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&amp;u=$post[userid]" rel="nofollow"><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&amp;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&amp;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&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</table>
</div>
<!-- / post $post[postid] popup menu -->

Reecey
01-31-2008, 10:26 PM
o my gosh ive just sorted one of these problems lol right ill say the same as i said to the other person make me an accoutn on the forum and make me admin but with only the permissions of styles and templates and also vbulletin options and PM all the login info and also your forum address and i will do it asap for ya :D

509pro
02-01-2008, 06:44 AM
I would like to learn how to do this... and with making you an acount and letting u do it, its not learning...

Anyone help me please ???

Boofo
02-01-2008, 07:05 AM
Why not save a copy of the template and revert the orginal and then copy over whatver mods you had in the template before you reverted it? Best way to learn there is. ;)

509pro
02-01-2008, 07:12 AM
I have tryed this, with no luck...

Is it really that hard of a problem ?

Reecey
02-01-2008, 07:17 AM
well im sorry but i cba to write out how to do it it will take me 2 secs to do it

Marco van Herwaarden
02-01-2008, 07:23 AM
o my gosh ive just sorted one of these problems lol right ill say the same as i said to the other person make me an accoutn on the forum and make me admin but with only the permissions of styles and templates and also vbulletin options and PM all the login info and also your forum address and i will do it asap for ya :D
Please try to help members on the forums, instead of requesting access to their AdminCP.

We strongly advise our members not to give out any access details to someone they do not know.

Reecey
02-01-2008, 07:47 AM
o and let me guess you think im gonna try and hack it ? well news to you mate ive already helped soemone with this issues and i don't reallyy wana type out how to do it. its 09:47 in the monring

509pro
02-01-2008, 07:49 AM
but you have replyed to this thread 3 times over the last 40 min... If it only takes 2 mins to do, then how much typing would u have to do to let me know whats wrong >? and how to fix it ?

Reecey
02-01-2008, 07:54 AM
sorted close thread :D

509pro
02-01-2008, 08:00 AM
This is NOT sorted... I am still looking for help on this...

Anyone Please ?

Marco van Herwaarden
02-01-2008, 08:10 AM
I am not a template (HTML) developer at all, so i might be wrong, but it seems you set a fixed width in your template.

In the template you have posted in post #3, you have the following line:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
I think the width="175" is what gives you this problem.

PS Your template does not look like a default template at all. Which vBulletin version are you using?

509pro
02-01-2008, 08:15 AM
3-6-8 With a skin...

I tryed changing that code "width="175" and all it did was make the whole lot smaller, not just the postbit section :(

Reecey
02-01-2008, 08:25 AM
i did say it but i edited it i will leave it up for only like 5 mins

go to admin cp

then vbulletin options

then styles and lanuguages

find Use Legacy (Vertical) Postbit Template and choose yes

(thinks to my self pfft n00b's)

Marco van Herwaarden
02-01-2008, 08:31 AM
i did say it but i edited it i will leave it up for only like 5 mins

go to admin cp

then vbulletin options

then styles and lanuguages

find Use Legacy (Vertical) Postbit Template and choose yes

(thinks to my self pfft n00b's)
And how is this answer related to the question asked?

You are giving instructions on how to change from using 'postbit' to 'postbit_legacy'. If you read this thread (and view the screenshots) then you will see he is already using postbit legacy (he even said so in his first post).

Dismounted
02-01-2008, 08:40 AM
o and let me guess you think im gonna try and hack it ? well news to you mate ive already helped soemone with this issues and i don't reallyy wana type out how to do it. its 09:47 in the monring
If you don't want to type it out, don't reply, wait until you are ready to type it out :). We are not saying you are a bad person, we are simply trying to protect our members from the bad people that are out there. Asking our members not to give out any access details to someone they do not know is simply a preventative measure.

Freesteyelz
02-01-2008, 10:25 AM
Does the misalignment occur on every postbit page (with multiple posts) or does it happen on a few? If a few, the cause might have to do with a specific Username block; something in that block is stretching it.

I may have missed it but is your style in a fixed or fluid width setting? Also, is it possible to post a link to your site and if you could please link to that specific thread. :)

Princeton
02-01-2008, 12:28 PM
I believe it's a default 3.6.8 template.

What browser are you using? Firefox?

It's either a missing image (in Firefox a missing image will not display but it's placement may still exist) .. or it's something defined in your CSS. It could be a number of things really.

As suggested, post the URL to the site. If you did - this would have been resolved already.

Lynne
02-01-2008, 02:34 PM
I just compared his postbit with a standard vb postbit (or rather, postbit_legacy) and there are only very minor changes.

If you fill the text area in with long sentences, does this problem still occur? I'm thinking it is because the table is defined as 100%, but only the first column width is defined (as 175), the second column is not. This allows the second column to be any width it chooses to be, especially if there is hardly anything in the column - like in your picture.

509pro
02-01-2008, 08:02 PM
I have just noticed this issue only happens in IE

Princeton... I cant post my site, it does have some adult content on it, this is why I have not done it...

Freesteyelz
02-01-2008, 08:27 PM
Then send me a PM with the link to that thread and maybe any other thread with the same problem so I can compare them.

Is the template you posted in the first page the exact template? If not, I'll need to see the template too.

509pro
02-01-2008, 08:38 PM
Then send me a PM with the link to that thread and maybe any other thread with the same problem so I can compare them.

Is the template you posted in the first page the exact template? If not, I'll need to see the template too.


I will create you an account to the board and send you a link to it... And yes, will give u the style info... And agian yes, its the same on every post..

Freesteyelz
02-01-2008, 09:24 PM
K...I made a test thread and a few suggestions to start off with. See if that helps. I'll post the changes made in this thread when we see positive results. :)

509pro
02-01-2008, 11:54 PM
K...I made a test thread and a few suggestions to start off with. See if that helps. I'll post the changes made in this thread when we see positive results. :)

Take a look now :) :)

Awsome... Thank you very much Freesteyelz!!!

Freesteyelz
02-02-2008, 12:17 AM
It's getting there but not complete. :)

As I mentioned on yours site alignment issues will exist because of the left and right columns thoughout the site. What's occuring is postbit content is forcing the Username column to collapse even with a "nowrap" insert after width="175". As a side-effect, you'll get a horizontal scrollbar too. With smaller resolutions the content will indeed squeeze.

One option is to set an overflow in messagearea column to prevent any content exceeding the column's width. However, because the layout is a 95% width setting for those who have wider screen resolutions there will be blank areas in the message column.