Go Shopping Cart Site Map User Panel and Admin English Home

Home > Easypano Forum    Easypano Forum has been upgraded.

Easypano Forum


Welcome Guest Register Login Search The Forum Display List of Forum Members
 All Forums
  Tourweaver
 
Subject Topic: embedding tour Post Reply Post New Topic
Message posted by fallstand on August-10-2011 at 12:22am
View fallstand's Profile Profile   Search for other posts by fallstand Search   Quote fallstand Quote   Send Private Message Send Msg  
fallstand
Standard Member
Standard Member
United States
August-10-2011
2 Posts
First off I'm not a web developer, lol

I'm doing some work for a builder who wants to embed the tour onto their website but have the files and everything run off of my sever.

I tried creating a separate html file, extracting script from Tourweaver_xxx document that is created when publishing a tour. And then I filled in the entire URL for any files or scripts that may be called for.

I pasted what I did below. I'm getting the tour window to pop up but nothing is loading.

So questions is - Am I going about this the right way? Or is there a simpler embedding code I could be using?

Thanks for your help!

<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("http://www.ronniebruce.com/realestate/tours/drhorton/brookhaven/twviewer.swf", "sotester", "600", "380", "9.0.0", "#FFFFFF");
so.addParam("allowNetworking", "all");
so.addParam("allowScriptAccess", "always");
so.addParam("allowFullScreen", "true");
so.addParam("scale", "noscale");
//<!-%% Share Mode %%->
so.addVariable("lwImg", "http://www.ronniebruce.com/realestate/tours/drhorton/brookhaven/resources/waiting_brookhaven.gif");
so.addVariable("lwBgColor", "255,232,232,232");
so.addVariable("lwBarBgColor", "255,255,255,255");
so.addVariable("lwBarColor", "255,0,255,0");
so.addVariable("lwBarBounds", "120,304,360,8");
so.addVariable("lwlocation", "0");
so.addVariable("lwShowLoadingPercent", "true");
so.addVariable("lwTextColor", "255,0,0,0");
so.addVariable("iniFile", "http://www.ronniebruce.com/realestate/tours/drhorton/brookhaven/config_brookhaven.bin");
so.addVariable("progressType", "1");
so.addVariable("swfFile", "");
so.addVariable("href", location.href);
so.write("flashcontent");
// ]]>
</script>




Message posted by madmux on August-10-2011 at 2:23am
View madmux's Profile Profile   Search for other posts by madmux Search   Visit madmux's Homepage www   Quote madmux Quote   Send Private Message Send Msg  
madmux
Avatar
Standard Member
Standard Member
Lithuania
August-03-2010
246 Posts
I'm not sure, but variable 'href' will still references to your clients url (i mean this one: so.addVariable("href", location.href);)
Try changing it to:

so.addVariable("href", "http://www.ronniebruce.com/realestate/tours/drhorton/brookhaven");
or
so.addVariable("href", "http://www.ronniebruce.com/realestate/tours/drhorton/brookhaven/");

and let's see what's happening.
Security issues might or might not emerge as well.

Alternatively you may embed your tour using iframe, then you don't need to change anything in the files residing on your server (google for it). It is the easiest way, although i don't like iframe approaches myself.

Best wishes,
Madmux

-------------
My Tourweaver components: http://www.optitecha.lt/categories/3

Message posted by madmux on August-10-2011 at 2:36am
View madmux's Profile Profile   Search for other posts by madmux Search   Visit madmux's Homepage www   Quote madmux Quote   Send Private Message Send Msg  
madmux
Avatar
Standard Member
Standard Member
Lithuania
August-03-2010
246 Posts
OK, i've got it.

Your html code which you embed should be like this:

<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
To view virtual tour properly, Flash Player 9.0.28 or later version is needed.
Please download the latest version of <a title="http://www.adobe.com/go/getflashplayer" target="_blank">Flash Player</a> and install it on your computer.
</div>

