• I want to simply replace the header of my “Kubrick”-themed gallery with a .swf file. It seems I simply cannot replace and redirect the file information in the header.php file, as the flash file does not appear once updated. Can someone advise me on this? I’m looking for something simple, as I have no knowledge of PHP beyond located file names within the code. I greatly appreciate any help, thanks!

Viewing 15 replies - 1 through 15 (of 39 total)
  • Can you please post the link to the website with the flash code inserted in the header.php?

    Thread Starter jontherobot

    (@jontherobot)

    http://www.opticalgarden.com/wordpress

    I really don’t know how to do this. I’m going into the PHP, and wherever it says, “kubrickheader.jpg”, I’m replacing it with my file, “top_navigation.swf” and nothing appears after saving changes. The .swf file is saved into the same location as the “kubrickheader.jpg.”

    You can’t really just replace the file name to show the flash file.

    You actually need the whole of the <object> stuff there in your header part of the theme.

    Thread Starter jontherobot

    (@jontherobot)

    Can you please give me an example of what the line of code would look like, and where to place it? I’m guessing it will go into the header.php file.

    How did you get the flash object code? Did you create the flash yourself? If you did, then you probably have an option to get the HTML code for it through your program.

    Otherwise let me know and I will find an example and show you how to do it.

    Thread Starter jontherobot

    (@jontherobot)

    I created the Flash myself, so if I use:

    <object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&#8243; width=”760″ height=”200″ id=”top_navigation” align=”middle”>
    <param name=”allowScriptAccess” value=”sameDomain” />
    <param name=”movie” value=”top_navigation.swf” />
    <param name=”quality” value=”high” />
    <param name=”bgcolor” value=”#ffffff” />
    <embed src=”top_navigation.swf” quality=”high” bgcolor=”#ffffff” width=”760″ height=”200″ name=”top_navigation” align=”middle” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer&#8221; />
    </object>

    it should work? Where do I place it?

    Ok, here’s the code from a default theme header.php with your flash file incorporated into it.

    In all probability just sticking that into your header.php should work fine, otherwise just copy paste the part that is different from your header.php and that should work.

    You can get the code here: http://pastebin.com/482608

    If something is the problem post back and we cna work it out.

    Thread Starter jontherobot

    (@jontherobot)

    I tried, but nothing shows up, as you can see now:

    http://www.opticalgarden.com/wordpress

    However, if I right-click over the white box that is appearing, it says “movie not loaded,” and “about Macromedia Flash Player 8,” which means it knows that Flash is supposed to go there, but it’s no displaying the movie. Maybe I have to edit the information above it in the PHP?

    Thread Starter jontherobot

    (@jontherobot)

    One odd thing I’m noticing now, though not sure if it’s a clue to finding the answer, is in the Safari browser, when scrolling down I can see a sort of flicker of the Flash movie, as if it’s behind something. Firefox only displays a white box, same with IE.

    One thing i forgot to mention πŸ™

    You need to give the absolute URL for the flash movie in these places:

    <param name="movie" value="top_navigation.swf" />
    <embed src="top_navigation.swf" quality="high"

    Because with just filename, wp is looking at a different folder probably than where the file itself is located

    Thread Starter jontherobot

    (@jontherobot)

    Wow! Now it works. But it’s out of place. How can I adjust it’s location? Sorry for all the questions, but your assistance is excellent and I really appreciate it.

    (this will be my last request, then I can manage the rest from there) πŸ™‚

    In Opera, I see the Flash header which is more or less in the right place, but the content (the post) is way to the right outside of the content area. I’d suggest going through your code to see what may have been omitted.

    However, the Flash doesn’t seem to be animated.

    Bear in mind that Flash 8 is the latest version (I believe), so most people don’t have the Flash 8 player yet. If at all possible, I would save it as a lower version unless it’s absolutely necessary to have it as Flash 8.

    Love the photos, though. πŸ™‚

    In your header.php ..

    Find these 2 lines:

    #header { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; }
    #headerimg { margin: 7px 9px 0; height: 192px; width: 740px; }

    and comment them out. its probably just a problem of the width and alignment.

    Also if you can reduce the size of the flash to 740px, yours is 760 now, that’s what size of the header area is in the default theme.

    Thread Starter jontherobot

    (@jontherobot)

    Awesome advice, from the both of you! skulled, your techniques worked perfectly(at least from the Mac side, I’m not sure what PC users are seeing yet). Eliminating those 2 lines made it fit great. I don’t have Opera installed though Diane, if you don’t mind, could you tell me how it looks now? In Apple’s Safari, it seems to be 1 pixel off, but Safari is still a little buggy and 1 pixel is good enough as long as Firefox and IE work alright. Thanks for all your great help and advice!

    Thread Starter jontherobot

    (@jontherobot)

    Oh ya, and Diane, I resaved the Flash as version 6 this time, hopefully more users can view it. There’s actually no animation, I decided to use Flash for my site nav since I spent too much time figuring out how to make an html navigation and nothing worked. I learned a lot though from this experience, so I can probably go back and figure out how to integrate an html navigation now. I’ll stick to Flash and animate it when I have time. Thanks again for all the assistance!

Viewing 15 replies - 1 through 15 (of 39 total)
  • The topic ‘Flash header simple question’ is closed to new replies.