Sie sind nicht angemeldet.

1

Freitag, 24. September 2010, 16:51

URL Rewriting like SWFAddress

Hello, if you make a great panorama, with multiple part, you can want that visitor share to there friend the part they like, so we need an specific url for each part of the panorama.

Right now , we have only one solution, is to make every part on different url with spécific html, and to load the different part of the pano frome the other with the action open url, but we have two big problem with that : first if we are in full screen, we leave this fullscreen, seond we can't have something as beautiful as we have withe the loadpano and blending mode.

So do you have an other solution ??

I learn the URL Rewriting like SWFAddress, do you think we can use it or do you have a solution ??

http://www.asual.com/swfaddress/

The pano i'm working on :[url]http://www.doppelart.com/gallerie/egregor&bernede/gallerie/1/[/url]

2

Samstag, 25. September 2010, 02:29

The exact word is Deep-linking , we can find som adobe solution here http://www.adobe.com/devnet/flash/articl…html#approaches

3

Mittwoch, 29. September 2010, 03:40

You could do your tour normally with loadpano but have a button in a corner for "copy permanent link to this position to the clipboard" or "share this panorama with a friend"...

4

Dienstag, 5. Oktober 2010, 16:03

I would like but how did you do that ? (copy permanent link to this position ?)

5

Mittwoch, 6. Oktober 2010, 03:09

Well, you can put text in the clipboard with System.setClipboard(str);

Assuming you don't want to do any server side scripting, this is the simplest, most basic solution:

* You make all your tour with loadpano, such that the URL never changes during the tour, but you ALSO make one HTML for each pano (which opens each pano directly).
* You use a common identifier within each xml from which you can derive the name of the required HTML. For example, you can use something like krpano.get("xml.url") and then use string operations to extract only the filename, or you put inside each XML a custom variable containing the corresponding HTML path; For example, inside abcd.xml: <doppelart directlink="abcd.html" /> and then you use krpano.get with that.
* Once you have the unique html filename, you use string operations to build the full URL and then System.setClipboard to put the full URL in the clipboard.

When the friend of your first user accesses the website through, for example, abcd.html, he will see abcd.html in the filename during his entire visit, however since he will also have the same button he can use to get the URL to any specific position, this is not a problem.

6

Mittwoch, 6. Oktober 2010, 13:49

Ok, this is very clever and no very difficult, but if i want to use with something like sharing with facebook, and other shearing system, without any clipboard option, i need to make an loadurl before loading my menu of sharing option.

Is not easy for the user !!! and after i didn't have the sharing menu open !

7

Mittwoch, 6. Oktober 2010, 19:56

In the last step, instead of using System.setClipboard, you can do anything you want with your permanent URL, such as sending it via HTTP to another URL (as in facebook) using Flash's HTTP methods... Sorry if this isn't what you're asking, but as a non-native speaker my understanding of english is limited to only textbook english. I wish my french was better :/

Beiträge: 91

Wohnort: Norway

Beruf: Product Specialist @ www.fuglefjellet.no

  • Nachricht senden

8

Sonntag, 10. Oktober 2010, 17:31

RE: URL Rewriting like SWFAddress



I learn the URL Rewriting like SWFAddress, do you think we can use it or do you have a solution ??

