MyBB Community Forums

Full Version: How do I add more room to the "Author" part of a post?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have an error, well, I added more content to the Author Details in the postbit, but the text is too long so it made the author details wider and the Author, Message bar does not match up, a picture is below.

[Image: picture.png]

How do I make it bigger?

Im using theme Novus Dust 2
You can't just do that. Other users might have a CPU with a bigger or smaller name, so it would be distorted in either case. A better solution is to remove the white-space: nowrap; property from the table cell.

1. Go to Admin CP > Templates & Style > Templates > Novus Dust 2 Templates > Post Bit Templates > postbit_classic.

2. Find: (might be slightly different in your case)

<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;">

3. Remove this part:

white-space: nowrap; 

4. Save the template.
I wanted the AUTHOR part bigger, not the details smaller.

I made some precations that if its too big it'll deny it, that what it is in Custom Profile...

I just need it bigger, anything larger than my CPU name will be denied.
I understand that, but as I explained it isn't the best solution. A character limit isn't going to help much because your font isn't monospace, meaning each letter has a different width; so the issue remains. There's also the username and the usertitle. I still believe what I suggested initially is a better solution. But if you insist...

1. Go to Admin CP > Templates & Style > Templates > Novus Dust 2 Templates > Show Thread Templates > showthread_classic_header.

2. Find:

<tr>
	<td class="tcat" width="15%"><span class="smalltext"><strong>{$lang->author}</strong></span></td>
	<td class="tcat"><span class="smalltext"><strong>{$lang->message}</strong></span></td>
</tr>

3. Change the 15% to a number that fits the width of the details part.
Now, I cant be asked to open another thread, how do I make some text bold in postbit where all the specs are?
You mean bold "CPU:", "Posts:", "Reputation:" and such?
Yep, I mean that.
Can you post the contents of your postbit_author_user template?
Sure, It is..

{$lang->postbit_posts} {$post['postnum']}
&nbsp;{$post['replink']}{$post['warninglevel']}    <br />
        CPU: {$post['fid4']}<Br />
        Motherboard: {$post['fid5']} <Br />
RAM: {$post['fid6']} <Br />
Case:: {$post['fid7']} <br />
GPU: {$post['fid8']} <br />
Power Supply: {$post['fid9']} <br />
Hard Drive: {$post['fid10']} <br />
Optical Drive: {$post['fid11']} <br />
OS: {$post['fid12']} <br />
Replace your postbit_author_user template with:

<strong>{$lang->postbit_posts}</strong> {$post['postnum']}
{$post['replink']}
{$post['warninglevel']}<br />
<strong>CPU:</strong> {$post['fid4']} <br />
<strong>Motherboard:</strong> {$post['fid5']} <br />
<strong>RAM:</strong> {$post['fid6']} <br />
<strong>Case:</strong> {$post['fid7']} <br />
<strong>GPU:</strong> {$post['fid8']} <br />
<strong>Power Supply:</strong> {$post['fid9']} <br />
<strong>Hard Drive:</strong> {$post['fid10']} <br />
<strong>Optical Drive:</strong> {$post['fid11']} <br />
<strong>OS:</strong> {$post['fid12']} <br />

Replace your postbit_reputation template with:

<br /><strong>{$lang->postbit_reputation}</strong> {$post['userreputation']}

Replace your postbit_warninglevel template with:

<br /><strong>{$lang->postbit_warning_level}</strong> <a href="{$warning_link}">{$warning_level}</a>