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.

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

21

Saturday, April 11th 2009, 5:57am

I looked at kimili and it's interesting.

There should be a way to modify the kimili php code so that the swfkrpanomousewheel.registerObject is inserted at the correct point with the applicable "name" used.

Unfortunately I'm not well versed in php... and don't have a wp site to play around with it.

Your site is interesting... I can't read any of it... but it's interesting. *smile*

One question - the main page uses a considerable amount of custom javascript coding... which I would normally assume to be done by hand... could you not just hand code the pano in versus using kimili? I understand that kimili makes it simpler (much simpler)... and that's why I use something similar with jumi... I'm asking just to know if there would be other reasons.

The only other suggestion I have is to look at the editor that you have and see if it supports customized buttons / functions that insert custom code snippets. If so, then you could "program" a button to insert your desired code block and then edit a few things in the standard code block.

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

22

Monday, April 13th 2009, 12:42pm

Hi Graydon,

Thanks for your post.

There is some javascript, but most of them are something like copy and paste from tutarials :-) I'm learning slowly this difficult langage (for me anyway)

I could modify Kimili Flash embed, but I don't think this will change many things. And It'll become very boring for upgrade, that's why I try to understand why it's not working.
I'm sure this is a small thing ... But boring thing :

I can select the name of the div in Kimili Flash Embed, so I've put "krpanoaccueil"

And I've put the same name in the swfkrpanomousewheel.registerObject function ...
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

23

Wednesday, April 15th 2009, 7:59am

Well I know you didn't wanted to modify the php of the pluging but i modifed and it worked perfectly. not the best solution, but considering is just 2 lines of code i think its worth it :)

here is what you need to do if you want:

on kml_flashembed.php:
Find

Source code

1
2
3
4
5
6
7
8
9
// Queue SWFObject
		if ( get_option('kml_flashembed_reference_swfobject') == '1') {
			if ( get_option('kml_flashembed_swfobject_source') == '0' ) {
				wp_enqueue_script( 'swfobject', 'http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js', array(), '2.1' );
				} else {
				wp_enqueue_script( 'swfobject', plugins_url('/kimili-flash-embed/js/swfobject.js'), array(), '2.1' );
			}
			}
	}

and add the line in red:

Source code

1
2
3
4
5
6
7
8
9
10
// Queue SWFObject
		if ( get_option('kml_flashembed_reference_swfobject') == '1') {
			if ( get_option('kml_flashembed_swfobject_source') == '0' ) {
				wp_enqueue_script( 'swfobject', 'http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js', array(), '2.1' );
				} else {
				wp_enqueue_script( 'swfobject', plugins_url('/kimili-flash-embed/js/swfobject.js'), array(), '2.1' );
			}
			wp_enqueue_script( 'swfkrpanomousewheel', plugins_url('/kimili-flash-embed/js/swfkrpanomousewheel.js'), array(), '2.1' );
		}
	}


find

Source code

1
2
3
4
		$out[]		= '		} catch(e) {}';
		$out[]		= '	}())';
		$out[]		= '</script>';
		$out[]		= '';


add the line in red

Source code

1
2
3
4
5
		$out[]		= '		} catch(e) {}';
		$out[]		= '	}())';
		$out[]    = 'swfkrpanomousewheel.registerObject("' . $curr['fid'] . '");';
		$out[]		= '</script>';
		$out[]		= '';


of course you need to upload the swfkrpanomousewheel.js to the plugin/js folder.

you can see this working on http://www.mundopano.com

EDIT: well it seems the code doesn't show colors :P anyways you can detec what lines are inserted

*g*

Regards

This post has been edited 1 times, last edit by "Shanti" (Apr 15th 2009, 8:10am)


nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

24

Wednesday, April 15th 2009, 12:20pm

Hi Shanti,

Thanks for sharing your code.

I've updated my kml_flashembed.php to make the test ...

Unfortunately, it's still not working :-/

I really don't understand what's going wrong !

I've triple check, I use the good version of swfkrpanomousewheel, isn't it ?

Klaus ? Could you have a look pleaaassse ! *confused*
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

25

