1
rajaito
huge space on forums when user has no avatar
  • 2005/2/25 3:32

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


hhttp://www.electroniculture.net/modules/newbb/viewtopic.php?topic_id=8&forum=1

As you can see I have edited the forum layout quite a bit to be more streamlined. I also wanted users to be able to post large profile pics but have small avatars in the forum. So I commanded the width to be "160" for every avatar. But when there is no avatar chosen a huge space is still placed there as if there is an image there. Any ideas???

2
rajaito
Re: huge space on forums when user has no avatar
  • 2005/2/25 3:33

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


You can see where I have commented certain things out:


<
a id="forumpost<{$topic_post.post_id}>">a>
<
table class="outer" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width: 0px;">
  <
tr>
       <
th width="20%"> <div align="center">
              <
ul class="newbb_level1">
                <
li class="newbb_folder">
                  <
div class="newbb_submenu"><strong><{$down}>&nbsp;<{$topic_post.poster_name}>strong>div>
                  <
ul class="newbb_level2">
                    <
table cellpadding="4" cellspacing="1" border="0">
                      <
tr>
                        <
th><{$personal}><{$topic_post.poster_name}>th>
                      tr>
                        <{
$topic_post.poster_userbar}> 
                        <{if 
$viewer_is_admin == true and $topic_post.poster_ip}>
                      <
tr>
                        <
th><{$smarty.const._MD_TOPICOPTIONADMIN}>th>
                      tr>
                      <
tr>
                        <
td class="head"><strong>IP: <{$topic_post.poster_ip}>strongtd>
                      tr>
<{/if}>
                    table>
                  ul>
                li>
              ul>
            div>th>

    <
th width="40%" align="left"><div class="comTitle"><b><{$topic_post.post_title}>b>div>th><th align="right"><div class="comTitle" align="right"><{foreach item=btn from=$topic_post.thread_buttons}> <a href="<{$btn.link}>&post_id=<{$topic_post.post_id}>" title="<{$btn.name}>"> <{$btn.image}>a> <{/foreach}>div>th>
  tr>

  <
tr>
      <
td width="20%" class="odd" rowspan="2" valign="top">
      <{if 
$topic_post.poster_uid != 0}>
      <
div class="comUserRankText"><{$topic_post.poster_rank_title}>div>
      <
img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster_avatar}>" width="160" />

      <
div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_FROM}>span> <{$topic_post.poster_from}>div>
      <
div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_POSTS}>:span> <{$topic_post.poster_postnum}>div>
    <{if 
$groupbar_enable}>
      <
div class="comUserStat"> <span class="comUserStatCaption"><{$smarty.const._MD_GROUP}>span> <br /><{$topic_post.poster_groups}> div>
    <{/if}>
      <
div class="comUserStatus"><{$topic_post.poster_status}>div>
    <{else}>
       <
div class="comUserRankText"><{$anonymous_prefix}><{$topic_post.poster_uname}>div>
    <{/if}>
    td>

    <
td colspan="2" class="odd">
    <
div class="comText"><{$topic_post.post_text}>div>
    <{if 
$topic_post.post_attachment}>
    <
div class="comText"><{$topic_post.post_attachment}>div>
    <{/if}>
    <{if 
$topic_post.post_edit}>
    <
p align="right"><small><{$topic_post.post_edit}>small>p>
    <{/if}>
    td>
  tr>

  <
tr>
    <
td colspan="2" class="odd" valign="bottom">
    <{if 
$topic_post.poster_sig}>
    <
div class="signature">
    
_________________<br />
    <{
$topic_post.poster_sig}>
    div>
    <{/if}>
    td>
  tr><br />


  <
tr>
    

    td>
  tr>
table>

3
rajaito
Re: huge space on forums when user has no avatar
  • 2005/3/3 15:29

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


hello?? Someone please help.

4
rajaito
Re: huge space on forums when user has no avatar
  • 2005/3/13 6:34

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


BEGGING FOR HELP

Login

Who's Online

246 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits