View Single Post
  #1  
Old 05-22-2005, 03:19 PM
 
RunsWithScissors RunsWithScissors is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 7
 

Default Multiple login "boxes" for different usertypes on

Hi all,

I am hoping someone might have a solution for this. I need to have a static page that displays three different login options, all in the same page.

Generic Example:

Registered members
------------------------
Name___________
Password________


Doctors
-------------
Name_________
Password_______


Admins
-----------
Name_________
Password________


I have been successful in getting everything done just how I want, except in each table I have the auth / authbox code that only seems to associate itself for customers, *not* admins or fulfilment staff, etc.

as follows:

Code:
{if $login eq "" } { include file="auth.tpl" } {/if} {if $login eq "" } { include file="news.tpl" } {else} { include file="authbox.tpl" } {/if} {if $login eq "" } { include file="auth.tpl" } {/if} {if $login eq "" } { include file="news.tpl" } {else} { include file="authbox.tpl" } {/if} {if $login eq "" } { include file="auth.tpl" } {/if} {if $login eq "" } { include file="news.tpl" } {else} { include file="authbox.tpl" } {/if}

How do I alter this code so each "chunk" can be assigned to allow a different usertype, yet still play nicely with each other on the same static page?

Better yet, is there any way to modify the code so all different usertypes can use the same login fields?

Hopefully this was clear enough to understand. I have been looking through the forums using the search function for the last 3 hours and have no success finding the solution to this. If I missed something, I apologize and would love to be pointed to the post that helps me figure out how to do this.

Anyone? Gurus (PhilJ, Balinor, Shan) ?

Thanks in advance-
__________________
RWS-

xcart v4.0.13
Reply With Quote