WebmasterSite.net

javascriptheader template not found

Version: 5.0.52
URL:

PrintPrint


javascriptheader template not found
hai
Forum Regular
Avatar

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 93
Total Posts: 335

Last Blog: CafePress Shops Free Shipping on $50 till 2/8

quote post #1
Posted 06/17/09 - 8:37 PM:

I've started adding the code below to my javascriptheader template so that the copyright line at the bottom of the page will automatically update. Once I add the code to the file though, I can no longer edit it from within the "manage templates" section of the admin panel. I get the following -

Error: The file ../templates/wsn/javascriptheader.tpl does not exist.


function copyright() {
today=new Date();
y0=today.getFullYear();
document.write(' ' + '© { LANG_COPYRIGHT_START_DATE }' + y0 + ' { LANG_COPYRIGHT_NAME }');
}


Is there something wrong with the code causing this error and I've just been lucky enough that it's worked?

Edited by hai on 06/17/09 - 8:41 PM. Reason: fix code so it shows correctly
High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7610
quote post #2
Posted 06/18/09 - 6:35 PM:

Bug. Fixed in 5.0.53 Beta 1.
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.