If you check the tour in members showcase, Culture and the frog, you`ll see that it may be done with swfadress.

9

Mittwoch, 13. Oktober 2010, 00:18

I did it with Javascript - You can set a variable in the url and pass it to krpano to load a certain scene or file.

Here's the js:

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
<script type="text/javascript">
// <![CDATA[
	if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
	{
		var so = new SWFObject("krpano.swf?pano=view.xml", "krpanoSWFObject", "100%", "100%", "9.0.28","#FFFFFF");
		so.addParam("allowFullScreen","true");
		so.addParam("allowScriptAccess","always");
		so.addParam("wmode","window");
		
		//so.addVariable("pano", getQueryParamValue("pano"));
		
		
		// pass all external parameters
		var q = document.location.search || document.location.hash;
		if(q)
		{
			var params = q.substring(1).split("&");
			for(var i=0; i<params.length; i++)
			{
				var param = params[i];
				var istgl = param.indexOf("=");
				var pname = param.substring(0,istgl);
				var pval  = param.substring(istgl+1);
				
				if (pname == "krpanologo")
				{
					// shortcut to hide the logo 
					pname = "plugin[krpanologo].visible";
				}
				
				so.addVariable(pname, pval);
			}
		}
		
		so.useExpressInstall('swfobject/expressinstall.swf');
		so.setAttribute('xiRedirectUrl', window.location);
		if ( so.write("krpano") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
	}
	else
	{
		document.getElementById("krpano").innerHTML = '<table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Adobe Flash Player 9 needed<br><br><br><a href="http://www.adobe.com/go/getflashplayer/"  target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" BORDER="1"></a><br>...click here to download...<br><br><br><br></center></td></tr></table>';
	}
// ]]>
</script>


And I just set s=scenename in the url i.e. domain.com/test.html?s=hotelscene

jpdeglet69

Fortgeschrittener

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

10

Samstag, 22. Januar 2011, 16:40

Hi,

For my tours based on 1 HTML -> n XML, to share URL I generate it in the browser address bar
with all current parameters : position, zoom, autorotation, mask, sound...

So the visitor don't need to "select/copy/past" this link, they just drag and drop from the address bar to where they want (favorites, desktop, forums, OpenOffice...)

Have a look and feel free to comment,
-Is my "Share Button Pin" popup OK, sufficient or not clear...
-Should I manage a single popup to present choice eMail / Share...
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://eleana.online

11

Mittwoch, 26. Januar 2011, 10:29

SWFAddress plugin is the useful solution.

jpdeglet69

Fortgeschrittener

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

12

Mittwoch, 26. Januar 2011, 10:36

Yes... *thumbup*

But too late for me, I done the job... *wacko*
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://eleana.online

13

Mittwoch, 26. Januar 2011, 10:40

Perhaps, it will be useful for others or for you in the future.

jpdeglet69

Fortgeschrittener

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

14

Mittwoch, 26. Januar 2011, 10:53

Jaydee,
I wrote "yes *thumbup* "

and I have uploaded demo and tested it : scene and manual.

So, this plugin (only 10€) is a good solution

but not sufficient to replace my own implementation, I wrote "my own implementation" :

because this plugin
- manages scenes (only one XML file per tour),
- *question* doesn't update the browser address bar, I don't saw it
(the real matter of a real deep linking address solution)
- doesn't return the exact position in the current displayed pano (x, y or ath, atv and fov)

An online demonstration would be better to be sure of exact possibilities ;-)
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://eleana.online

Dieser Beitrag wurde bereits 5 mal editiert, zuletzt von »jpdeglet69« (26. Januar 2011, 11:41)


15

Mittwoch, 26. Januar 2011, 12:00

Your claims to the plugin are unreasonable. Refer to documentation again, you didn't properly understand the plugin usage.
- Plugin supports panoramas located in external xml files as well as the scenes.
- Plugin updates browser's address bar. If you don't saw that, please, configure the Flash Player security settings, to allow this plugin to update address bar. This guide might help.
- I will release update to my plugin, which will add the possibility to parse url parameters.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »jaydee« (26. Januar 2011, 12:12)


jpdeglet69

Fortgeschrittener

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

16

Mittwoch, 26. Januar 2011, 13:23

Hello Jaydee,

Probably I missed something or not understood "deep linking address" *sad*

Here my test :
0) I've uploaded your demo file, unzipped into h:\test\
1) I've updated my browser flash security settings (adding h:\test)

2) I've loaded scene.mode.html
-- a) in my browser address bar : file///H:/Test/scene.mode.html#/pano2
3) I've cleared my browser bar address
4) I've moved in the pano
5) I've clicked on the button "Copy Link"

MY Results
- My browser address bar is still clear ???
BUT
- in my clipboard I got: file///H:/Test/scene.mode.html#/pano2

I repeat, your plugin is very interesting
I have tested not to criticize but possibly to purchase it...

So, is-it possible for you to reach online your demonstration?
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://eleana.online

17

Mittwoch, 26. Januar 2011, 13:47

Hi, jpdeglet69


Please, review scene.mode.xml code and documentation.
In the XML code, pano2 is defined as root pano, that is why file:///h:/test/scene.mode.html and file:///h:/test/scene.mode.html#/pano2 is the same linkage to the second pano. And that is why pano has not been reloaded.
To make a long story short, at this time, plugin maps an external xml file with the pano (or scene with the pano) to the specific url, so it can be shared with others. There is no support for mapping url to particular pano view properties. I'm working on this feature now.


Offline examples denostrates all of the plugin features. Why are you need an online demo?

jpdeglet69

Fortgeschrittener

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

18

Mittwoch, 26. Januar 2011, 14:25

Hi, jpdeglet69


Please, review scene.mode.xml code and documentation.
In the XML code, pano2 is defined as root pano, that is why file:///h:/test/scene.mode.html and file:///h:/test/scene.mode.html#/pano2 is the same linkage to the second pano. And that is why pano has not been reloaded.
To make a long story short, at this time, plugin maps an external xml file with the pano (or scene with the pano) to the specific url, so it can be shared with others. There is no support for mapping url to particular pano view properties. I'm working on this feature now.


Offline examples denostrates all of the plugin features. Why are you need an online demo?
Jaydee,

"In the XML code, pano2 is defined as root pano, that is why file:///h:/test/scene.mode.html and file:///h:/test/scene.mode.html#/pano2 is the same linkage to the second pano. And that is why pano has not been reloaded."
=> For me, when you click, you should update the browser bar address, every time... (I do that but I am not fully satisfied of my actual solution).

"Online demo"
=> to prevent all flash authorization issue...
=> and for more demonstrative future online use.

"There is no support for mapping url to particular pano view properties. I'm working on this feature now."
=> Good news!!! it is simple and very usefull to mark/to share a particular position...

And I beg your pardon if I hurt you during this exchange. ;-)
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://eleana.online

Ähnliche Themen