View Full Version : Flashpanorama and Wordpress ?
charlie
04-03-2008, 06:11 PM
Hi to all
I would like to know if some people succeeded to embed a flashpanorama in a Wordpress post / page and how they managed this.
I'd like to publish my panos on it with the flashpanorama navigation, hotspots plugin, etc
I spend hours to try to find any solutions.
Here is what i Did :
On a post I added the following code :
<script type="text/javascript" src="path to the /swfobject.js"></script>
<div id="flashcontent">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player</a> and a browser with JavaScript enabled.<br />Built on <a href="http://flashpanoramas.com/player/">Flash Panorama Player</a>.</div>
<script type="text/javascript">
var so = new SWFObject("path to the/panoname.swf", "pano", "550", "400", "9", "#003333");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
</script>
The 550/400 window opens but it says : loading failed
What i do not understand is why the direct path to my pano is OK : http://www. ..... /panoname.swf works fine and html is fine too!
If anybody could help me... it would be great.
Thx in advance.
Excuse my poor english but i'am French.
Charlie
Hi Charlie, there are three potential problems in your HTML code.
1. Take the </div> tag out from between "...Flash Panorama Player</a>.</div><script type...." and put it at the end, after </script>. The <div> or </div> tags withing the FPP javascript can cause display problems.
2. Your paths to swfobject.js and panoname.swf appear to be from a script example - "path to the" isn't likely to be a successful URL as it contains spaces. Check the actual relative location of your files otherwise FPP can't locate them. Try putting them all in the same folder to start with then you don't need to specify a path at all - just the actual file names.
3. Here's another version of your code with the corrections made (if all files are in the same folder).
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player</a> and a browser with JavaScript enabled.<br />Built on <a href="http://flashpanoramas.com/player/">Flash Panorama Player</a>.
<script type="text/javascript">
var so = new SWFObject("panoname.swf", "pano", "550", "400", "9", "#003333");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
</script></div>
charlie
04-04-2008, 07:23 AM
Hi Neil and thanks a lot for your answer,
I changed my code as you said and I put the correct path.
Unfortunately it is still not working.
Loading failed ...
Any idea would help me a lot.
Thanks to all.
Charlie
Sam Rohn
04-05-2008, 12:26 AM
to display FPP pano's in wordpress, use the Kimili Flash Embed (http://kimili.com/plugins/kml_flashembed) plugin for wordpress
make sure you use absolute URL's in your XML file like this
panoName = panoName = http://www.YOURDOMAIN.com/pano/images/pano/YOUR-PANO
layer_1 = http://www.YOURDOMAIN.com/pano/files/hotspots.swf
etc
make sure you specify an absolute URL to the XML file in the pano URL (which you will embed with kimili) like this -
http://www.YOURDOMAIN.com/pano/files/pano.swf?xml_file=http://www.YOURDOMAIN.com/pano/xml/YOUR-XML.xml
your final code in the WP page will look something like this -
[kml_flashembed movie="http://www.YOURDOMAIN.com/pano/files/pano.swf?xml_file=http://www.YOURDOMAIN.com/pano/xml/YOUR-XML.xml" height="400" width="640" allowfullscreen="true" /]
here's a working demo page - (updated a bit with nick's code below)
http://www.samrohn.com/tent-of-tomorrow-1964-worlds-fair/
sam
Nicolas Burtey
04-07-2008, 12:37 PM
Hello,
I use Kimili Flash embed too.
my code pour this post (http://www.nicolasburtey.net/blog/visite-virtuelle-du-desert-egyptien/) is :
[kml_flashembed movie="http://nicolasburtey.net/blog/wp-content/uploads/panoramas/preview_pano.swf?preview=http://nicolasburtey.net/blog/wp-content/uploads/panoramas/images/desert1_0.jpg" fvars="movie=http://nicolasburtey.net/blog/wp-content/uploads/panoramas/pano.swf ; xml_file=http://nicolasburtey.net/blog/wp-content/uploads/panoramas/common_desert.xml ; panoName=http://nicolasburtey.net/blog/wp-content/uploads/panoramas/images/desert1 ; panoType=cube0 ; pan=0 ; tilt=0" height="580" width="480" allowFullScreen="true" menu="true" fversion="9" useexpressinstall="true" xiredirecturl="http://www.nicolasburtey.net/blog/" alttext="{p}{strong}Pour voir les visites virtuelles du dйsert, vous devez avoir flash player v9. Vous pouvez le tйlйcharger {a href='http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&Lang=French' title='Tйlйcharger Flash Player pour voir la visite virtuelle'}sur le site de Adobe en cliquant ici{/a}.{/strong}{/p}{p}{img src='http://nicolasburtey.net/blog/wp-content/uploads/panoramas/images/egypte1_0.jpg' width=480 height=480 alt='Visite virtuelle du dйsert' /}{/p}" /]
It's more complicated because I use alternative texts and images if the user has not Flash. It's better for google too.
Sam Rohn
04-09-2008, 04:13 AM
thanks nic -
i was trying to figure out the preview pano function, got that sorted by studying this post (http://flashpanoramas.com/forum/showpost.php?p=5942&postcount=4), but i see i still have a way to go :)
any ideas about how to get preview images to show up in rss ?
sam
nikopol
04-09-2008, 06:54 PM
http://www.kureselfotograf.com fpp with wordpress :)
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.