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)
-   -   Site was Compiled on accident by Co-worker (https://forum.x-cart.com/showthread.php?t=40484)

toolexperts 06-13-2008 05:51 AM

Site was Compiled on accident by Co-worker
 
I am taking over our web development, our last person left a lot of messages on here. What I am trying to do is change some of the language variables, but the Webmaster mode is useless as somehow the templates were compiled, how can I edit the simple things like the language fields, I am sure they are embedded somewhere, is there a seperate file or do I need to edit the tpl's themselves and use an html format?

balinor 06-13-2008 05:54 AM

Re: Site was Compiled on accident by Co-worker
 
So this isn't Shawn anymore?

toolexperts 06-13-2008 05:57 AM

Re: Site was Compiled on accident by Co-worker
 
nope he has been moved to a lesser role.

balinor 06-13-2008 06:03 AM

Re: Site was Compiled on accident by Co-worker
 
Ok, I don't envy you, as there were a lot of...ummm...'edits' that Shawn made that I'm not sure are easily undone :( First step is to get the templates back to functional...since I've never compiled the templates (not sure why he did that) I really don't know how to undo it. Perhaps someone else can chime in?

toolexperts 06-13-2008 06:07 AM

Re: Site was Compiled on accident by Co-worker
 
All in all it doesn't look too bad it's just there are some areas such as the invoice and the other language variable areas that the text needs to look better in. He is a nice guy and dreamweaver seems to be his forte, I know just a little more and am going to take a crack, so if I ask alot of questions please don't think I am ignorant, just need to get a few things fixed

balinor 06-13-2008 06:22 AM

Re: Site was Compiled on accident by Co-worker
 
Oh definitely a nice guy, just think he was in a bit over his head, as DW doesn't work so well with Smarty and you can really botch up the {if} statements that way.

toolexperts 06-13-2008 06:29 AM

Re: Site was Compiled on accident by Co-worker
 
I think all of this issue stemmed from a server move on Monday, the cart started throwing some code that even I am unsure of and we were no longer able to edit the Product images, we can edit the Thumbnails however and it seems to be controlling both pics. On top of that the webmastermode would no longer edit the language variables, and our host had told us that we are on our own, even though some issues are apparently from that move. It was noted that the compilation would make the language variables embedded in the template, and I think that was confusing because it made it sound editable that way, but without knowing how to get into the said templates or knowing where to look it made them static or has apparently done so.

carpeperdiem 06-13-2008 07:03 AM

Re: Site was Compiled on accident by Co-worker
 
Shawn may have set a smarty variable to not compile

Check file:

/Smarty-2.6.xx/Smarty.class.php

find:

var $compile_check =

if it is false, make it true

toolexperts 06-13-2008 07:16 AM

Re: Site was Compiled on accident by Co-worker
 
it was set to true

Jon 06-13-2008 07:50 AM

Re: Site was Compiled on accident by Co-worker
 
Open your template files in the skin1 folder. Look for {$lng.X} where X is a variable name. If you don't see any entries in any of your files, then your languages were compiled into your template and you won't be able to edit them dynamically, and will instead have to edit the text in the .tpl files themselves.

toolexperts 06-13-2008 07:56 AM

Re: Site was Compiled on accident by Co-worker
 
Ok I see the lng there in the invoice template, and in the others i need to modify. So looks like it is still there, Now if only that webmaster mode worked, is there a backdoor?

balinor 06-13-2008 07:58 AM

Re: Site was Compiled on accident by Co-worker
 
You can edit them directly via the 'Languages' area in the admin.

toolexperts 06-13-2008 09:32 AM

Re: Site was Compiled on accident by Co-worker
 
Thanks, I see alot of html errors, I am working them out

toolexperts 06-16-2008 05:10 AM

Re: Site was Compiled on accident by Co-worker
 
I am now to the point I wish to tackle the language variable issue, I see stuff inputted already in these fields I am assuming with the languages module I just input the variable I wish to change, however, I have 2 questions, will this overwrite what is in there now? If not how can I do so, and do I need to use plain text or coding?

balinor 06-16-2008 06:30 AM

Re: Site was Compiled on accident by Co-worker
 
If your templates were compiled, you can no longer use the language variables to edit your text, you need to go into each template and edit the text manually :(

toolexperts 06-16-2008 06:32 AM

Re: Site was Compiled on accident by Co-worker
 
Padraic, I see the variables there, I have only seen a few that actually compiled and those are fixed.

balinor 06-16-2008 06:49 AM

Re: Site was Compiled on accident by Co-worker
 
Then you can either edit them directly with Webmaster Mode, or via the 'Languages' area of your admin.


All times are GMT -8. The time now is 02:46 AM.

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