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

yet another modified LOGIN thread

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-07-2005, 10:02 PM
 
milkmit milkmit is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 9
 

Default yet another modified LOGIN thread

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
Reply With Quote
  #2  
Old 12-08-2005, 03:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

This is what you are looking for:

http://forum.x-cart.com/viewtopic.php?t=14069
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-08-2005, 07:45 AM
 
milkmit milkmit is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 9
 

Default

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
Reply With Quote
  #4  
Old 12-08-2005, 09:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #5  
Old 12-08-2005, 11:41 AM
 
milkmit milkmit is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 9
 

Default

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
Reply With Quote
  #6  
Old 12-08-2005, 11:44 AM
 
milkmit milkmit is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 9
 

Default

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
Reply With Quote
  #7  
Old 12-08-2005, 11:52 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #8  
Old 12-09-2005, 03:08 PM
 
milkmit milkmit is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 9
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:31 AM.

   

 
X-Cart forums © 2001-2020