Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

21

Samstag, 11. April 2009, 05:57

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.

22

Montag, 13. April 2009, 12:42

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

Fortgeschrittener

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

23

Mittwoch, 15. April 2009, 07:59

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

Quellcode

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:

Quellcode

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

Quellcode

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


add the line in red

Quellcode

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

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Shanti« (15. April 2009, 08:10)


24

Mittwoch, 15. April 2009, 12:20

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

Fortgeschrittener

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

25

Mittwoch, 15. April 2009, 19:50

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:

Quellcode

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

Mittwoch, 15. April 2009, 20:41

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

27

Donnerstag, 16. April 2009, 08:43

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

Quellcode

1
PUBLISHMETHOD="dynamic"
is it still working ?

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

Quellcode

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


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

Quellcode

1
$curr['fid']
but

Quellcode

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


Zitat

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

Fortgeschrittener

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

28

Donnerstag, 16. April 2009, 08:58

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« hat folgende Datei angehängt:

29

Freitag, 17. April 2009, 15:20

Thanks Shanti.

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

30

Freitag, 17. April 2009, 23:50

Hi,

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

31

Samstag, 18. April 2009, 10:36

Hi,

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

This is the code I use :

Quellcode

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

32

Samstag, 18. April 2009, 10:44

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

This is the reason :

Quellcode

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

Fortgeschrittener

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

34

Samstag, 18. April 2009, 11:04

It's not working.

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

Quellcode

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

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »nelk« (18. April 2009, 11:44)


35

Mittwoch, 22. April 2009, 12:00

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

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

36

Donnerstag, 23. April 2009, 11:10

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

37

Freitag, 24. April 2009, 10:30

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

Quellcode

1
wmode = transparent
and

Quellcode

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

38

Montag, 5. Oktober 2009, 16:21

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

Sonntag, 15. November 2009, 12:12

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

designsubway

Anfänger

Beiträge: 40

Wohnort: York, UK

Beruf: Graphic Designer

  • Nachricht senden

40

Mittwoch, 2. Dezember 2009, 17:16

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

Quellcode

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.

Ähnliche Themen