Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Blogging Forum


You are currently viewing our Blogging Forum as a guest. Please register to participate.
Login



Reply
Custom WordPress Theme - Flash Not Showing On internal pages
Old 02-06-2009, 12:03 PM Custom WordPress Theme - Flash Not Showing On internal pages
motivatingfator's Avatar
Experienced Talker

Latest Blog Post:
We Could Lose Our Freedom
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
Trades: 0
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
motivatingfator is offline
Reply With Quote
View Public Profile Visit motivatingfator's homepage!
 
 
Register now for full access!
Old 02-06-2009, 09:07 PM Re: Custom WordPress Theme - Flash Not Showing On internal pages
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-07-2009, 12:57 PM Re: Custom WordPress Theme - Flash Not Showing On internal pages
motivatingfator's Avatar
Experienced Talker

Latest Blog Post:
We Could Lose Our Freedom
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
Trades: 0
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
motivatingfator is offline
Reply With Quote
View Public Profile Visit motivatingfator's homepage!
 
Old 02-07-2009, 03:49 PM Re: Custom WordPress Theme - Flash Not Showing On internal pages
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-07-2009, 05:14 PM Re: Custom WordPress Theme - Flash Not Showing On internal pages
motivatingfator's Avatar
Experienced Talker

Latest Blog Post:
We Could Lose Our Freedom
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
Trades: 0
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
motivatingfator is offline
Reply With Quote
View Public Profile Visit motivatingfator's homepage!
 
Old 02-07-2009, 06:34 PM Re: Custom WordPress Theme - Flash Not Showing On internal pages
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Custom WordPress Theme - Flash Not Showing On internal pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49747 seconds with 12 queries