MyBB Community Forums

Full Version: horizontal postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I searched for it, and all I could found was for 1.0 so I don't know if it'll work for 1.2

Can someone make an horizontal postbit, sort of like the vBulletin one? Thanks..
It won't work for 1.2.

In 1.2 the author's information is concentrated into one template (postbit_author_user). Perhaps you can just take the info shown there (ie. {$lang->postbit_group} {$usergroup['title']}) and plug it into the provided code for 1.0-1.1x changing them out where needed.
to be honest.... no idea what you mean
Tachu Wrote:to be honest.... no idea what you mean

Well, hopefully someone else can clear it up for you or perhaps I'll try substituting codes myself and post it here if I get it working.

Eh, we'll see which way the wind blows.
I got it. Unfortunately, there's a bold or strong (or something) tag somewhere that's open somewhere and I can't find it. Hopefully someone can find it and correct it.

Edit showthread with:

<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=120"></script>
</head>
<body>
{$header}
{$pollbox}
<div style="float: right; padding-bottom: 4px;">
	{$newreply}{$newthread}
</div>
{$multipage}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
<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>{$rating} {$thread['subject']}</strong>
	</div>
</td>
</tr>
{$posts}
{$threadpages}
<tr>
<td colspan="2" class="tfoot">
<div><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>
</td>
</tr>
</table>
<div style="padding-top: 4px;">
	{$newreply}{$newthread}
</div>
{$threadexbox}
{$quickreply}
{$moderationoptions}
{$similarthreads}
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
 	<tr>
		<td class="trow1">
			<table width="100%">
				<tr>
					<td>
						<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 align="right">
						{$ratethread}
						<br />
						{$forumjump}
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
{$footer}
</body>
</html>

Edit postbit with:

<tr>
<td class="trow_sep" width="100%" valign="top" nowrap="nowrap"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a><div align="left" style="float:left;">{$post['useravatar']}
<br />
{$post['onlinestatus']}
</div><div align="left" style="float:left; padding-left:10px;"><strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
	{$post['usertitle']}<br />
	{$post['userstars']}<br />
	{$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 />
	{$post['replink']}<br />
</div>
</span>
</td></tr><tr>
<td class="trow1" width="100%" valign="top">
<table width="100%">
<tr><td class="trow">$post[posturl] $post[icon]<span class="smalltext"><strong>$post[subject]</strong></span><hr />
<div id="pid_{$post['pid']}">
<p>
{$post['message']}
</p>
</div>
{$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>
<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"><span class="smalltext">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}</span></td>
	</tr>
	</table>
</td>
</tr>
{$seperator}
thanks Toungue
No prob. Let me know if you get that bold (everything) mistake out of there.

Oh... and this is more of a template change than a code modification, so... it's in the wrong forum. Wink