Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 5 Years, 6 Months ago Portal page layout doesn't fit page
#1
Solved: 5 Years, 6 Months ago
The latest threads don't fit across the portal home page.  Looked and experimented with Firebug, but to no avail.  See screenshot for example.

   
Reply
#2
Solved: 5 Years, 6 Months ago
^ that empty space is for user avatar. do you have high dimensions set for user avatars ?
Reply
#3
Solved: 5 Years, 6 Months ago
Avatar dimensions are set at 125x125
Reply
#4
Solved: 5 Years, 6 Months ago
^ forum url is required to check the issue
Reply
#5
Solved: 5 Years, 6 Months ago
I can PM you the url, the site is still in construction.
Reply
#6
Solved: 5 Years, 6 Months ago
^ please see replies here => Portal Alignment Problem
basically, avatar images width is taken as zero. find what is causing that ..
Reply
#7
Solved: 5 Years, 6 Months ago
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 />
--------------------------------------
Reply
#8
Solved: 5 Years, 6 Months ago
^ check Default Avatar Dimensions at profile options in the settings

avatar template for the portal announcement => portal_announcement_avatar

(edited)
Reply
#9
Solved: 5 Years, 6 Months ago
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>
Reply
#10
Solved: 5 Years, 6 Months ago
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>
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)