MyBB Community Forums

Full Version: Postbit like this with tables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I really like the postbit tables in here ... but I don't really have the confidence to modify the templates myself, so if someone could nudge me in the right direction I'd really appreciate it!

http://www.emuzen.net/showthread.php?tid=131
You mean the shaded tables around the user name and avatar? It appears that its using the same class as the welcome panel, so you need to go into your templates and find the post bit and encase it in a div tag that is the same class as the welcome panel.

<div class="wlcpnl">
{Default Post Bit Template Code}
</div>

Something like that, when I get to a copy of MyBB later this week I could elaborate more if needed.

Hope this helps! Let me know if you are still lost Smile
Well I'm not using the same theme as them, so I imagine my welcome panel is significantly different ...
Nope, unless you made changes to it before, it should be the same. First, you need to go into your Admin CP and into the template of the theme you want, then go to; Post Bit Templates > postbit

Find:
		<tr>
			<td class="trow1 {$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>

and replace it with:

		<tr>
			<td class="trow1 {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<div id="panel"> <!--EDIT-->
						<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>
						</div> <!--EDIT-->
					</tr>
				</table>
			</td>
		</tr>

Again, I don't have full access to a MyBB test board at the moment so please try this on a test board or a non-live forum first. I can't guarantee that it'll work right.

Please report back if it works (or doesn't)! Smile
I actually got this working already and did something even cooler IMO:

[Image: Picture13.png]
Nice, but when I go to your site, I don't see it...
That does look even better! Smile Glad you got it fixed, but now I want to know how you did that! Big Grin
(2008-09-18, 01:51 AM)Infranight Wrote: [ -> ]Nice, but when I go to your site, I don't see it...

This theme is still in development.

Lordonk, maybe I'll release this postbit Big Grin
Yeah, I want to know too!
What Theme or style use:

http://www.emuzen.net/index.php ??