| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
yet another modified LOGIN thread | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi folks.
I'm very stuck on a problem and need help ASAP since it is literally the only thing stopping us from opening the store. I modified the X-Cart default templates quite a bit, and have stripped it down to the bare essentials. Now, what I'm trying to do is simply put the Login form on its own page, instead of having it integrated into the main template. Then, at the footer (which is seen at all points in the site) where the four links are, there would be two more links depending on whether or not the user is logged in or not. If logged in, they would see: LOG OUT | PROFILE If not logged in, they would see: LOG IN | REGISTER LOG OUT would log them out (duh) and redirect them to the entry page. PROFILE would bring them to the profile edit. LOG IN would bring them to the seperate login page; and REGISTER would bring them to the registration page. What I pretty much want is exactly what another X-Cart user has here at the top-right (ignoring the standard login along the left side): http://www.billablunt.com/store/home.php The only catch is that I do NOT want to make use the help.php file (as one of the options I discovered does -- I'm trying to exclude all links to the HELP section since it is mostly a waste of space), so I suppose I'd prefer the login area to be a static page? Any help is very much appreciated! THANKS!
__________________
Version 4.0.15 |
|||||||
#2
|
|||||||
|
|||||||
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks Balinor!
I actually followed all of that and it seemed to work fine (the functionality), except that the actual login page I got was an empty white space in the body of my template. It seemed to import JUST the text fields and the two GO buttons with code (submit, and the forgot password buttons), but no other text at all, and no styles/colors (background, etc). I did some digging through the specific .tpl file it calls and had some success duplicating the login.tpl so that it looks like the normal login, but I was still not pleased with the GO buttons it called by default, and I was beginning to get pretty frustrated over the whole since the paths had to be altered (for v4.x.x, I suppose?), and I was still miles away from having the LOGIN/LOGOUT options added to the bottom bar WITHOUT using the help.php file, which is what the above method uses. Is there any other way, or am I missing something that is painfully obvious? Thanks!
__________________
Version 4.0.15 |
|||||||
#4
|
|||||||
|
|||||||
![]() I guess I'm confused as to what you are trying to achieve. If you follow that thread to the letter, it will work great. You can replace the go buttons simply by editing the .gif file in the skin1/images folder.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Ok, I'll have to give it another shot.
Last time I tried it, I got this (minus the 'Login' & 'Password' text): http://www.karajanx.com/store/myaccount.php It was just the two text entry boxes and the buttons on a white background. The one you're looking at now is pretty much the same method I found in another thread (just a different file name for the login.php), but it seems like the links were all messed up even though I followed the directions as closely as I can. I hacked it a bit, but it seems all of languages/variables ($login, $location) still aren't showing up, even though the exact code is still in the file (the text you see there is text I entered manually in the same location as the $ variables). Thanks again, and I'll let you know how it works out for me. I assume I can use this ( http://forum.x-cart.com/viewtopic.php?t=13425&highlight=show+login ) to create the LOGIN/REGISTER & LOGOUT/PROFILE links in the horizontal footer?
__________________
Version 4.0.15 |
|||||||
#6
|
|||||||
|
|||||||
![]() Oh, and I'm trying to acheive exactly what this guy has here: http://www.billablunt.com/store/home.php
...minus the authentication box on the left side of the screen, of course. Just the two link buttons at the top-right (which change depending on whether or not the user is logged in or not), and a seperate login page that has it's own breadcrumb indicator at the top.
__________________
Version 4.0.15 |
|||||||
#7
|
|||||||
|
|||||||
![]() If you use that my account mod, and then use this as your link in the header menu, it will work exactly like that:
Change 'Member Options' to whatever you want, and replace class="menu" with whatever class you have assigned to the links in the header. I use it for just about all the sites I do. You can see a live version of it here: http://www.bellalucce.com I used buttons instead of text, but you get the idea. The 'VIP Login' button changes if you are logged in, at which point the link will take you to the members area instead of the login screen. FYI, the guy on the site you referenced just checked the 'Use secure login form on a separate page (HTTPS):' setting in General Settings to get that login screen to show up on a different page.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
![]() Thanks for the help Balinor.
I also sent in a support ticket and was very pleased to see that the support team actually set up for me exactly what I wanted -- I just had to change a couple minor things in the template for customization. And thanks for explaining that simple little {if} statement; it's a very powerful little line of code that can be used in numerous instances (I've since been using it to change things like a cell's background color depending on whether the invoice is an email or on the site, and other things like that). So, all is resolved, and it all works perfectly now. (thanks again!)
__________________
Version 4.0.15 |
|||||||
|
|||
X-Cart forums © 2001-2020
|