Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Multiple login "boxes" for different usertypes on

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 05-22-2005, 11:35 PM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default Re: Multiple login "boxes" for different usertypes

Quote:
Originally Posted by RunsWithScissors
Better yet, is there any way to modify the code so all different usertypes can use the same login fields?

Hi RunsWithScissors, you already can, theirs no need to create new login boxes, you just need the one with x-cart. Through your admin panel you can make new membership levels such as premium, wholesale, retail, doctors, admin ect...and can assign customers to any membership level you want.
Reply With Quote
  #3  
Old 05-22-2005, 11:51 PM
 
RunsWithScissors RunsWithScissors is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 7
 

Default

Thanks for the reply! Perhaps you might be able to help me understand exactly how to do this... I need admins and customers both to be able to use the same login box... So...

I create a new admin profile, lets say for, "Dr. Bob". Dr. Bob is now considered an admin. I then modify Dr. Bob's profile to indicate his level as "fulfilment staff". Great! Now when Dr. Bob tries to login using the same Authbox as a regular customer (not an admin), he is unable to authenticate and proceed to the fulfilment back-office area.

What am I missing?

Thanks again for your reply.
__________________
RWS-

xcart v4.0.13
Reply With Quote
  #4  
Old 05-23-2005, 07:19 AM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default admin login page

Hi RunsWithScissors, admins unlike other membership levels need to sign in through the admin section so just point your admins to that page

example:
http://www.x-cart.com/demo/admin/home.php

I hope this helps.
Reply With Quote
  #5  
Old 05-23-2005, 08:26 AM
 
RunsWithScissors RunsWithScissors is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 7
 

Default

Sigh- I understand that your answer is the default / native way xcart auth's.... that is why I posted this question, because I want to know how to make it work per my description. If simply "pointing the user to the admin login page" was an option then I wouldn't be in here posting.

Nonetheless, thanks for your response. I know your intentions are good.

How about it, any gurus tell me if this is possible? I know there has to be a way, but not sure how... even some creative solution, like symlinking a "common" directory or something? lol

Thanks!
__________________
RWS-

xcart v4.0.13
Reply With Quote
  #6  
Old 05-24-2005, 10:23 AM
 
RunsWithScissors RunsWithScissors is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 7
 

Default

<bump>
__________________
RWS-

xcart v4.0.13
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:00 PM.

   

 
X-Cart forums © 2001-2020