MyBB Community Forums

Full Version: Postbit & postbit classic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well, i've been porting this theme to 1.6, the only thing that remains the postbit, both classic and modern.
I can't port them correctly to fit the theme. If i revert it to the original, it's horrible.

I've been trying with the classic part, this is what i've done so far.
{$ignore_bit}
<table cellpadding="0" cellspacing="0" border="0" class="metalborder"><tr><td><img src="images/world-of-warcraft/frame-top-left.png" alt="" title="" /></td><td class="metalborder-top"></td><td><img src="images/world-of-warcraft/frame-top-right.png" alt="" title="" /></td></tr><tr><td class="metalborder-left"></td><td>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tr>
		<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
		<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
		<span class="smalltext">
			{$post['usertitle']}<br />
			{$post['userstars']}
			{$post['groupimage']}
			{$post['useravatar']}<br />
			{$post['user_details']}
		</span>
	</td>
	<td class="{$altbg}" valign="top">
		<table width="100%">
			<tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
			<br />
			<hr />
			<div id="pid_{$post['pid']}" class="post_body">
				{$post['message']}
			</div>
			{$post['attachments']}
			{$post['signature']}
			<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
				<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
				{$post['iplogged']}
			</div>
		</td></tr>
	</table>
</td>
</tr>
<tr>
	<td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
	<td class="{$altbg}" style="vertical-align: middle;">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr valign="bottom">
				<td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
				<td align="right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
			</tr>
		</table>
	</td>
</tr>
</table>
</td><td class="metalborder-right"></td></tr><tr><td><img src="images/world-of-warcraft/frame-bot-left.png" alt="" title="" /></td><td class="metalborder-bot"></td><td><img src="images/world-of-warcraft/frame-bot-right.png" alt="" title="" /></td></tr></table>

This is how it displays

As you can see, I copy everything from the mybb default and i added the table thing.
BUT, what i want is that the post message don't escape from the container AND i don't know how to put the borders inside the postbit, so the date, buttons, avatar and description, message are all in different sections.
I don't know if you understand what i meant, so here's a pic
http://puu.sh/sv0P

Sorry for my english.

Any ideas?
Edit: By the way, I haven't touched anything from the .css