MyBB Community Forums

Full Version: show post layout like warriorforum.com?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
@ warriorforum.com the posts layout like combination of modern and classic layout

but i dont have idea where to edit to make it similiar to warriorforum.com..

any idea how to modif mybb to get something like attachment bellow??

Undecided
docs Wrote:There are two types of postbits: Horizontal and classic.
The horizontal postbit has the user information above the post,
while the classic postbit has user information to the left of the post

Postbit_horizontal.PNG | Postbit.PNG

admin panel has a setting for the postbit layout and users also have an option to select the required layout.

admin panel >> configuration >> settings >> Show Thread Options --> Post Layout
--> select Display posts using the classic layout and save settings

And you can install force postbit layout plugin so that the layout set in admin panel through above
setting is forced for all users. this plugin has no configuration. just add the file and install it.
for me. i dont like the old classic postbit because some user having long username. So the alignment suddenly ruined the forum
(2013-09-04, 08:35 AM)gamemaster Wrote: [ -> ]for me. i dont like the old classic postbit because some user having long username. So the alignment suddenly ruined the forum

exactly... I think usernames should be up to 20 characters, not 30... how can I change that ??... even more... how can I change the font of usernames on threads... I'd like smaller characters for usernames so the forum won't look bad when using classic layout on threads...
thanks .m.,. but i mean to have "time post" to be shown like bellow

sorry for not detail

(2013-09-04, 08:35 AM)gamemaster Wrote: [ -> ]for me. i dont like the old classic postbit because some user having long username. So the alignment suddenly ruined the forum

i am agree, but many user still like the old one,.
Can you copy/paste your postbit template here?
It can be found in Templates & Styles > Templates > Your theme > Postbit Templates > postbit
^ postbit_classic template needs to be modified (not postbit template)
(2013-09-04, 09:08 AM)bugara1 Wrote: [ -> ]Can you copy/paste your postbit template here?
It can be found in Templates & Styles > Templates > Your theme > Postbit Templates > postbit

sure

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tbody>
		<tr>
			<td class="tcat">
				<div class="float_left smalltext">
					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
				</div>
				{$post['posturl']}
			</td>
		</tr>

		<tr>
			<td class="trow1{$post['mysupport_bestanswer_highlight']}{$post['mysupport_staff_highlight']} {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td class="trow2{$post['mysupport_bestanswer_highlight']}{$post['mysupport_staff_highlight']} post_content {$unapproved_shade}">
				<span class="smalltext"><strong>{$post['mysupport_status']}{$post['icon']}{$post['subject']} {$post['subject_extra']}<div class="float_right">{$post['mysupport_bestanswer']}{$post['mysupport_deny_support_post']}</div></strong></span>

				<div class="post_body" id="pid_{$post['pid']}">
					{$post['message']}
				</div>
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1{$post['mysupport_bestanswer_highlight']}{$post['mysupport_staff_highlight']} post_buttons {$unapproved_shade}">
				<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
				</div>
				<div class="post_management_buttons float_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']}
				</div>
			</td>
		</tr>
	</tbody>
</table>
Try this: (replace it all with this)
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tr>
	<td class="tcat" align="center" style="padding: 8px 6px 4px 6px;">{$post['onlinestatus']} <strong>{$post['profilelink']}</strong></td>
	<td class="tcat" valign="middle" style="padding: 8px 6px 4px 6px;"><span class="smalltext">Posted {$post['postdate']} - {$post['posttime']}</span> <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a> {$post['posturl']}</td>
	</tr>

	<tr>
		<td class="{$altbg}" width="9%" valign="top" style="white-space: nowrap; text-align: center; border-bottom: none; border-right: 1px solid #ffffff;width: 12%;">
			{$post['usertitle']}<br />
		<span class="smalltext">
			{$post['useravatar']}
			{$post['groupimage']}<br>
			{$post['user_details']}{$post['newpoints_postbit']}{$post['newpoints_edit']}<br />
			{$post['iplogged']}

		</span>
	</td>
	<td class="{$altbg}" valign="top" style="border-bottom: none; border-left: 1px solid #cbcbcb">
		<table width="100%">
			<tr><td>
			<div id="pid_{$post['pid']}" class="post_body">
				{$post['message']}
			<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
				<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
			</div>
			</div>
			{$post['attachments']}
			{$post['signature']}
		</td></tr>
	</table>
</td>
</tr>
<tr valign="bottom">
	<td class="tcat" align="left" valign="bottom">&nbsp;{$post['button_www']}</td>
	<td class="tcat" align="right" valign="bottom">
<span class="float_left">{$post['button_pm']}{$post['button_find']}{$post['button_rep']}</span>
<span class="float_right">{$post['button_tyl']}{$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']}</span>
</td>
</tr>
<tr style="{$post['tyl_display']}" id="tyl_{$post['pid']}">
    {$post['thankyoulike_data']}
</tr> 
</table>
(2013-09-04, 09:16 AM).m. Wrote: [ -> ]^ postbit_classic template needs to be modified (not postbit template)
ok

(2013-09-04, 09:26 AM)bugara1 Wrote: [ -> ]Try this: (replace it all with this)
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tr>
	<td class="tcat" align="center" style="padding: 8px 6px 4px 6px;">{$post['onlinestatus']} <strong>{$post['profilelink']}</strong></td>
	<td class="tcat" valign="middle" style="padding: 8px 6px 4px 6px;"><span class="smalltext">Posted {$post['postdate']} - {$post['posttime']}</span> <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a> {$post['posturl']}</td>
	</tr>

	<tr>
		<td class="{$altbg}" width="9%" valign="top" style="white-space: nowrap; text-align: center; border-bottom: none; border-right: 1px solid #ffffff;width: 12%;">
			{$post['usertitle']}<br />
		<span class="smalltext">
			{$post['useravatar']}
			{$post['groupimage']}<br>
			{$post['user_details']}{$post['newpoints_postbit']}{$post['newpoints_edit']}<br />
			{$post['iplogged']}

		</span>
	</td>
	<td class="{$altbg}" valign="top" style="border-bottom: none; border-left: 1px solid #cbcbcb">
		<table width="100%">
			<tr><td>
			<div id="pid_{$post['pid']}" class="post_body">
				{$post['message']}
			<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
				<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
			</div>
			</div>
			{$post['attachments']}
			{$post['signature']}
		</td></tr>
	</table>
</td>
</tr>
<tr valign="bottom">
	<td class="tcat" align="left" valign="bottom">&nbsp;{$post['button_www']}</td>
	<td class="tcat" align="right" valign="bottom">
<span class="float_left">{$post['button_pm']}{$post['button_find']}{$post['button_rep']}</span>
<span class="float_right">{$post['button_tyl']}{$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']}</span>
</td>
</tr>
<tr style="{$post['tyl_display']}" id="tyl_{$post['pid']}">
    {$post['thankyoulike_data']}
</tr> 
</table>

and this the result
Pages: 1 2