Thread: Login Link
View Single Post
  #59  
Old 02-03-2009, 12:56 PM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Login Link

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
__________________
X-cart 4.1.10
Reply With Quote