Gossamer Forum
Home : Products : Gossamer Links : Discussions :

User Status?

Quote Reply
User Status?
Hello,

I would like to display some fields and hide others in the modify.cgi form based on if a user status = Administrator or not.

This is what I was using:

<%if User_Status eq 'Administrator'%>

Can someone one point this out to me please?
Quote Reply
Re: [nt6] User Status? In reply to
Put <%GT::Template::dump%> in the modify template, and see if there is a tag there referring to the user status... then you can work from there by making an 'if' statement...

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] User Status? In reply to
Thank you Andy, I tried that before requesting help.

The only Status reference found was Status = 0. I figured that was referring to the validated / nonvalidated status. Nothing mentioned that the user was an admin even though I was logged in as one when viewing the tag dump.
Quote Reply
Re: [nt6] User Status? In reply to
Maybe

<%if Status eq 'Administrator'%>
Quote Reply
Re: [Payooo] User Status? In reply to
Like I just said, I have Status=0. That is the only "status" I seem to be able to work with. I tried your

<%if Status eq 'Administrator'%> and it didn't work for me. Any other ideas?
Quote Reply
Re: [nt6] User Status? In reply to
You could try with

<%Links::init_user%>



<%if Status eq 'Administrator'%>

Something

<%endif%>
Quote Reply
Re: [nt6] User Status? In reply to
What does Status= show when you are logged in with Administrator status?

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] User Status? In reply to
In Reply To:
What does Status= show when you are logged in with Administrator status?


Status = 0