1

Topic: Clean up your ACCOUNT HOME and MEMBER PROFILE empty links

Hi,

I have noticed many places in vld software for improvements which I read about everywhere in the forum. This is a neat little thing I thought of fixing after it annoyed me. If you click on the 'friends' or 'favorites' link and you don't have any friends or faves, you get an ugly error message: "You don't have any friends...."

Well guess what? The same kind of thing happens with members!

How fix??

Header.tpl:

Under logged in area:
<!-- IF settings.enable_favorites -->
(display the favorites link)
ENDIF,

CHANGE THIS TO:

<!-- IF settings.enable_favorites AND {member_total_favorites} =="0" -->
&nbsp;
<!-- ELSE -->
<li>{anchor:url1="account/favorites/",url2="index.php?m=account_favorites",name="core|usermenu_favorites"}</li>

This code basically says, if you have NO favorites, DON'T display the favorites link!

Same with friends,

CHANGE THIS: <!-- IF settings.enable_friends ------

TO THIS:  <!-- IF settings.enable_friends AND {member_total_friends} =="0" -->
&nbsp;
<!-- ELSE -->
<!-- IF session.new_friends > "0" -->
    <li><a href=".....................

Get the picture???  - MUCH more professional.

2

Re: Clean up your ACCOUNT HOME and MEMBER PROFILE empty links

Well done

Not only am I a Staff member,  I'm also a Client

3

Re: Clean up your ACCOUNT HOME and MEMBER PROFILE empty links

http://www.webbsupport.eu/image/thumb_up.gif

Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals  Add CometChat to your vldPersonals site