|
Custom WordPress Theme - Flash Not Showing On internal pages
02-06-2009, 12:03 PM
|
Custom WordPress Theme - Flash Not Showing On internal pages
|
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
|
Hello Everyone,
I have created a WordPress theme and would like to included flash content inside the header. On the home page everything shows fine, however when one navigates past the home page, by clicking any of the page / post links, the flash content will not display.
Here is a link to the theme: http://www.lawfirmhost.net/spotora/ - index.php, single.php, archive.php, and page.php all make the same call for getting the header: <?php get_header(); ?> - I have not included any special "if home page" code handling, and as for functions.php - it is only used for the dynamic sidebar widgets.
I can't understand why the flash only shows on the home page. If anyone can assist with this issue, I greatly appreciate it.
__________________
Richard Morrison - Blogger / Consultant
E-Mail: Please login or register to view this content. Registration is FREE Web Address: Please login or register to view this content. Registration is FREE
|
|
|
|
02-06-2009, 09:07 PM
|
Re: Custom WordPress Theme - Flash Not Showing On internal pages
|
Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
|
the src attribute places it on the same level as the "home" page. Once you move down the (virtual) directory structure it doesn't exist in the same folder.
Reference it as root relative NOT document relative.
"/spotora/SpotoraHeaderMovie"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|
|
|
|
02-07-2009, 12:57 PM
|
Re: Custom WordPress Theme - Flash Not Showing On internal pages
|
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
|
Below is the embed code i'm using for the swf:
<param name="movie" value="<?php bloginfo('stylesheet_directory'); ?>/SpotoraHeaderMovie.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="<?php bloginfo('stylesheet_directory'); ?>/SpotoraHeaderMovie.swf" quality="high" bgcolor="#ffffff" width="660" height="240" name="SpotoraHeaderMovie" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
I have also tried replacing: <?php bloginfo('stylesheet_directory'); ?>/ with http://www.lawfirmhost.net/spotora/w...emes/Sportora/
Nothing seems to work.
__________________
Richard Morrison - Blogger / Consultant
E-Mail: Please login or register to view this content. Registration is FREE Web Address: Please login or register to view this content. Registration is FREE
|
|
|
|
02-07-2009, 03:49 PM
|
Re: Custom WordPress Theme - Flash Not Showing On internal pages
|
Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
|
the SWF is located at
http://www.lawfirmhost.net/spotora/S...eaderMovie.swf not in the same directory as the stylesheets.
so the root relative path is "/spotora/SpotoraHeaderMovie.swf" and will be case sensitive.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|
|
|
|
02-07-2009, 05:14 PM
|
Re: Custom WordPress Theme - Flash Not Showing On internal pages
|
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
|
First let me say, I appreciate your help with this matter. I am still unable to get this to work. I have src of the flash movie, Maybe I can provide you with FTP Access to this theme and you could take a look. If you are ok with this, I will send the ftp via pm.
__________________
Richard Morrison - Blogger / Consultant
E-Mail: Please login or register to view this content. Registration is FREE Web Address: Please login or register to view this content. Registration is FREE
|
|
|
|
02-07-2009, 06:34 PM
|
Re: Custom WordPress Theme - Flash Not Showing On internal pages
|
Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
|
change this code
Code:
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '660',
'height', '240',
'src', 'SpotoraHeaderMovie',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'SpotoraHeaderMovie',
'bgcolor', '#ffffff',
'name', 'SpotoraHeaderMovie',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'SpotoraHeaderMovie',
'salign', ''
); //end AC code
}
</script>
TO
Code:
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '660',
'height', '240',
'src', '/sotora/SpotoraHeaderMovie',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'SpotoraHeaderMovie',
'bgcolor', '#ffffff',
'name', 'SpotoraHeaderMovie',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'SpotoraHeaderMovie',
'salign', ''
); //end AC code
}
</script>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|
|
|
|
|
« Reply to Custom WordPress Theme - Flash Not Showing On internal pages
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|