Wednesday, April 15th 2009, 7:50pm

Nelk:

3 things i saw on your site:

first:
you have swfkrpanomousewheel.js before the swfobject which trows the errors below, it did it also with me, this means you didn't modified the kml_flashembed.php as I posted, re-check this since it seems to be important.


second JS errors:

Source code

1
2
3
4
5
6
7
8
9
10
swfobject is not defined
swfkrpanomousewheel()()swfkrpan...ewheel.js (line 37)
swfkrpanomousewheel.js()()swfkrpan...ewheel.js (line 36)
[Break on this error] if( !swfobject )

swfkrpan...ewheel.js (line 37)
swfkrpanomousewheel is undefined

(?)()www.nico...urtey.net (line 52)
[Break on this error] swfkrpanomousewheel.registerObject("krpanoaccueil");


third: why not use the SWFobject from google ? kml supports it, its the one I am using and it works perfectly, go into options and select the one from google, see if that makes a difference.

also, make sure you are using the right version of swfkrpanomousewheel.js (2.1)

if you need I will send you my files, and see if that works :)

Regards

26

Wednesday, April 15th 2009, 8:41pm

Klaus ? Could you have a look pleaaassse ! *confused*
Hi, sorry, I have no experiences with "kimili" or Wordpress,
but can you post a link, that could help to see the problem

best regards,
Klaus

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

27

Thursday, April 16th 2009, 8:43am

Hi,

Klaus, The link is here : http://www.nicolasburtey.net

Shanti, you were completly right, I've called the swfkrpanomousewheel before SWF Object.

Now, it should be correct... but I've still the problem *unsure*

I've update my kimili-flash-embed.php, and now it should be like yours.

I try both method for publishing (dynamic and static), none are working.

Shanti, I saw you use the static publishing method. If inside your Kimili bracket, you put

Source code

1
PUBLISHMETHOD="dynamic"
is it still working ?

And I saw you put this line twice in your kimili flash embed

Source code

1
$out[]    = 'swfkrpanomousewheel.registerObject("' . $curr['fid'] . '");';


But the second one is slighty difference from the first. I think you did'nt put

Source code

1
$curr['fid']
but

Source code

1
$curr['id']
Am I Right ?


Quoted

third: why not use the SWFobject from google ? kml supports it, its the one I am using and it works perfectly, go into options and select the one from google, see if that makes a difference.


I try with the javascript from google, it doesn't change anything.

I want to use a file from my server because I want to put all the javascript into one file, if possible à the bottom of the page. The idea is to have a *quick* loading home-page ... (Yes, I know, using a virtual tour on my homepage isn't the better idea to have a fast loading page ... anyway, that's another question :-) )
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

28

Thursday, April 16th 2009, 8:58am

they are both correct, since dynamic uses FID and statict uses ID

I did a few more changes for the dynamic and the statict part.

I am attaching the .php file :)
Shanti has attached the following file:

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

29

Friday, April 17th 2009, 3:20pm

Thanks Shanti.

I'll test your file tomorrow !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

30

Friday, April 17th 2009, 11:50pm

Hi,

Klaus, The link is here : http://www.nicolasburtey.net
Great tour

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

31

Saturday, April 18th 2009, 10:36am

Hi,

Still not working with your file Shanti ... :-)

This is the code I use :

Source code

1
2
3
4
5
[kml_flashembed movie="/wp-content/uploads/panorama/krpano.swf" fvars="pano=/wp-content/uploads/panorama/accueil.xml" height="420" width="880" wmode="transparent" allowFullScreen="true" useexpressinstall="true" fid="krpanoaccueil" fversion="9.0.28" publishmethod="alternative" target="krpano-conteneur"]

alternative text

[/kml_flashembed]


What do you use to call you tour ?

And ... Thanks Tim :-)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

32

Saturday, April 18th 2009, 10:44am

Ok ! I've found why it's not working.

This is the reason :

Source code

1
wmode="transparent"


But the thing is : If I drop this code, the css-dropdown-menu goes below the flash.

Is there any workaround for it ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

34

Saturday, April 18th 2009, 11:04am

