Gossamer Forum
Home : Products : Gossamer Links : Discussions :

User Classes

Quote Reply
User Classes
I have an idea I am playing with for the moment- having a couple user "Classes". In "normal" LinkdSQL (anyone have a"Normal" install???), a user status is "Registered" "Not Validated" or "Administrator". I think I want to add a "Premiere" user- a user who has paid for upgraded status, with access to additional information. Adding "premiere" to the User Status Database was not a problem- been there, done that. What would be easiest is if there was a simple <%if User:Status eq Premier%> or some such command in the templetes... is there an easy way to do this? Thanks!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] User Classes In reply to
Hi,

I believe you should be able to do it with;

<%if user.Status eq "Premier"%>
...foo
<%endif%>

Hope that helps.

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] User Classes In reply to
Andy:

Perfect- just what I washoping for!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] User Classes In reply to
OK, it works... but I would like to modify it a bit. I need an "or" statement in there. I looked through the GT Templetes help file, and did not see "or" addressed... I tried:
<%if user.Status eq "Registered" or "Premier" or "Administrator"%>

and

<%if user.Status eq "Registered" || "Premier" || "Administrator"%>

which did not work. Any ideas?

dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] User Classes In reply to
<%if user.Status eq "Registered" or user.Status eq "Premier" or user.Status eq "Administrator"%>

Cool

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] User Classes In reply to
Andy: Cool- thanks!
dave

Big Cartoon DataBase
Big Comic Book DataBase