MyBB Community Forums

Full Version: Postbit Stretches Into Actual Post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://lostandfoundrp.com/showthread.php...36#pid1136

As you can see, my avatar is stretching into the actual post itself (in classic mode). I know I can change the dimensions for an avatars maximum size so that it resizes to be within the postbits width, but I want to allow larger avatars. So I'm wondering how I can make the postbit section wider, or stretch out automatically to make room for a wider avatar.

I am running the latest MyBB.

Thank you in advance!
In the "Show Thread Options" in the ACP's Configuration, you should be able to edit the "Maximum Avatar Dimensions in Posts". Changing this should scale the avatar.
Or you can edit the postbit_classic table and make the width of the postbit wider, whilst making the width of the post smaller.
Tomm - Yeah, I know how to do that, but I didn't want to make the avatar that small... as stated in my post ^_^

Matt- Thank you, I will try that! I looked there before but couldn't find the right code, I'll look harder this time otherwise I'll copy/paste the code and you can tell me what to fix.

THANK YOU!
Okay, I couldn't find it. I went in to the postbit_classic template edit. Here is the code:

${$ignore_bit}<table cellpadding="0" cellspacing="0" border="0" class="metalborder" style="clear: both;"><tr><td><img src="images/world-of-warcraft/frame-top-left.png" alt="" title="" /></td><td class="metalborder-top"></td><td><img src="images/world-of-warcraft/frame-top-right.png" alt="" title="" /></td></tr><tr><td class="metalborder-left"></td><td><table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_visibility}" id="post_{$post['pid']}">	<tr>		<td class="{$altbg}" style="margin: 0; padding: 0;">			<div class="post_header">				<div class="post_username">					<div class="post_padding">						<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a><!-- {$post['onlinestatus']} --><strong>{$post['profilelink']}</strong>					</div>				</div>				<div class="post_edited_link">					<div class="post_padding">						{$post['posturl']}{$post['editedmsg']}<!-- <span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span> -->					</div>				</div>				<div class="post_clear"></div>			</div>			<div class="post_contents">				<div class="userinfo">					<div class="post_padding">						<div>							{$post['useravatar']}						</div>						<div>							{$post['usertitle']}						</div>						<div class="post_userimages">							<div class="group">								{$post['groupimage']}							</div>							<div class="stars">								{$post['userstars']}							</div>						</div>						<div class="post_userinfoblock">							{$post['user_details']}						</div>					</div>				</div>				<div class="post_body">					<div class="post_padding">						<div id="pid_{$post['pid']}">							{$post['message']}						</div>						{$post['attachments']}						{$post['signature']}					</div>				</div>				<div class="post_clear"></div>			</div>			<div class="post_footer">				<div class="post_time">					<div class="post_padding">						{$post['postdate']} {$post['posttime']}					</div>				</div>				<div class="post_buttons">					<div class="post_padding">						<div class="left">							{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}						</div>						<div class="right">							{$post['button_spam']}{$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>						<div class="post_clear"></div>					</div>				</div>				<div class="post_clear"></div>			</div>		</td>	</tr></table></td><td class="metalborder-right"></td></tr><tr><td><img src="images/world-of-warcraft/frame-bot-left.png" alt="" title="" /></td><td class="metalborder-bot"></td><td><img src="images/world-of-warcraft/frame-bot-right.png" alt="" title="" /></td></tr></table>
I would change the global.css since most of this is being done with css. You need to find the class "userinfo" and change the width on that and the class "post_body" width. Currently they are set at post_body width is 625px and userinfo is at 175px. You should be able to access the global.css via admin>template & style>Themes>[Theme Name]>global.css. Hope that helps.
Thank you SO much!! That fixed it ^_^;;
Would you possibly be able to tell me how to increase the total width of the board? Like, right now the two equal 800... is there any way I can change it to being 900?
Are you sure it's 800? It says in the CSS that it's 984px? I can't tell, because I've lost all perceptions with my new monitors Toungue

You'll see this global.css:

#container, .phperror1 {
	width: 984px;
	background: #000 url(../../../images/world-of-warcraft/ev_bg.gif) repeat-y;
	color: #FFF;
	margin: 0 auto 25px auto;
	padding: 0;
}

Just increase the 984.
Thank you very much! You were right Big Grin I think this solves all of my problems (for now, haha). Thanks again, you guys were a great help, and so fast too!