<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("http://www.ronniebruce.com/realestate/tours/drhorton/brookhaven/twviewer.swf", "sotester", "600", "380", "9.0.0", "#FFFFFF");
so.addParam("allowNetworking", "all");
so.addParam("allowScriptAccess", "always");
so.addParam("allowFullScreen", "true");
so.addParam("scale", "noscale");
//<!-%% Share Mode %%->
so.addVariable("lwImg", "resources/waiting_brookhaven.gif");
so.addVariable("lwBgColor", "255,232,232,232");
so.addVariable("lwBarBgColor", "255,255,255,255");
so.addVariable("lwBarColor", "255,0,255,0");
so.addVariable("lwBarBounds", "120,304,360,8");
so.addVariable("lwlocation", "0");
so.addVariable("lwShowLoadingPercent", "true");
so.addVariable("lwTextColor", "255,0,0,0");
so.addVariable("iniFile", "config_brookhaven.bin");
so.addVariable("progressType", "1");
so.addVariable("swfFile", "");
so.addVariable("href", "http://www.ronniebruce.com/realestate/tours/drhorton/brookhaven");
so.write("flashcontent");
// ]]>
</script>

Proof that it is working (placed it temporary for testing purposes) is here:
http://www.virtualivizija.lt/demo/rbruce/

-------------
My Tourweaver components: http://www.optitecha.lt/categories/3

Message posted by pixelator on August-12-2011 at 11:27pm
View pixelator's Profile Profile   Search for other posts by pixelator Search   Visit pixelator's Homepage www   Quote pixelator Quote   Send Private Message Send Msg  
pixelator
Standard Member
Standard Member
United States
April-21-2005
502 Posts
not sure that it matters in your case but I had some problems with using the twviewer.swf.

when you publish the tour select the Flash VR (swf) and point to it instead of the twviewer.swf.

i'm using kimili to embed in wordpress.

Message posted by fallstand on August-15-2011 at 7:26pm
View fallstand's Profile Profile   Search for other posts by fallstand Search   Quote fallstand Quote   Send Private Message Send Msg  
fallstand
Standard Member
Standard Member
United States
August-10-2011
2 Posts
@madmux

Thanks for checking that out. I appreciate you hosting that for a minute to confirm it works. I have it working on my end as well

But the builder seems to be having difficulty getting it working for his website. When they added the code in they get a please install flash message:

   You may have to do some navigating: Home Plans > The Brookhaven > Virtual Tour

   http://www.drhorton.com/Where-We-Build/New-Jersey/New-Jersey/Division/Village-Grande-at-Camelot.aspx

I had a friend look into it more and we came across something called cross domain policies, which is an xml that allows outside servers to embed the swf, however its working on your server so this SHOULD be working smoothly


Message posted by madmux on August-21-2011 at 11:23am
View madmux's Profile Profile   Search for other posts by madmux Search   Visit madmux's Homepage www   Quote madmux Quote   Send Private Message Send Msg  
madmux
Avatar
Standard Member
Standard Member
Lithuania
August-03-2010
246 Posts
Sorry, i was on week long trip and couldn't respond earlier. Anyway, I see you already figured it out and made it work with iframe.
Regarding cross-domain polices - this is not the case, because the whole tour is located in your own server. If flash (.swf) file would be located at client server and it would want to load pictures from your server, then you would need to specify crossdomain.xml file. It is not needed to embed external .swf Therefore is works on my server.
I think - just some small error prevented from displaying tour. If you would like to embed your tour without iframe - let me know.

Best wishes,
Madmux


-------------
My Tourweaver components: http://www.optitecha.lt/categories/3

If you wish to post a reply to this thread you must first Login
If you are not already registered you must first register

Forum Jump Post Reply Post New Topic
Printer Friendly Version Printable version

Powered by: - Web Wiz Guide Discussion Forums