Adding Flash in my header instead of jpf images

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Adding Flash in my header instead of jpf images
sound
CZ Super Newbie
sound has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Nov 22, 2004
0.01 posts per day
Posts: 45
Points: 2,923
   
Hey folks,
I've tryed one or two ideas from the posts here, but didn't suceed,
Also downloaded an old flashbanners version 2 but i'm using php--nuke 7.4
Can someone tell me how i add my flash to the header instead of a gif or jpg?
This would be a great achievment, thanks in advance,
Later



Back to top Reply with quote
#2   re: Adding Flash in my header instead of jpf images
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
To replace a .jpg or .gif image with a Flash movie, all you have to do is create the movie the same size as the image that you're replacing. Publish the movie so that you get the HTML code for the movie. It will look something like this:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=6,0,0,0"
ID=468x60-6 WIDTH=XXX HEIGHT=YYY>
<PARAM NAME=movie VALUE="FLASH.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="FLASH.swf" quality=high bgcolor=#FFFFFF  WIDTH=XXX HEIGHT=YYY TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>


In your header, look for the image that you want to replace. It will look something like this:
<img src="IMAGE.GIF" width="XXX" height="YYY" alt="" border="0">


Replace the HTML code for the image with the HTML code for your movie. As long as the sizes are the same, you should have no problems with the movie breaking your layout. If you want to make the movie a different size than the logo in your header, you may have to rewrite the table codes to accommodate the Flash movie.


Back to top Reply with quote
#3   re: Adding Flash in my header instead of jpf images
sound
CZ Super Newbie
sound has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Nov 22, 2004
0.01 posts per day
Posts: 45
Points: 2,923
   
Thanks Kelly,
I did the following and got an error, i'll just switch back the code for now.

I made my flash movie the same sizes as the jpg logo,
Uploaded the html and the swf to themes/Charcoal2/forums/images/
Located logo.jpg in my themes/Charcoal2/theme.php and selected the code below

<img src=\"themes/Charcoal2/forums/images/logo.jpg\" alt=\"\" height=\"58\" width=\"349\" border=\"0\">

And replaced that code with my flash movie's html code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"
id="logo" width="349" height="58">
<param name="movie" value="logo.swf">
<param name="bgcolor" value="#505050">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
width="349" height="58"
name="logo" src="http://www.gs-world.net/php/themes/Charcoal2/forums/images/logo.swf"
bgcolor="#505050" quality="high"
swLiveConnect="true" allowScriptAccess="samedomain"
></embed>
</object>

But on viewing the home page i saw this error.

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/gsworld/public_html/php/themes/Charcoal2/theme.php on line 196

I switched back to the origional code for now.
later thanks for your time.



Back to top Reply with quote
#4   re: Adding Flash in my header instead of jpf images
sound
CZ Super Newbie
sound has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Nov 22, 2004
0.01 posts per day
Posts: 45
Points: 2,923
   


In your header

I'm editing the wrong code or something
? icon_eek.gif



Back to top Reply with quote
#5   re: Adding Flash in my header instead of jpf images
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
OK yea, the header info for Charcoal2 is in theme.php, so you're in the right place.

What you need to do is escape the quotation marks around your values. Try replacing your image tag with this:

<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0\"
id=\"logo\" width=\"349\" height=\"58\">
<param name=\"movie\" value=\"logo.swf\">
<param name=\"bgcolor\" value=\"#505050\">
<param name=\"quality\" value=\"high\">
<param name=\"allowscriptaccess\" value=\"samedomain\">
<embed type=\"application/x-shockwave-flash\"
pluginspage=\"http://www.macromedia.com/go/getflashplayer\"
width=\"349\" height=\"58\"
name=\"logo\" src=\"http://www.gs-world.net/php/themes/Charcoal2/forums/images/logo.swf\"
bgcolor=\"#505050\" quality=\"high\"
swLiveConnect=\"true\" allowScriptAccess=\"samedomain\"
></embed>
</object>



Back to top Reply with quote
#6   re: Adding Flash in my header instead of jpf images
sound
CZ Super Newbie
sound has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Nov 22, 2004
0.01 posts per day
Posts: 45
Points: 2,923
   
Sorry again, I'm just excited to have this workin,
This is the only code i have changed so far:
<img src=\"themes/Charcoal2/forums/images/logo.jpg\" alt=\"\" height=\"58\" width=\"349\" border=\"0\">

But I get the same error when I try to view it in my theme, i.e. Charcoal2
I can't figure it out. I used the above code you sugested this time.
Maybe I shouldshow you the entire theme.php? i'll add that below..

Ok this is my theme.php for my Charcoal2 theme:

It won't allow me to put a certin html tag so i'll post a lin kto the rar file i made of the theme.php k?

[ Register or login to view links on this board.]



Back to top Reply with quote
#7   re: Adding Flash in my header instead of jpf images
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
Try it again please.

Replace this code:
<img src=\"themes/Charcoal2/forums/images/logo.jpg\" alt=\"\" height=\"58\" width=\"349\" border=\"0\">


with the code I gave you above. Be careful not to get anything other than the image tag.

If you still get an error, post the error and line number back here please.


Back to top Reply with quote
#8   re: Adding Flash in my header instead of jpf images
sound
CZ Super Newbie
sound has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Nov 22, 2004
0.01 posts per day
Posts: 45
Points: 2,923
   
Almost got it i think,
I have no error this time, but on loading my home page,
I can see the area where the flash should load, but it hasn't loaded properly:
Look [ Register or login to view links on this board.]



Back to top Reply with quote
#9   re: Adding Flash in my header instead of jpf images
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
OK, check to make sure the path listed in the Flash code matches the path to the .swf file on your server. There are two places you need to check it.



Back to top Reply with quote
#10   re: Adding Flash in my header instead of jpf images
sound
CZ Super Newbie
sound has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Nov 22, 2004
0.01 posts per day
Posts: 45
Points: 2,923
   
I can't figure it out,
The html code for my logo flash has this address:
themes/Charcoal2/forums/images/logo.swf

And the code in the themes/Charcoal2/themes/theme.php has \ in the address:
src=\"http://www.gs-world.net/php/themes/Charcoal2/forums/images/logo.swf\"
But that how it's supose to be.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum