Usergroup: Customer
Joined: Dec 23, 2005
Total Topics: 7
Total Posts: 24
Posted 03/01/08 - 07:13 PM:
#1
I was running version 4.1.30 and was prompted to upgrade to 4.1.32. I did and got the following message after upgrade was successful:
The following templates which you've customized have changes which you will want to apply in order to see new features and the like: javascriptheader.js, wrapper.tpl
How do I know or find these changes in order to apply them? Besides, I don't think I've ever made any changes to javascriptheader.js myself. I took a look at the source code and compare it to the standard version and found one line that was changed:
line 74 (my current version after upgrade): var tosend = "ajax.php?action=counthit" + escape("&") + "linkid=" + linkid;
line 74 (standard version): var tosend = "{DIRURL}/ajax.php?action=counthit" + escape("&") + "linkid=" + linkid;
Now which one should I load? and where can I find the new changes to wrapper.tpl?
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 03/01/08 - 09:57 PM:
#2
WebDesignGold.com wrote: I was running version 4.1.30 and was prompted to upgrade to 4.1.32. I did and got the following message after upgrade was successful:
The following templates which you've customized have changes which you will want to apply in order to see new features and the like: javascriptheader.js, wrapper.tpl
How do I know or find these changes in order to apply them?
The templates within that message were a link and if you clicked on them it would tell you what changes had been made since your previous version, giving you the line number, old code and what to replace it with.
WebDesignGold.com wrote: Besides, I don't think I've ever made any changes to javascriptheader.js myself. I took a look at the source code and compare it to the standard version and found one line that was changed:
line 74 (my current version after upgrade): var tosend = "ajax.php?action=counthit" + escape("&") + "linkid=" + linkid;
line 74 (standard version): var tosend = "{DIRURL}/ajax.php?action=counthit" + escape("&") + "linkid=" + linkid;
Now which one should I load? and where can I find the new changes to wrapper.tpl?
If you are not sure then you can always download the latest version from the members area and use those templates.
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 03/03/08 - 06:22 PM:
#3
The template changes are bug fixes, telling you that there were mistakes in templates that need to be fixed. It shouldn't be prompting for anything that you haven't customized, so go to your template page and check which templates are in the 'changed' color. If more are than you think should be: a) You may have uploaded the templates from MS Windows in binary mode, which causes them to end up the wrong size and be considered changed. b) You may not have applied a long series of previous changes since the version you started with, thus ending up with divergant templates.
babrees wrote: If you are not sure then you can always download the latest version from the members area and use those templates.
It's easier to click 'revert to standard' in the template editor.
Usergroup: Customer
Joined: Dec 23, 2005
Total Topics: 7
Total Posts: 24
Posted 03/04/08 - 01:39 PM:
#4
Thanks for your replies.
I can only click 'revert to standard' when I'm sure I didn't customize the template/file. As I didn't see the links in that message (usability issue here if links aren't easily distinguiched), there should be a place on the support site that lists changes line by line. But that's maybe asking too much when we've paid little
Usergroup: Customer
Joined: Dec 23, 2005
Total Topics: 7
Total Posts: 24
Posted 03/04/08 - 01:52 PM:
#5
I've spotted a difference between my customized wrapper.tpl and the standard version - besides the custom stuff - and which has to do with the javascriptheader.tpl.
My customized version, in head section: <script type="text/javascript" src="{DIRURL}/{TEMPLATESDIR}/javascrip theader.js"></script>
The standard version: <script type="text/javascript" src="{DIRURL}/javascriptheader.php"> ;</script>
Is it safe now to just copy over that line from the standard version to my customized one? and are there other changes that I'm not aware of?