Hi Linda,
Could you please clarify what I need to do in order to have the flash header run once on entering the site. Basically I have added the following to the tpl_header.php - which workd great:
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"
> <script type="text/javascript" src="includes/templates/handbag/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/handbag/images/flash/header.swf", "header", "800", "125", "8", "#000000");
so.addParam("loop", "false");
so.write("flashcontent");
</script>
I am currently editing the init_special_funcs.php file as specified in your post but I'm a little puzzled. Do I basically just need to edit the file so it reads:
if (!isset($_SESSION['updateExpirations']) || $_SESSION['updateExpirations'] !== true) {
$_SESSION['run_flash'] = true;
Then do I add the following lines to the tpl_header.php above the flash entry:
if ($_SESSION['run_flash'] == true) {
$_SESSION['run_flash'] = false;
// do flash stuff
}
I've tried the above but it just shows 'if ($_SESSION['run_flash'] == true) { $_SESSION['run_flash'] = false; // do flash stuff }' above the flash header.
Any advice you can give me on this would be greatly appreciated :)
Thanks,
Q