[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] user login dealer test...
At 11:49 AM 8/8/2002 -0400, you wrote:
>I want to be able to test and see if a user is logged in as a "dealer" or not.
>
>I have the dealer prices and everything all set up great, but i want to be
>able to test and display different messages in my pages like this:
>
>[if data userdb::dealer::[username] =~ /1/i]
> dealer html stuff...
>[else]
> regular user html stuff...
>[/else]
>[/if]
>
>but it doesn't seem to work.
>
>
>when I test product groups like this:
>
>[if data products::group_field::[item-code] =~ /name_of_group/i]
>
>it works fine, I guess I need to find the equivelent of [item-code] for
>the userdb.
>
>but maybe there is a more secure way to test this?
>
>Thanks
>
>rick
For Foundation, [if scratch dealer] works fine, but your code was really
close as well:
[if data userdb::dealer::[value mv_username] =~ /1/]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Dan Browning, Kavod Technologies <db@kavod.com>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Common sense is instinct, and enough of it is genius.
-- Josh Billings