11
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