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" -->
<!-- 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" -->
<!-- ELSE -->
<!-- IF session.new_friends > "0" -->
<li><a href=".....................
Get the picture??? - MUCH more professional.