Hi.
I`m working on a solution to embed Krpano automatically in WordPress blog/CMS system.
Are anyone aware of anyone else doing this ?
Will there be any changes in how Krpano is embeded with swfobject 2.1 in the near future.
John Myrstad
Hi.
I`m working on a solution to embed Krpano automatically in WordPress blog/CMS system.
Are anyone aware of anyone else doing this ?
Will there be any changes in how Krpano is embeded with swfobject 2.1 in the near future.
John Myrstad
Thanks for the link, but thats a wordpress.com site and the pano is hosted elsewhere I believe.
I`m talking about the wordpress.org solution, selfinstalled blog/cms software.
John Myrstad
ah... sorry... i'm just dutch
can't help you on this one...
cheers
tuur
I would not think that there would be any changes to the method of embedding from the krpano side... the format for embedding using swfobject 2.1 is based upon the swfobject developers here
I've not heard of anyone doing any work for simplifying the embed process in wordpress (or joomla for that matter).
ive been using wordpress to display my panos usung FPP, ive been looking into migrating to KRPano, seems it would be pretty much the same
for example, see my site here - http://www.samrohn.com
1st thing is to use absolute, complete url paths in XML, etc, relative url's seem to cause probs
i used to use kimli flash embed (see post 4 and after on this page)
ive got WP rigged up now to display all my panos using a single xml and php file, all i need do is upload a .mov & .jpg file for each pano, put the file name into a custom field and hit publish
currently, this involves 3 WP plugins -
More Fields lets you create a custom box w/ pre-defined custom field keys on your edit post page, i gave mine fields for pano file name, pano title, pan, tilt, zoom, one could do custom xml per pano too
enzymes lets you pull these custom field values right into your posts, which are passed as url vars to the single php file which embeds the panos
sniplets lets you include a predefined block of text inside a post,basically making a custom wp shortcode, like [snip pano1]
sniplet code looks something like this, you could also put this right into you post as-is, or in a WP template with a few changes
<a href="http://www.DOMAIN.com/path/to/panorama.php?pano={[ .pano-file ]}&pan={[ .pan ]}&tilt={[ .tilt ]}&zoom={[ .zoom ]}"><img src="http://www.DOMAIN.com/path/to/pano/{[ .pano-file ]}.jpg"/></a>
object/embed in pano.php looks something like this -
<embed src="http://www.DOMAIN.com/path/to/pano.swf?xml_file=http://www.DOMAIN.com/path/to/panorama.xml&panoName=http://www.DOMAIN.com/path/to/<?php echo $_GET['pano']; ?>&panHome=<?php echo $_GET['pan']; ?>&tiltHome=<?php echo $_GET['tilt']; ?>&zoomHome=<?php echo $_GET['zoom']; ?>" type="application/x-shockwave-flash" allowFullScreen="true"></embed>
i know, i should be using swfobject, just haven't had the time to get that all sorted
you could skip enzymes & sniplets by putting the code into you template files, and more fields is basically just for convenience -
as i said above, this is all for FPP, haven't tested it w/ KRP yet, but i'm sure it wouldn't be too difficult to adapt -
sam
Thanks Sam.
( We discussed WP/Panos in mail some time ago. )
PODS seems also promising, might be possible make PODS widget for Krpano.
http://pods.uproot.us/
Hi.
I`m working on a solution to embed Krpano automatically in WordPress blog/CMS system.
Are anyone aware of anyone else doing this ?
Will there be any changes in how Krpano is embeded with swfobject 2.1 in the near future.https://krpano.com/forum/wbb/www.wordpress.org
John Myrstad
Hi, sorry, I have no experiences with Wordpress,
but it's already possible to use SWFObject 2.1 with krpano,
a example is included in the current 1.0.7 download in the
folder: "examples/htmlembedding/swfobject21/"
I have also a written a "swfkrpanomousewheel.js" script for SWFObject 2.1,
this additional script fixes the Flashplayer mousewheel bugs on the most browsers/systems,
best regards,
Klaus
I know.
My point is to make the process automatic, upload the swf and xml, then publish by pushing a button in the editor and filling in necessary variables. No manual html/javascript editing.
Hi.
I'm also trying to put krPano on my wordpress blog : http://www.nicolasburtey.net
But I can't make the mousewheel working.
The thing is : I use kimli flash embed to import my pano in FPP, so the swfobject.js v2.1 is always in my header.
and I think you can't have two swfoject (v1.5 and 2.1) on the same page.
Klaus, in you swfobject 2.1 exemple, you put standard one ?
Exemple here : http://www.nicolasburtey.net/projection-pannini-chez-krpano/
If panomouswheelfix js isnt embeded you may use a plugin like WpHook http://wordpress.org/extend/plugins/wp-hooks/
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js?ver=2.1'></script>
You only seems to have the swfobject.js
Yes, it's included. Not in the header, but in the content, line 141 :
<p><script type="text/javascript" src="http://www.nicolasburtey.net/wp-content/uploads/panorama/swfobject/swfkrpanomousewheel.js"></script><br />
I wonder whether there is a conflit between the swfobject download from http://ajax.googleapis.com and the one provided by Klaus
You may try to use the swfobject from Klaus.
QuoteCreate a reference to SWFObject.js?
Decide whether or not you want to create a reference to SWFObject 2.1 in the HTML of your page templates. It is useful to turn this off if you already have SWFObject being referenced elsewhere in your code. Note that SWFObject 2.x is NOT compatible with SWFObject 1.x! KFE 2 requires SWFObject 2.x. Default is true
Where do you want to reference SWFObject.js from?
If you choose to create a reference to SWFObject 2.1, you have 2 options in terms of where you reference it from. Internal creates a link to the copy of SWFObject bundled with the plugin. Google Ajax Library creates a link to the copy of SWFObject hosted in the Google’s Hosted Ajax Library. The advantage of this is that the Javascript gets served with correct cache headers and it saves you a bit of bandwidth on your server. Default is Google Ajax Library
I would think that having two different swfobject's would be a problem. You can embed krpano swf using either one... just modify the structure to suit the one you are using... http://www.krpano.com/docu/html/#swfobject
the swfkrpanomousewheel.js is different depending on if you are using swfobject 1.5 or 2.1... so you need to pick which swfobject you are going to use... and then use the corresponding mouswheel fix script.
Graydon
I would think that having two different swfobject's would be a problem. You can embed krpano swf using either one... just modify the structure to suit the one you are using... http://www.krpano.com/docu/html/#swfobject
I saw something interessant in this page :
(NOTE - the 2.1 script code must be in the html head!)
Maybe this is the point... I'm going to test
I routinely use swfobject 2.1 without having it specified in the header. I use Joomla and a code insertion app (jumi)... but the concept should be the same for any site.
Another item I learned is that it's not good to have the js files called more than once... it didn't seem to affect the swfobject embedding... but the mousewheel fix "broke" when I inserted multiple panos on a page... and each one inserted the reference to the mousewheel fix.
Hello,
I've still problem with this files ... panomouswheelfix.js v2
Graydon, you have succesfully integrate this function with swfobjet 2.1 in a footer ?
I've not had any problems inserting panos into my joomla based site... without having the swfobject.js and swfkrpanomouswheelfix.js called in the "head" section of the html page.
If you were to look at the "source" for something like this page...
http://lake-houston.com/explore/explor…a-grill?start=2
You can see that I've got two panos on the same page... and that both *.js are referenced within the body of the html.
I'm not an expert in joomla... just figure out enough to get stuff to work like I want (usually)... so I probably shouldn't have said that it will work for any site... since I've assumed that whatever shows up in source view is what the browser sees.
I've never used WP and so I can't comment specifically for how to set something up in that use... but if you have a current link to where you are having a problem I'll try to look at it and provide some suggestions... but I can't make any promises to how good they will be
Graydon
I like this solution http://viewat.org/
I also like this layout http://www.virtualnorge.com/virtuelle_turer.php
and this http://www.360lanzarote.com/index.html its great to see so many creative people.
I also like this http://pixelcase.com.au/
I would like to see a viewat.org type of solution for krpano
This guy does some nice wordpress themes brian
Ok Graydon, you put this line :
just after the swfobject.embedSWF( ... )
But I can't do this, because I use Kimili Flash Embed to embed the pano ...
My new site is now online : http://www.nicolasburtey.net, Could you have a look ? Klaus, maybe ?
Don’t have an account yet? Register yourself now and be a part of our community!