Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Make viewable by admin only

Quote Reply
Make viewable by admin only
On the links.html page I would like to make the hits/visits viewable only by me (the admin) when I login. How can I do this. I tried this, but it did not work
<%if isadmin%>(Added: <%Add_Date%> (Hits: <%Hits%> Rating: <%Rating%> Votes: <%Votes%>)<%endif%>

Any ideas?
Quote Reply
Re: [texhost] Make viewable by admin only In reply to
<%if Status eq 'Administrator'%>
Quote Reply
Re: [Paul] Make viewable by admin only In reply to
This did not work. I have a question. Does the Administrator need to be the user name of the admin? For example if my admin username was monkey, would i replace Adminsitrator with monkey in the code you posted? I have tried this, but it has not worked. Any ideas?
Quote Reply
Re: [texhost] Make viewable by admin only In reply to
The user doesn't need to be called that. All you need to do is have the 'status' set as 'Administrator'. This is done in Database > Users > Modify

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!