Forums

[resolved] Flash header problems when permalinks are turned on (works only on homepage) (21 posts)

  1. owain182
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to convert someone's site to wordpress, so have set up wordpress install on my own server while I test it all out.
    I'm having problems with the flash header on the site.
    I've tried doing it manually as it was before, and also I have tried it with the Kimili flash embedder.
    Once everythings in place the header works fine on the homepage, but nothing loads on the other pages when permalinks are turned on.
    If I turn permalinks off, and have the default link structure the header works again.
    It's obviously some sort of path issue, but I have tried numerous different ways of setting it up which all end up with the same result.

    I'd rather not post the link up on here at the moment, but I would be more than grateful if someone wants the link to look at, or I can post any of the code/settings

    Any help would be much appreciated, I'm going mad here!

    Many thanks

    edit:

    I've tried saving the files (xml, swf, image folder) in various places too, and it only works on the homepage with permalinks on. I've tried the wordpress root folder, the actual site root, the theme folders, I've tried absolute links such as http://www.mywebsite.com/folder/folder/file.swf and just the 'file.swf' and it doesn't seem to make any difference.

  2. owain182
    Member
    Posted 2 years ago #

    OK I've tried a few different options, I've also moved the flash files into a specific 'flash' folder in the wordpress root ( ie. mysite.com/folder/wordpress/flash )
    This setup workis fine with the kimili flash embed as long as permalinks are off, once I try and use permalinks (/%postname%/)the homepage works but on every other page I get a blank space and 'movie not loaded'

    It's obviously a link issue somewhere, but I haven't used flash enough to know how it uses links. I have a swf file, an xml file with links to images, and an image folder (for the header image slideshow) there is also an fla file, but I'm not sure whether that's needed in this case?

    Would there be any links in the swf file itself? The XML has a relative link to the image folder, and then "image1.jpg", "image2.jpg" as links to the images inside the folder.

    Does anybody have any idea what I can try and change? Hopefully it should be something straightforward, as the permalinks seem to be causing the problems - but I can't seem to remedy it!

    Many thanks

  3. JPry
    Member
    Posted 2 years ago #

    Could you post the code snippet that brings in your flash content? It's probably enclosed in <embed> tags.

  4. owain182
    Member
    Posted 2 years ago #

    Using the kimil flash embed plug in, in the actual header file all I put is:

    [kml_flashembed movie="filename.swf" width="800" height="200"]

    If I view the page source, this is what it generates

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    			id="fm_filename_32062554"
    			class="flashmovie"
    			width="800"
    			height="200">
    	<param name="movie" value="filename.swf" />
    	<!--[if !IE]>-->
    	<object	type="application/x-shockwave-flash"
    			data="filename.swf"
    			name="fm_filename_32062554"
    			width="800"
    			height="200">
    	<!--<![endif]--> 
    
    	<!--[if !IE]>-->
    	</object>
    	<!--<![endif]-->
    </object>

    There's also these options in the settings page of the plug in
    http://kimili.com/images/121.png

    But I'm not sure whether any of them should be in the header code. As it is now, with the code above it works fine on the homepage and if I turn off permalinks it works on every page.

    Thanks!

  5. owain182
    Member
    Posted 2 years ago #

    sorry for the double post!

  6. JPry
    Member
    Posted 2 years ago #

    Looks like that code didn't have what I was looking for... One of the cons of having multiple ways to insert media.

    I did take a look at the plugin settings and the Kimili support site. Have you tried setting the "base" setting in the plugin settings?

    Let's say your flash video is located at http://www.mywebsite.com/folder/folder/flash.swf. You would want to set your base to /folder/folder, and then set your file to flash.swf.

    Does that work?

    Also, another question: Have you tried using the shortcode (the code in brackets) within a normal WordPress post to see if it works there?

  7. owain182
    Member
    Posted 2 years ago #

    I've tried a couple of different settings for the base

    as the wordpress site in a subfolder at the moment I used this for the base

    http://www.mywebsite.co.uk/client/wordpress/flash

    Inside the flash folder I then put the xml file, the images and the swf file

    The flash file is then 'file.swf'

    I don't know if the base is the right way to do it, and I also wasn't sure where it would automatically think the root was.

    I'll try embedding it into a post or a page now

    many thanks for your help

  8. owain182
    Member
    Posted 2 years ago #

    I've tried the shortcode for the same swf file.

    On the homepage it works fine, and shows up in the content

    In another page (with permalinks on) nothing comes up. If I press right click the flash menu says 'movie not loaded'

    It's frustrating as it's probably something really simple that needs changing, but I don't seem to know what else to try!

  9. JPry
    Member
    Posted 2 years ago #

    If you navigate to your homepage using the permalink, does the flash still show up on the homepage?

    Here's what I mean: You should have two addresses that both point to your homepage. One would be http://www.mywebsite.co.uk, and one would be http://www.mywebsite.co.uk/home (assuming your homepage is actually named "home"). Does the second version work as well as the first version?

  10. owain182
    Member
    Posted 2 years ago #

    Ah that's a good point. No it doesn't work that way

    the root page works, but the permalink to the home/root page doesn't work

    I very much appreciate your help with this! Thanks

  11. JPry
    Member
    Posted 2 years ago #

    In that case, it might be easier to leave permalinks on, and adjust your settings in two ways:

    1. Set the homepage to use the permalink version
    2. Adjust the location of your flash file to navigate up one more folder before drilling down to the exact file location. Something like ../folder/folder instead of /folder/folder.
  12. owain182
    Member
    Posted 2 years ago #

    Can I check what you mean about point 1. What do I need to change with regards to the homepage?

    As for 2, would that be in the 'base' setting? I've changed the base to ../flash/ (I don't think I need the /folder/wordpress/ before it )
    Or do I need to actually move/create a new folder?

    Thanks once again!

  13. JPry
    Member
    Posted 2 years ago #

    I will have to get back to you later with specifics, as I'll be away from my computer for the remainder of the day (if someone else doesn't give you the answers you need before then).

  14. owain182
    Member
    Posted 2 years ago #

    I've solved it! I'm not sure exactly how, but I tried a couple of different things and it now seems to be working.

    Many thanks for your help JPry, you definitely got me on the right track and pointed me in the right direction.

    I added a <base> tag to the head of the page, and changed the Kimili settings and it seems to have worked. I noticed that if I replaced the swf with a jpg it wouldn't work either, so there was a problem with the paths somewhere. Anyway the base tag seems to have solved it

    Thanks!

  15. JPry
    Member
    Posted 2 years ago #

    Glad I could help!

  16. owain182
    Member
    Posted 2 years ago #

    ok,
    I thought I had solved it, but it seems like maybe I haven't

    I've just checked it somewhere else using IE and the flash doesn't seem to work at all now!

    I'll have another play around, and see what I can do with regards to the IE issue but it definitely seems to be something to do with the base/paths

    Any other input would be much appreciated

  17. JPry
    Member
    Posted 2 years ago #

    IE always seems to cause problems...

    What version(s) of IE are you testing with?

  18. thisiswalder
    Member
    Posted 2 years ago #

    I have the same problem with using the kimli plugin with permalinks and I still can't fix it. It reads the flash perfect on every page with the default permalinks but when I turn the permalinks on the flash only read on the home/base page of the site. Could you go through how you got it to work before your IE problem. Much appreciated.

  19. amplidyne
    Member
    Posted 1 year ago #

    You're running into this issue because of relative paths.
    Add a base h ref in your header file just before </head> tag.

    <base href="http://www.yoursite.com/" />
    </head>

    This should fix your issue.

    Thanks,

  20. Stayu Pundechbuddhicha
    Member
    Posted 1 year ago #

    amplidyne, you are the "super star"
    You save my life, thanks : )

  21. ciphasublime
    Member
    Posted 1 year ago #

    Amplidyne You are the Man!!!
    spent 3hours trying to figure this out.
    use this code in your header

    <base href="<?php echo get_option('siteurl');?>" />

Topic Closed

This topic has been closed to new replies.

About this Topic