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)
-   -   File_edit error (https://forum.x-cart.com/showthread.php?t=37770)

buddy 02-22-2008 12:59 AM

File_edit error
 
Hi,
i'm trying to modify /customer/categories.tpl

inserting a form in html but when i try to save i have this error: Forbidden
You don't have permission to access /eshop/admin/file_edit.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


If i insert a simple text i have no error.

Why that?

Thank you for your help

Dongan 02-22-2008 01:11 AM

Re: File_edit error
 
make sure that categories.tpl has writable permissions.

buddy 02-22-2008 01:24 AM

Re: File_edit error
 
categories.tpl has 666 permission.

If i try to insert a simple text it works, but if i try to edit the file with a form it doesn't :?

Dongan 02-22-2008 01:25 AM

Re: File_edit error
 
post the code you are trying to add to look at

buddy 02-22-2008 01:29 AM

Re: File_edit error
 
Here's the code:

<table width="115" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="115" background="img/tracking.gif">
<div align="CENTER">
<form action=http://domain.com/vas/sped_det_show.hsm method=get name="main" onSubmit="tracking()" target="pop">
<table width="96" border="0" cellpadding="0" cellspacing="0" align="center" onSubmit="tracking()" target="pop">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<div align="CENTER">
<input type="text" name="Nspediz" size="10">
<input type=hidden
value=sped_numspe_par.htm name=referer>
</div>
</td>
</tr>
<tr>
<td>
<div align="CENTER">
<input type="image" border="0" name="search" src="img/go.gif" width="29" height="15" align="middle" alt="Go">
</div>
</td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>

Thank you

Dongan 02-22-2008 01:36 AM

Re: File_edit error
 
nothing seems to be wrong. Have you tried uploading file via FTP?

buddy 02-22-2008 01:39 AM

Re: File_edit error
 
Via ftp is ok. It's really strange!

Thanks!

Dongan 02-22-2008 01:40 AM

Re: File_edit error
 
then, try the file permission with 755

buddy 02-22-2008 01:45 AM

Re: File_edit error
 
Just another question:

i have to add a js file (code for a pop up).

Where i can do it? Which file?

Thanks again

Holub 02-22-2008 03:46 AM

Re: File_edit error
 
Quote:

Originally Posted by buddy
i have to add a js file (code for a pop up).

Where i can do it? Which file?


You should include this code to meta.tpl, /customer/home.tpl (only for customer area), head.tpl(only for customer area)

{include file="main/include_js.tpl" src="YOUR_JS_FILE.js"}

Don't write path to your js file, only filename. JS file should be placed to skin directory.


All times are GMT -8. The time now is 11:59 PM.

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