![]() |
edit auth.tpl and news.tpl
Hi i am trying to edit the auth.tpl and news.tpl so as on the front end they are displayed with only a box with text "customer login" and "news" then if the customer requires these services they click on the box to be taken to the relative page, am i looking at the correct templates to do this.
|
Re: edit auth.tpl and news.tpl
I don't really follow what it is you are trying to achieve. These are two seperate sections and have nothing to do with one another, and both are complex.
The "auth" section deals with customer registration, customer login, and customer logout. If all you do is create a link to the "login" portion then what happens to the "logout" portion and the "registration" portion? The "news" section deals with newsletter display, newsletter subscription, and anti-spambot image verification (if enabled). What specifically do you want to happen when the customer clicks on "customer login"? What specifically do you want to happen when the customer clicks on "news"? |
Re: edit auth.tpl and news.tpl
OK what i am trying to do is tidy up and shorten the total length of the vertical column down the left hand side of my web site which at the moment contains various boxes including customer login and news, these two boxes take up quite a bit of room for example the Customer Login box has:
"Username" box, "Password" box,"Log in" link, "Register" link, "Recover password" link and "If java script disabled click here" link. What i would like to have is a box in the vertical column with the text "Customer Login" and only this so when the customer selects this box they are taken to the login page. |
Re: edit auth.tpl and news.tpl
The easiest method would be to require secure login. That would remove the "Username" box, "Password" box, and "Log in" link, replacing them with a button that says "secure login".
You can enable this in admin under "general settings" - "security options" Check "Use HTTPS for users' login and registration:" and "Use secure login form on a separate page (HTTPS):" and uncheck "Do not redirect customers from HTTPS to HTTP:" You can move the "Register" link, and "Recover password" link, perhaps to the secure_login.tpl, or keep them where they are. I usually leave it. I usually remove the "If java script disabled click here" link entirely and put a "noscript" warning that JavaScript must be enabled with a link to a static page that tells the customer how to enable it in the different browsers (good customer service). I put this in welcome_tpl right after {$lng.txt_welcome} Code:
<noscript> This makes it invisible if JavaScript is already enabled, and warns the customer they need to if it is not. A much better solution than allowing the customer to not use it, I think. OK, now that everything has been moved or taken care of, we have a "secure login" button and a "register" button. Once the user logs in however, the "login" button is going to want to change to "Username - You are logged in - "logout" button. You will have to check if this appears how and where you want it. You can edit it in authbox.tpl. This is just a guideline and you may want to do things differently. Some people just make a "login" button that takes them to h ttp://www.yourwebsite.com/error_message.php?login_incorrect but I think that looks very unprofessional, but it works. |
Re: edit auth.tpl and news.tpl
[quote=JWait]The easiest method would be to require secure login. That would remove the "Username" box, "Password" box, and "Log in" link, replacing them with a button that says "secure login".
You can enable this in admin under "general settings" - "security options" Check "Use HTTPS for users' login and registration:" and "Use secure login form on a separate page (HTTPS):" and uncheck "Do not redirect customers from HTTPS to HTTP:" Applied the above but now the link Secure login and Register have a broken link. Recover password still works. |
Re: edit auth.tpl and news.tpl
Do you have HTTPS? Try entering https://yourwebsite.com/ and see what happens/
You are going to need it. No customer in their right mind will buy from a site that doesn't have SSL. |
Re: edit auth.tpl and news.tpl
Did what you have said and all i get is internet explorer cannot display the web page.
Also i cannot log into my admin now, whaen i try i get the same answer as above, why? and how can i get access to my admin... |
Re: edit auth.tpl and news.tpl
It sounds like you do not have SSL. Who is your hosting company? Most at least give you a shared secure server. Look in the email they provided you when you signed up and try to access your site that way. Do you have Cpanel? PHPmyAdmin?
|
Re: edit auth.tpl and news.tpl
If you can access your site with phpmydamin...
Look in the xcart_config table and find "use_https_login" and change the "value" to N. In the same table find "use_secure_login_page" and change the value to N. You should be back to what you had before you changed the HTTPS settings. |
Re: edit auth.tpl and news.tpl
How do you access phpmyadmin
|
All times are GMT -8. The time now is 11:51 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.