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)
-   -   Anyone good at editing auth.tpl? (https://forum.x-cart.com/showthread.php?t=28192)

just wondering 01-20-2007 06:04 AM

Anyone good at editing auth.tpl? (Sorted)
 
We've made new Register and Login gifs for the site, which are quite big compared to the standard X-Cart ones or the ones from the Template. Firefox puts the Register button under the Login button, but annoyingly enough IE doesn't, which makes the right-hand-side 'bar' far too wide, and it looks daft.

I want it to appear like it does on Firefox. I also want both buttons and the Link 'Recover Password' in the centre of that 'bar'.

I've found out that it seems to be skin1/auth.tpl I have to edit to do these changes, but for the life of me can't see to get it to do it.

Also, on the SpeedBar, I'm wanting to have Register and Login buttons there. Register was easy enough, but I've noticed that Login uses Javascript - does that mean I'd have to have the login & Password text bars up there also?

Cheers.

just wondering 01-22-2007 06:27 AM

Re: Anyone good at editing auth.tpl?
 
*bump*

Any advice? Please? :(

just wondering 01-24-2007 02:33 AM

Re: Anyone good at editing auth.tpl?
 
No-one at all?

JWait 01-25-2007 04:01 PM

Re: Anyone good at editing auth.tpl?
 
It sounds like all you need to do is add a break "< br >" between where the two buttons are called.

Note; you will need to close in the spaces in the example

just wondering 01-26-2007 02:38 AM

Re: Anyone good at editing auth.tpl?
 
That's fine, but how do I make them appear in the centre of the Auth Login section?

JWait 01-26-2007 05:06 AM

Re: Anyone good at editing auth.tpl?
 
They are nested inside a table. Normal html editing should be able to get what you want
( < td width="100%" valign="top" align="center"> )

just wondering 01-26-2007 05:08 AM

Re: Anyone good at editing auth.tpl?
 
Ah, superb! Cheers! :D

Then do I put </td> at the end?

JWait 01-26-2007 05:12 AM

Re: Anyone good at editing auth.tpl?
 
It should already be there.. just add the align="center" part to the existing "< td "

just wondering 01-26-2007 05:13 AM

Re: Anyone good at editing auth.tpl?
 
Ah, right! I'm a bit thick when it comes to code...

You're a star, it worked a charm. I had to remove two spaces ( &nbsp; ) otherwise the Register button was slightly to the right.

Thank very much! :D

JWait 01-26-2007 05:19 AM

Re: Anyone good at editing auth.tpl?
 
The template (.TPL) files are all basic html. One template may open a table, another template may add something to it (which it does in this case, it adds to authbox.tpl I think), and another template may close the table. By using the "Webmaster" mode you should be able to determine which templates are being used.

JWait 01-26-2007 05:26 AM

Re: Anyone good at editing auth.tpl? (Sorted)
 
Quote:

Originally Posted by just wondering

Also, on the SpeedBar, I'm wanting to have Register and Login buttons there. Register was easy enough, but I've noticed that Login uses Javascript - does that mean I'd have to have the login & Password text bars up there also?

Cheers.


I just noticed this... the "username" and "password" fields will show up anytime you don't have "Use secure login form on a separate page (HTTPS):" checked under "General Settings", otherwise it will redirect to a seperate page for login...does this make sense?

just wondering 01-26-2007 06:28 AM

Re: Anyone good at editing auth.tpl?
 
Aye. I'll speak to the Boss about that - I personally think it's better to have the Login on the page there, but he calls the shots. :)

Cheers muchly!


All times are GMT -8. The time now is 08:22 PM.

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