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
|
Source code
|
1
|
<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 -
|
Source code
|
1
|
<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