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)
-   -   Can't modify subcategories.tpl successfully ...please help!! (https://forum.x-cart.com/showthread.php?t=3939)

lizlarry 08-09-2003 11:04 AM

Can't modify subcategories.tpl successfully ...please help!!
 
Whenever I try to edit subcategories.tpl (even a teeny tiny minor change)

for example change <font class=Text> to <font class=Textcat>

the following line in subcategories.tpl rewrites itself from:

{include file="dialog.tpl" title=$current_category.category_name|regex_replac e:"/.*\//":"" content=$smarty.capture.dialog extra="width=100%"}

to:

{include file="dialog.tpl" title=$current_category.category|regex_replace:"/.*//":"" content=$smarty.capture.dialog extra="width=100%"}


notice a backslash is missing from the rewritten version.

This results in the warning:

Warning: Unknown modifier '/' in /usr/www/users/bosmed/cart/xcart/Smarty-2.3.0/plugins/modifier.regex_replace.php on line 13


I try to put the backslash back into the code ...but I still get the ugly warning blasted all over my cart.

the only way to remove the warning is to restore the file ...then of course my changes are lost.

Help!!! BTW, I am trying to get thumbnails displaying on the subcategories page...feel free to send any ideas or brain waves...I could use them.

thanks for your help,
Liz

joshf 08-13-2003 04:21 AM

what program are you using to edit your .tpl? it sounds like maybe the program is rewriting the code for you automatically (i know dreamweaver can have a tendency to do that when 'applying source formatting')...

try editing it in notepad and see if that works...



jf

cjl108 08-24-2003 08:34 PM

same here
 
I am having the same problem...and I am editing it in the xcart editing window....

lizlarry 08-30-2003 05:27 AM

I had to abandon the xcart editing window for this one. I ended up using a text editor and putting back in the slash that xcart removes and then uploading the file using ftp.

this is some kind of a bug.

liz


All times are GMT -8. The time now is 08:48 AM.

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