X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Multiple login "boxes" for different usertypes on (https://forum.x-cart.com/showthread.php?t=14127)

RunsWithScissors 05-22-2005 03:19 PM

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) ? :o

Thanks in advance-
:)

snorocket 05-22-2005 11:35 PM

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.

RunsWithScissors 05-22-2005 11:51 PM

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? :lol:

Thanks again for your reply.

snorocket 05-23-2005 07:19 AM

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.

RunsWithScissors 05-23-2005 08:26 AM

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. :wink:

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 :twisted:

Thanks!

RunsWithScissors 05-24-2005 10:23 AM

<bump>


All times are GMT -8. The time now is 11:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.