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.

le="color: #000000"><?php <a href="" target="_blank"></a>


So you could enter that in smarty tag
le="color: #000000"><?php <{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:
le="color: #000000"><?php $xoopsTpl->assign('user_websiteurl', '<a href="'.$thisUser->getVar('url', 'E').'" target="_blank">'.$thisUser->getVar('url').'</a>');


And replace it with the following:

le="color: #000000"><?php $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:
le="color: #000000"><?php <{if $user_websiteurl}> <tr valign="top"> <td class="head"><{$lang_website}></td> <td class="even"><{$user_websiteurl}></td> </tr> <{/if}>


or try
le="color: #000000"><?php <{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

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits