Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-10-30 18:10:37
- oldi
- Member
- Registered: 2005-10-14
- Posts: 87
insert flash file into TXP Red Train template
I am using red train template from thebombsite with some css changes. I am having problems inserting a flash file at the top of the page. The flash file will display at the first page with no problem. This is what is in my header form
<code>
<div id=“header”>
<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0” width=“420” height=“220” align=“right”>
<param name=“movie” value=“flash/004youth.swf” />
<param name=“quality” value=“high” /><param name=“BGCOLOR” value=”#AD0000” />
<embed src=“flash/004youth.swf” width=“420” height=“220” align=“right” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer” type=“application/x-shockwave-flash” bgcolor=”#AD0000”></embed>
</object>
</div></code>
But when i go to the article page, i will not get any flash files displaying at the top. The only thing that i can think is that the article section is based on the archive and not default page. However even the archive page contains the header form as it is shown below:
<code><body>
<div id=“container”>
<txp:output_form form=“header” />
<txp:output_form form=“sidebar” />
<div id=“content”></code>
So why do i get this problem.
The link is www.morava.f2s.com/youth
thanks
Offline
#2 2005-10-30 19:21:39
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: insert flash file into TXP Red Train template
I think the problem may lie here : value=“flash/004youth.swf”
The path you have set is relative to the current directory so it works at “http:// …/youth/flash/004youth.swl” but when you go down to the article page it expects to find “http:// … youth/article/flash/004youth.swf” which doesn’t exist. Try adding a leading / to the movie path and see if it helps.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#3 2005-10-30 20:42:07
- oldi
- Member
- Registered: 2005-10-14
- Posts: 87
Re: insert flash file into TXP Red Train template
i followed your advice in adding / before flash in
value =”/flash…
src=”/flash…
but when i do that i don’t get the flash file appearing even in the first page. You are right in suggesting that it might be something to do with the path cos i can see the browser trying to find the file, but what is the right path?
Is there something to do with the fact that in my .htaccess i have set my rewrite base to /youth/
here is the rest of .htaccess
<code>
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c>
RewriteEngine On RewriteBase /youth/ RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php</IfModule>
</code>
thanks
Offline
#4 2005-10-31 02:03:48
- oldi
- Member
- Registered: 2005-10-14
- Posts: 87
Re: insert flash file into TXP Red Train template
i sort it by putting an absolute path http://www.morav…… When i use relative path I would either have the flash file in the front page or in the articles.
Is there a way of including the code (see above) for swf in css rather than putting it in a form?
thanks
Last edited by oldi (2005-10-31 02:04:19)
Offline