1
maxxy
hide empty table in profile
  • 2007/7/15 11:59

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


I want to hide any empty table field in profile

as example when a user have not yet upload an avatar
the table will not show avatar table field in user profile

<tr valign="top">
          <
td class="head"><{$lang_avatar}>td>
          <
td align="center" class="even"><img src="<{$user_avatarurl}>" alt="Avatar" />td>
        tr>



if user have not update their interest
the table will not show the field for interest

etc

is this possible ? How ?


thanks

2
maxxy
Re: hide empty table in profile
  • 2007/7/16 7:57

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


bump

3
smart2
Re: hide empty table in profile
  • 2007/7/16 10:01

  • smart2

  • Not too shy to talk

  • Posts: 129

  • Since: 2007/1/19


Hi to hide avatar field, for example replace

<tr valign="top">
          <
td class="head"><{$lang_avatar}>td>
          <
td align="center" class="even"><img src="<{$user_avatarurl}>" alt="Avatar" />td>
        tr>


by

<{if $user_avatarurl != "uploads/blank.gif"}>
        <
tr valign="top">
          <
td class="head"><{$lang_avatar}>td>
          <
td align="center" class="even"><img src="<{$user_avatarurl}>" alt="Avatar" />td>
        tr>
<{/if}>


in system_userinfo.html in system templates

4
maxxy
Re: hide empty table in profile
  • 2007/7/17 10:31

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


thanks smart

5
maxxy
Re: hide empty table in profile
  • 2007/7/17 11:20

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


what about the website field ?

<tr>
          <
td class="head"><{$lang_website}>td>
          <
td class="even"><{$user_websiteurl}>td>
        tr>


I can't use <{if $user_websiteurl != ""}>

the table is still displayed I think because XOOPS automatically inserts http:// before the url

when i try <{if $user_websiteurl != "http://"}> the website table is still displayed

6
maxxy
Re: hide empty table in profile
  • 2007/7/18 18:35

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


bump

7
maxxy
Re: hide empty table in profile
  • 2007/11/1 4:41

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


Quote:

maxxy wrote:
what about the website field ?

<tr>
          <
td class="head"><{$lang_website}>td>
          <
td class="even"><{$user_websiteurl}>td>
        tr>


I can't use <{if $user_websiteurl != ""}>

the table is still displayed I think because XOOPS automatically inserts http:// before the url

when i try <{if $user_websiteurl != "http://"}> the website table is still displayed


bump

i'm still trying to figure out how to hide the website field..

anyone ?

8
Catzwolf
Re: hide empty table in profile
  • 2007/11/1 5:18

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Try something like this:

<{if $user_websiteurl}>
        <
tr valign="top">
          <
td class="head"><{$lang_website}>td>
          <
td class="even"><{$user_websiteurl}>td>
        tr>
<{/if}>


That field should be empty if the user has not entered any information for it. If that doesn't work let me know and I will give you another solution. K?

ATB

Catz

9
maxxy
Re: hide empty table in profile
  • 2007/11/1 5:26

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


thanks catz

but it's not working

updated the system module and template_c cleared

10
Catzwolf
Re: hide empty table in profile
  • 2007/11/1 5:40

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Quote:

maxxy wrote:
thanks catz

but it's not working

updated the system module and template_c cleared


lol okies let me go and have a look at the real solution then :-p

Be back in 10 mins or so :)

Login

Who's Online

317 user(s) are online (248 user(s) are browsing Support Forums)


Members: 0


Guests: 317


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