Page 1 of 1

editing header.txt with javascript problem

Posted: Thu Nov 26, 2009 7:39 pm
by alete
Script URL: http://www.alete.com.ar/guestbook/gbook.php
Version of script: 1.7
Hosting company: 000webhost.com
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: header

Write your message below: ok, thanks XD

Hi there everyone, i'm trying to add some code on the header but there is a .swf embedded that uses javascript, and is not working at all. actually don't see nothing on the header. May you help me?

The code I want to add: (I know i got to copy only from <head> to </head> but I show you all just in case.)(and know too that i got to change the reffers from relative to absolute)


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>GalerĂ­a de Fotos</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/sw ... "></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "/galeria/gallery.xml";
var params = {};
params.allowfullscreen = true;
params.allowscriptaccess = "always";
params.bgcolor = "222222";
swfobject.embedSWF("/galeria/simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
</script>

<style type="text/css" media="screen">
html, body { height:100%; }
body {
margin:0;
padding:0;
overflow:auto;
background-color: #222;
color:#666;
font-family:sans-serif;
font-size:20px;
}
a {
color:#ff0000;
}
</style>

</head><body><div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://get.adobe.com/flashplayer/">Get Flash</a></div></body>
</html>





PS: I'm sorry for my bad english, I'm from Argentina.

Thanks!

Posted: Fri Nov 27, 2009 1:47 pm
by Klemen
Unfortunately I can't help troubleshoot third party code, but for what it's worth you should paste any headers/styles before the </head> tag. And you should only have one "Content-Type" meta tag, not two.

Posted: Fri Nov 27, 2009 6:52 pm
by Henrie
I think alete pasted all the code in the header.txt file.
But as Klemen already pointed out it should be placed in the <head> ... </head> section.
To do this paste the code that belongs in the <head> ... </head> section in the head section of the file overall_header.php which can be found in the folder templates\default\

I hope this helps.

Greetings,
Henrie