You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

1

Friday, February 6th 2009, 6:19pm

WordPress integration

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.

www.wordpress.org

John Myrstad

Tuur

Master

Posts: 2,293

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message
  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

3

Friday, February 6th 2009, 8:52pm

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

Tuur

Master

Posts: 2,293

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Friday, February 6th 2009, 9:29pm

ah... sorry... i'm just dutch *g*

can't help you on this one...

cheers

tuur *thumbsup*

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

5

Saturday, February 7th 2009, 3:37am

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

Sam Rohn

Trainee

Posts: 95

Location: Brooklyn, New York

Occupation: Location Scout

  • Send private message

6

Saturday, February 7th 2009, 4:22pm

wordpress & panoramas

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
Sam Rohn :: 360° Panoramic Photography :: Location Scout :: New York City :: www.samrohn.com

PanoPress :: WordPress Plugin for 360° Panoramas in Flash & HTML5 :: www.panopress.org

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

7

Saturday, February 7th 2009, 8:49pm

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/

8

Monday, February 9th 2009, 11:20am

RE: WordPress integration

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.

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

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

9

Monday, February 9th 2009, 11:27am

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.

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

10

Tuesday, March 3rd 2009, 4:09pm

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/
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

11

Tuesday, March 3rd 2009, 4:36pm

If panomouswheelfix js isnt embeded you may use a plugin like WpHook http://wordpress.org/extend/plugins/wp-hooks/

Source code

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

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

12

Wednesday, March 4th 2009, 8:45am

Yes, it's included. Not in the header, but in the content, line 141 :

Source code

1
<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
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

13

Wednesday, March 4th 2009, 10:52am

You may try to use the swfobject from Klaus.

Quoted

Create 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

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

14

Wednesday, March 4th 2009, 10:52am

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

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

15

Wednesday, March 4th 2009, 11:08am

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
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

16

Wednesday, March 4th 2009, 6:28pm

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.

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

17

Monday, April 6th 2009, 2:22pm

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 ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

18

Thursday, April 9th 2009, 3:13am

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/explore-…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

19

Thursday, April 9th 2009, 5:24am

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

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

20

Thursday, April 9th 2009, 9:17am

Ok Graydon, you put this line :

Source code

1
swfkrpanomousewheel.registerObject("swf1");


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 ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Similar threads