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


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

<!-- start comment post -->
<
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}></strong> </td>
                      </
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}>&amp;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}><!-- <br /><{$topic_post.poster_rank_image}> --></div>
      <
img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster_avatar}>" width="160" />
<!--       <
div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_JOINED}>:</span> <{$topic_post.poster_regdate}></div> -->
      <
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 width="20%" class="foot"> <div class="comDate"><span class="comDateCaption"><{$smarty.const._MD_POSTEDON}></span><{$topic_post.post_date}></div
    <{foreach 
item=abtn from=$topic_post.thread_action}> <a href="<{$abtn.link}>&amp;post_id=<{$topic_post.post_id}>" target="_blank" title="<{$abtn.name}>"> <{$abtn.image}></a> <{/foreach}>
    </
td>
    <
td colspan="2" class="foot"><div align="left"><a href="#threadtop" title="<{$smarty.const._MD_UP}>"><{$p_up}></a></div>-->
<!--  <
div align="right" width="80%"></div> -->
    </
td>
  </
tr>
</
table>
<!-- 
end comment post -->

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

97 user(s) are online (64 user(s) are browsing Support Forums)


Members: 1


Guests: 96


Runeher2,

more...

Donat-O-Meter

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

Latest GitHub Commits