MyBB Community Forums

Full Version: PM Layout issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I recently began changing round the layout of the classic post, which has turned out exactly how I wanted. Unfortunately I've had the unwanted side-effect of a mucked up PM Layout (And also no bottom border on some tables, kinda odd but I can live with that)

- Here's what I did to the thread layout: http://perfectsymmetry.tarheart.org/foru....php?tid=2

And here's the PM layout:
[Image: 2w7k41e.png]

I edited both
showthread (as it is now):
<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1400"></script>
</head>
<body>
	{$header}
	{$pollbox}
	<div class="float_left">
		{$multipage}
	</div>
	<div class="float_right">
		{$newreply}
	</div>
	{$ratethread}
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
		<tr>
			<td class="thead" colspan="2">
				<div style="float: right;">
					<span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
				</div>
				<div>
					<strong>{$thread['subject']}</strong> {$thread['description']}
				</div>
			</td>
		</tr>


		
		{$classic_header}
	
	<div id="posts">
		{$ignore_bit}

<tr>
			<td class="tcat" width="200px"><span class="smalltext"><strong>{$lang->author}</strong></span></td>
			<td class="tcat"><span class="smalltext"><strong>{$lang->message}</strong></span></td>
		</tr>
{$posts}

	</div>
	
		<tr>
			<td colspan="2" class="tfoot">
				{$search_thread}
				<div>
					<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
				</div>
			</td>
		</tr>
	</table>
	<div class="float_left">
		{$multipage}
	</div>
	<div style="padding-top: 4px;" class="float_right">
		{$newreply}
	</div>
	<br style="clear: both;" />
	{$quickreply}
	{$threadexbox}
	{$similarthreads}
	<br />
	<div class="float_left">
		<ul class="thread_tools">
			<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
			<li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
			<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}">{$add_remove_subscription_text}</a></li>
		</ul>
	</div>

	<div class="float_right" style="text-align: right;">
		{$moderationoptions}
		{$forumjump}
	</div>
	<br style="clear: both;" />
	{$footer}
</body>
</html>

and

postbit_classic (as it is now):

<tr>
	<td class="trow3" style="white-space: nowrap; text-align: center; vertical-align: middle;" colspan="1"><strong><span class="largetext">{$post['profilelink']}</span></strong> </td>
	<td class="trow3" style="vertical-align: middle;" colspan="1">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr valign="bottom">
				<td align="left" ><span class="smalltext"> {$post['postdate']} {$post['posttime']} </span></td>
				<td align="right"> {$post['posturl']}  </td>
			</tr>
		</table>
	</td>
</tr>


	<tr>
		<td class="{$altbg}" width="200px" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
		<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>
			<div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
				{$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="trow3" style="vertical-align: middle;" colspan="2">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr valign="bottom">
				<td align="left" > </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>


<tr>
	
	<td class="trow4" style="vertical-align: middle;" colspan="2">
	
	</td>
</tr>

Please help me sort this out Sad
What's the problem? You want that Orange part to span across the whole width? If so you have to use colspan="2"
Okay worked it out, I missed a few templates.
You got any idea on the lack of border on the bottom?