MyBB Community Forums
Portal page layout doesn't fit page - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Portal page layout doesn't fit page (/thread-163676.html)

Pages: 1 2


Portal page layout doesn't fit page - user25 - 12-03-2014

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]


RE: Portal page layout doesn't fit page - .m. - 12-03-2014

^ that empty space is for user avatar. do you have high dimensions set for user avatars ?


RE: Portal page layout doesn't fit page - user25 - 12-03-2014

Avatar dimensions are set at 125x125


RE: Portal page layout doesn't fit page - .m. - 12-03-2014

^ forum url is required to check the issue


RE: Portal page layout doesn't fit page - user25 - 12-03-2014

I can PM you the url, the site is still in construction.


RE: Portal page layout doesn't fit page - .m. - 12-03-2014

^ please see replies here => Portal Alignment Problem
basically, avatar images width is taken as zero. find what is causing that ..


RE: Portal page layout doesn't fit page - user25 - 12-03-2014

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 />
--------------------------------------


RE: Portal page layout doesn't fit page - .m. - 12-03-2014

^ check Default Avatar Dimensions at profile options in the settings

avatar template for the portal announcement => portal_announcement_avatar

(edited)


RE: Portal page layout doesn't fit page - user25 - 12-03-2014

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>


RE: Portal page layout doesn't fit page - .m. - 12-03-2014

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>