WebmasterSite.net

Register | Forgot Password

javascriptheader template not found

Version: 5.0.52
printPrint


javascriptheader template not found
hai
Forum Regular
Avatar

Usergroup: Customer
Joined: Apr 03, 2007

Total Topics: 78
Total Posts: 291
Posted 06/17/09 - 08:37 PM:
quote post
#1
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 - 08: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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California

Total Topics: 64
Total Posts: 7217
Posted 06/18/09 - 06:35 PM:
quote post
#2
Bug. Fixed in 5.0.53 Beta 1.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


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

WSN Links WSN Gallery WSN Knowledge Base WSN Forum WSN Classifieds WSN Directory WSN Software Directory