Thanks for your reply. I've made some progress with the login page, but I am having trouble with the submit-login button. I tried your code and your suggestion using {include file="buttons/login_menu.tpl"} with my original code from auth.tpl. Tonight the link is working in IE7, but earlier today it didn't work in Safari or Firefox. Do you have any suggestions for me to password protect register.php?
Christine
Quote:
Originally Posted by robertswww
Hi Christine,
In the sample code you posted it is showing a link to: skin1/images/buttons/submit.gif
I believe you will find no such file in your 4.1.x version of X-Cart.
There is now a skin1/buttons/ folder and inside you will find submit.tpl (TPL not GIF).
In place of the submit button, you may be able to use:
{include file="buttons/login_menu.tpl"}
Also, compare the source code on one of your existing web site login pages.
The customer login page uses this template: customer/main/secure_login_form.tpl
And here is part of the Submit Button code from that template:
{if $js_enabled}
{include file="buttons/submit.tpl" href="javascript:document.secureform.submit()" js_to_href="Y"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_submit}
{/if}
</td>
</tr>
</form>
The above code shows how they are including the file: buttons/submit.tpl if Javascript is enabled, else include submit_wo_js.tpl
Both submit.tpl and login_menu.tpl then include file="buttons/button.tpl" to create the Submit button image.
One of those methods should work for you. Just work on a copy of the file and a test site (if you have one available).
Robert
|