Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%if Status eq 'Administrator'%> on detail page?

Quote Reply
<%if Status eq 'Administrator'%> on detail page?
Hi Andy,
do you know why this code does not work on detail pages?
Code:
<%if Status eq 'Administrator'%>

I mean, it works, but it works to good. Even Administrators can't see the protected part :-(
I wonder why, cause this code works on all my other templates...

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] <%if Status eq 'Administrator'%> on detail page? In reply to
Try <%user.Status%>

....and also try:

<%DUMP user%>

... so you can see what value is held in there. I can't see why user,Status wouldn't work =)

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!
Quote Reply
Re: [Andy] <%if Status eq 'Administrator'%> on detail page? In reply to
Strange
<%if Status eq 'Administrator'%> works on all templates except detail.html
but
<%if user.Status eq 'Administrator'%> works fine on all templates.

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] <%if Status eq 'Administrator'%> on detail page? In reply to
Now I'm trying to include the linkowner as well, but none of these three solutionswork?

Code:
<%if user.Status eq 'Administrator' or if Username eq $LinkOwner%>blablabla<%endif%>
Code:
<%if user.Status eq 'Administrator' or if $LinkOwner%>blablabla<%endif%>
Code:
<%if user.Status eq 'Administrator' or if LinkOwner%>blablabla<%endif%>

Do I miss something in the LinkOwner part?

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] <%if Status eq 'Administrator'%> on detail page? In reply to
It would be:

<%if user.Status eq 'Administrator' or LinkOwner%>blablabla<%endif%>

...but not sure exaclty what the condition is you are trying to do? The above would match is LinkOwner exists (you sure its not isLinkOwner you want?) ... OR the user status uis Administrator

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!
Quote Reply
Re: [Andy] <%if Status eq 'Administrator'%> on detail page? In reply to
The text should be visible for Administrator or LinkOwner

Now I tried
<%if user.Status eq 'Administrator' or isLinkOwner%>blablabla<%endif%>

and everthing is working fine SmileSmileSmile

Matthias
gpaed.de