It's not working.

The css menu is above the flash, but I've this javascript error :

Source code

1
2
3
obj is null
deltaDispatcher()()swfkrpan...s?ver=2.1 (ligne 111)
[Break on this error] if ( obj.get("has_mousewheel_event()") == "true" )


Inside swfkrpanomousewheel ... *cry*

(edit : I've miss two lines in the code)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

This post has been edited 2 times, last edit by "nelk" (Apr 18th 2009, 11:44am)


nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

35

Wednesday, April 22nd 2009, 12:00pm

I'm still hoping a solution ... *rolleyes*

Nobody has an idea ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

36

Thursday, April 23rd 2009, 11:10am

Hi,

here is a updated swfkrpanomousewheel.js script for swfobject 2.1,
could you please test it, maybe this works...

swfkrpanomousewheel-for-swfobject21.zip

best regards,
Klaus

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

37

Friday, April 24th 2009, 10:30am

Hi Klaus,

I've test in local, and it's not working :-(

On Firefox / Chrome, there is no zoom at all with the wheel.

On IE 7 there is sometimes a zoom inside krPano, but the IE windows still goes down or up.

I've tested both with

Source code

1
wmode = transparent
and

Source code

1
wmode = opaque
with the same results
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

38

Monday, October 5th 2009, 4:21pm

Wordpress plugin

Martin Nagy has posted a Wordpress plugin for krpano:

From the INFO.txt
This plugin is under heavy construction. Feel free to make it better ot just to tweak it for your own website. If you use it, please e-mail me a link so I (Martin Nagy) can see the result. The plugin validates XHTML strict right now and I hope it validates strict or transitional in the future also. Cross browser support is crucial."

http://nagy.eu/2009-10/krpano_nagy_plugin_for_wordpress/

39

Sunday, November 15th 2009, 12:12pm

shadowbox-js

A media viewer application written entirely in JavaScript. Using Shadowbox, website authors can display pictures, movies, websites, inline content and more in all major browsers without navigating away from the linking page. http://www.shadowbox-js.com/ it works with krpano *thumbup*and wordpress *thumbsup* just would like to know how to let people copy and paste the pano tour into thier websites or add to facebook

Posts: 40

Location: York, UK

Occupation: Graphic Designer

  • Send private message

40

Wednesday, December 2nd 2009, 5:16pm

Hi all
I was wondering if anyone could help. I am trying to embed a pano into Wordpress. Basically I am just copying the code into a new post. The code I am using is

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ERROR:

Javascript not activated
<script src="http://www.bettondesign.co.uk/grandhotel/swfobject/swfobject.js" type="text/javascript"></script> <script src="http://www.bettondesign.co.uk/grandhotel/swfobject/swfkrpanomousewheel.js" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
 	if (typeof(deconcept) !== 'undefined') 	{ 		if (deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
		{
			var so = new SWFObject("http://www.bettondesign.co.uk/grandhotel/krpano.swf", "krpanoSWFObject", "890", "420", "9.0.28","#000000");
			so.addParam("allowFullScreen","true");

			so.addVariable("xml", "http://www.bettondesign.co.uk/grandhotel/pano.xml");			

			if ( so.write("pano") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
		}
		else
		{
			document.getElementById("pano").innerHTML = '
<table id="inner" width="640" height="480">
<tr valign="middle">
<td><center>ERROR:

Adobe Flash Player 9 needed

<a href="http://www.adobe.com/go/getflashplayer/" mce_href="http://www.adobe.com/go/getflashplayer/"  target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" mce_SRC="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" BORDER="1"></a>
...click here to download...

</center></td>
</tr>
</table>
';
		}
	}
	else
	{
		document.getElementById("pano").innerHTML = '
<table id="inner" width="640" height="480">
<tr valign="middle">
<td><center>ERROR:

<b>./swfobject/swfobject.js</b> not found

</center></td>
</tr>
</table>
';
	}
// ]]></script>


I used the same method in joomla and it worked fine but in Wordpress I am just seeing "Error: Javascript not activated"

Any help would be appreciated.
Thanks, David.

Similar threads