• Resolved owain182

    (@owain182)


    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 https://www.mywebsite.com/folder/folder/file.swf and just the ‘file.swf’ and it doesn’t seem to make any difference.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter owain182

    (@owain182)

    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

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

    Thread Starter owain182

    (@owain182)

    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
    https://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!

    Thread Starter owain182

    (@owain182)

    sorry for the double post!

    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 https://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?

    Thread Starter owain182

    (@owain182)

    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

    https://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

    Thread Starter owain182

    (@owain182)

    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!

    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 https://www.mywebsite.co.uk, and one would be https://www.mywebsite.co.uk/home (assuming your homepage is actually named “home”). Does the second version work as well as the first version?

    Thread Starter owain182

    (@owain182)

    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

    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.
    Thread Starter owain182

    (@owain182)

    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!

    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).

    Thread Starter owain182

    (@owain182)

    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!

    Glad I could help!

    Thread Starter owain182

    (@owain182)

    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

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Flash header problems when permalinks are turned on (works only on homepage)’ is closed to new replies.