MyBB Community Forums

Full Version: Poster's Info - On top of their post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok, can someone help me with this code? I'm trying to set the Poster's information on top of their post, like how vB can be set to. It's just not working out. I thought this code would work for postbit:

<tr>
<td class="$altbg" width="50%" valign="top" nowrap="nowrap" align="left"><a name="pid$post[pid]"></a>
<strong><span class="largetext">$post[profilelink]</span></strong><br />
<span class="smalltext">
$post[userstars]
$post[groupimage]
$post[usertitle]<br /><br />
$post[useravatar]<br /></td>
<td class="$altbg" width="50%" valign="top" nowrap="nowrap" align="right">
$lang->postbit_posts $post[postnum]<br />
$lang->postbit_joined $post[userregdate]<br />
$lang->postbit_status $post[onlinestatus]$post[replink]<br />
</span>
</td></tr>
<tr><td class="$altbg" width="100%" valign="top">
<table width="100%">
<tr><td class="trow">$post[posturl]$post[icon]<span class="smalltext"><strong> $post[subject]</strong></span>
<p>$post[message]</p>
$post[attachments]
$post[signature]
<div style="text-align: right; vertical-align: bottom;">
$post[editedmsg]
$post[iplogged]
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="$altbg" height="18" nowrap="nowrap" align="center"><span class="smalltext">$post[postdate] $post[posttime]</span></td>
<td class="$altbg" width="100%" valign="middle" height="18">
	<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]</span></td>
		<td align="right" nowrap="nowrap"><span class="smalltext">$post[button_edit]$post[button_quickdelete]$post[button_quote]$post[button_report]</span></td>
	</tr>
	</table>

....but it screws everything up. It should be noted however, that the poster's information [i]does[i] display at the top. Just not...correctly.

Can someone modify this code to work out? I'm not the best at editing forum template =/ This is how it turns out...

Thanks!
I saw someone did this for pr2..I am not sure if it works now, you might want to give it a try.

Change your ShowThread Template
<html>
<head>
<title>$thread[subject]</title>
$headerinclude
</head>
<body>
$header
$usersbrowsing
<table width="$theme[tablewidth]" align="center" cellspacing="0" cellpadding="0"><tr>
<td align="left" valign="bottom">$multipage</td>
<td align="right">$newreply$newthread</td></tr></table>
<span class="smalltext"><br /></span>
$pollbox
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<tr>
<td class="thead"><strong>$rating $thread[subject]</strong></td>
</tr>
$posts
$threadpages
<tr>
<td colspan="2" class="tfoot">
<div style="float: right;"><strong>&laquo; <a href="showthread.php?tid=$tid&amp;action=nextoldest">$lang->next_oldest</a> | <a href="showthread.php?tid=$tid&amp;action=nextnewest">$lang->next_newest</a> &raquo;</strong></div>
<div><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></div>
</td>
</tr>
</table>
$threadexbox
<br />
<table width="$theme[tablewidth]" align="center" cellspacing="0" cellpadding="0"><tr>
<td>$newreply$newthread</td></tr></table>
$quickreply
$moderationoptions
$similarthreads
<br />
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<tr>
<td class="trow1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="left"><span class="smalltext">
<a href="printthread.php?tid=$tid">$lang->view_printable</a><br />
<a href="sendthread.php?tid=$tid">$lang->send_thread</a><br />
<a href="usercp2.php?action=addsubscription&amp;tid=$tid">$lang->subscribe_thread</a> | <a href="usercp2.php?action=addfavorite&amp;tid=$tid">$lang->add_favorites</a></span></td>
<td valign="middle" align="right">
$ratethread
<br />
$forumjump
</td></tr>
</table>
</td></tr>
</table>
$footer
</body>
</html>

PostBit Template
<style type="text/css">
hr
{
color: #f00;
background-color: #f00;
}
</style>
<tr>
<td class="$altbg" width="100%" valign="top" nowrap="nowrap"><div align="left" style="float:left;">$post[useravatar]</div><div align="left" style="float:left; padding-left:10px;"><span class="largetext"><a href="member.php?action=profile&amp;uid=$post[uid]">$post[username]</a></span></strong><br />
<span class="smalltext">
$post[usertitle]<br />
$post[userstars]
$post[groupimage]<br /></div>
<div align="right" style="float:right;">
<span class="smalltext">
$lang->postbit_posts $post[postnum]<br />
$lang->postbit_group $usergroup[title]<br />
$lang->postbit_joined $post[userregdate]<br />
$lang->postbit_status $post[onlinestatus]$post[replink]<br /></div>
</span>
</td></tr><tr>
<td class="$altbg" width="100%" valign="top">
<table width="100%">
<tr><td class="trow">$post[posturl] $post[icon]<span class="smalltext"><strong>$post[subject]</strong></span><hr />
<p>$post[message]</p>
$post[attachments]
$post[signature]
<div style="text-align: right; vertical-align: bottom;">
<span class="smalltext">$post[postdate] $post[posttime]</span><br>
$post[editedmsg]
$post[iplogged]
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="$altbg" width="100%" valign="middle" height="18">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom"><td align="left" ><span class="smalltext">$email$pm$www$find</span></td>
<td align="right" nowrap="nowrap"><span class="smalltext">$edit$quickdelete$quote$report</span></td>
</tr>
<tr valign="bottom">
<td align="left" ><span class="smalltext">$post[button_email]$post[button_pm]$post[button_www]$post[button_find]</span></td>
<td align="right" nowrap="nowrap"><span class="smalltext">$post[button_edit]$post[button_quickdelete]$post[button_quote]$post[button_report]</span></td>
</tr>
</table>
</td>
</tr>