11
Catzwolf
Re: hide empty table in profile
  • 2007/11/1 6:01

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Quote:

catzwolf_ wrote:
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 :)


Okies I found out the reason for this. It seems that we have a bug or an annoyance for a better useage of the word.

If seems that the website address is being processed whether or not you enter a URL or not. Thus you get something like this in the html.

<a href="" target="_blank"></a>


So you could enter that in smarty tag
<{if $user_websiteurl != "" || $user_websiteurl != "<a href="" target="_blank"></a>"}>
        <
tr valign="top">
          <
td class="head"><{$lang_website}></td>
          <
td class="even"><{$user_websiteurl}></td>
        </
tr>
<{/if}>


Or you could fix this within the php?

Open userinfo.php, look for the following around line 99:
$xoopsTpl->assign('user_websiteurl''<a href="'.$thisUser->getVar('url''E').'" target="_blank">'.$thisUser->getVar('url').'</a>');


And replace it with the following:

$websiteUrl $thisUser->getVar('url''E') ? '<a href="'.$thisUser->getVar('url''E').'" target="_blank">'.$thisUser->getVar('url').'</a>' '';
$xoopsTpl->assign('user_websiteurl'$websiteUrl);


And then use the smarty I gave you previous:
<{if $user_websiteurl}>
        <
tr valign="top">
          <
td class="head"><{$lang_website}></td>
          <
td class="even"><{$user_websiteurl}></td>
        </
tr>
<{/if}>


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


hope that helps

12
maxxy
Re: hide empty table in profile
  • 2007/11/1 6:22

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


catz sorry to tell you that it seems none of the solution above works

this really should be fix in the next core version

Login

Who's Online

238 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

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

Latest GitHub Commits