MyBB Community Forums

Full Version: How to rig this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
When you write a post in which there is only one short sentence, part of the options: edit, delete, reply ... resize.

Can I somehow set it to that part does not change size, and part of the text to be stretched?


This look when stretched:

[Image: 1.png]



And I would like to remain unchanged:

[Image: 2.png]

Test forum URL:
http://www.srbin.byethost5.com

User: tester
Pass: tester
Did no one has a solution? Huh
I still have a problem?! Huh
Is there a solution?
Go to: ACP > Templates > Your theme's templates > Edit > Postbit Templates > postbit_classic > and find;
<td class="{$altbg}" valign="top">
and Change it into;
<td class="{$altbg}" valign="bottom">

Now within same template, find;
<div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
and Change it into;
<div id="pid_{$post['pid']}" style="padding: 25px 0 75px 0;">

Save template.

It should result into this;
[attachment=22875]
Dear all,

This part <td class="{$altbg}" valign="top"> can not find in my Postbit Templates > postbit_classic


Here's how it looks postbit_classic:

{$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" colspan="2">
<span style="float: right;">
{$post['posturl']}
</span>
{$post['postdate']} {$post['posttime']}
</td>
</tr>

	<tr>
		<td class="postbit" rowspan="2" width="200px" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
		<div class="postbit_name">{$post['onlinestatus']}{$post['profilelink']}<br />
		<span style="float: right;">{$post['userstars']}</span><span class="postbit_usertitle">{$post['usertitle']}</span></div>
		<span class="smalltext">
			{$post['useravatar']}
			{$post['groupimage']}
			{$post['user_details']}
		</span>
	</td>
	<td class="trow1" valign="top">
		<table width="100%">
			<tr><td><span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
			<br />
			<div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">  
				{$post['message']}
			</div>
			{$post['attachments']}
			{$post['signature']}
			<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
				<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
				{$post['iplogged']}
			</div>
		</td></tr>
	</table>
</td>
</tr>
<tr>
	<td class="trow2" style="vertical-align: middle; height: 10px;">
		<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']}{$post['button_rep']}</span></td>
				<td align="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']}</td>
			</tr>
		</table>
	</td>
</tr>
</table>
Alright, replace all code of Postbit_classic template 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" colspan="2">
<span style="float: right;">
{$post['posturl']}
</span>
{$post['postdate']} {$post['posttime']}
</td>
</tr>

    <tr>
        <td class="postbit" rowspan="2" width="200px" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
        <div class="postbit_name">{$post['onlinestatus']}{$post['profilelink']}<br />
        <span style="float: right;">{$post['userstars']}</span><span class="postbit_usertitle">{$post['usertitle']}</span></div>
        <span class="smalltext">
            {$post['useravatar']}
            {$post['groupimage']}
            {$post['user_details']}
        </span>
    </td>
    <td class="{$altbg}" valign="bottom">
        <table width="100%">
            <tr><td><span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
            <br />
            <div id="pid_{$post['pid']}" style="padding: 25px 0 75px 0;">  
                {$post['message']}
            </div>
            {$post['attachments']}
            {$post['signature']}
            <div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
                <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
                {$post['iplogged']}
            </div>
        </td></tr>
    </table>
</td>
</tr>
<tr>
    <td class="trow2" style="vertical-align: middle; height: 10px;">
        <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']}{$post['button_rep']}</span></td>
                <td align="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']}</td>
            </tr>
        </table>
    </td>
</tr>
</table>
Still not working properly Huh
Can you please give me your forum's URL ?
I wrote the first post but have not seen Smile

Test forum URL:
http://www.srbin.byethost5.com

User: tester
Pass: tester
Is there a solution to this? Huh
Pages: 1 2