MyBB Community Forums

Full Version: Portal page layout doesn't fit page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
The latest threads don't fit across the portal home page.  Looked and experimented with Firebug, but to no avail.  See screenshot for example.

[attachment=33145]
^ that empty space is for user avatar. do you have high dimensions set for user avatars ?
Avatar dimensions are set at 125x125
^ forum url is required to check the issue
I can PM you the url, the site is still in construction.
^ please see replies here => Portal Alignment Problem
basically, avatar images width is taken as zero. find what is causing that ..
Read the link, but can't tell where or if the problem was resolved there.  I did tweak my portal_announcement template and removed ($avatar}, and the layout fixed itself.  But I would like to keep it there.  Any ideas besides the avatar image setting in the ACP that would cause this resize issue.  Which template is the avatar pulling from.

This is the template code I changed:
-----------------------------------------------
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="trow2" align="right">
<span class="smalltext">{$lang->posted_by} {$profilelink}  - {$anndate} - {$lang->forum} <a href="{$mybb->settings['bburl']}/{$announcement['forumlink']}">{$announcement['forumname']}</a> {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" class="tfixed" style="width: 100%;">
<tr>
{$avatar}
<td class="trow1 scaleimages">
<p>
{$message}
</p>
{$post['attachments']}
</td>
</tr>
<tr>
<td align="right" colspan="2" valign="bottom">
<span class="smalltext">
<a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><img src="{$theme['imgdir']}/printable.png" alt="{$lang->print_this_item}" title="{$lang->print_this_item}" /></a>{$senditem}
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
--------------------------------------
^ check Default Avatar Dimensions at profile options in the settings

avatar template for the portal announcement => portal_announcement_avatar

(edited)
Looks like it could be pulling from somewhere else. I would be ok to put my own image dimensions here, but I need help with how to write it.

<td class="trow1" style="text-align: center; vertical-align: top;"{$useravatar['width_height']}><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></td>
it can be like this
<td class="trow1" style="text-align: center; vertical-align: top;" width="125" height="125"><img src="{$useravatar['image']}" alt=""  width="125" height="125" /></td>
Pages: 1 2