Website box: How to close when opening new box  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
urke
Member
 
Topic author
Posts: 83
Likes: 0 post
Liked in: 2 posts
Joined: Tue Nov 06, 2007 1:49 pm
Info

Website box: How to close when opening new box

by urke » Fri Oct 02, 2015 8:10 am

I have a project (not yet published) with multible hotspots containing the website box plugin.

Problem: The most intuitive behavior would be that the website box closes when the user click on another (website box) hotspot. But in fact you need to close the box using the close button before you can open another object. This is the main complaint after the internal user testing.

I thought the "Close When an Other Graphic Object is Displayed" checkbox would fix this, but it don't. The other object does not launch the website box before the first is closed using the close button.

I don't know if this is a bug or feature, but I need a quick fix anyway. Any ideas how to work this out?

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Website box: How to close when opening new box

by Destiny » Fri Oct 02, 2015 9:16 am

Hi.. I requested that feature a long time ago.. You cannot even close it as you want an Call Action On Pano Event..

I am sure I did it before but had to hand code it.. Not sure.. Cannot remember. I will give it a play...

Its probably on the Kolor TO DO LIST...

Destiny..

no avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Website box: How to close when opening new box

by benji33 » Fri Oct 02, 2015 12:09 pm

You're right the only way to do it at this time is the use of multiples Website Box plugins so the first one is able to close the second one etc ... So you need at least one Website Box plugin and also at least one hotspot style with a "open website box plugin" action by spot into a single scene.
Benjamin

no avatar
urke
Member
 
Topic author
Posts: 83
Likes: 0 post
Liked in: 2 posts
Joined: Tue Nov 06, 2007 1:49 pm
Info

Re: Website box: How to close when opening new box

by urke » Fri Oct 02, 2015 2:06 pm

benji33 wrote:You're right the only way to do it at this time is the use of multiples Website Box plugins so the first one is able to close the second one etc ... So you need at least one Website Box plugin and also at least one hotspot style with a "open website box plugin" action by spot into a single scene.


I have 135 hotspots... Doesn't seem like a good idea to have 135 plugin instances, I guess?

The project is live btw:
http://cdn.tu.no/multimedia/360/osl2015/index.html

no avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Website box: How to close when opening new box

by benji33 » Fri Oct 02, 2015 2:25 pm

Argh ... I see ! 135 spots on the same panorama. The solution is not a good one for your tour :)

So best way in your case is to edit the "websiteViewer" plugin into the index_skin.xml file.
Try this update of the "openWebsite_websiteViewer" action :
Code: Select all
<action name="openWebsite_websiteViewer">
   ifnot(ptplugin[websiteViewer].isOpen,
      if(ptplugin[websiteViewer].doNotDeleteMe,
         set(ptplugin[websiteViewer].currentCall, false);
      set(ptplugin[websiteViewer].isOpen, true);
      set(ptplugin[websiteViewer].doNotDeleteMe, false);
      getmessage(boxurl, %1);
      txtadd(boxurl, ?iframe=true);
      pauseautorotation(forceplugin);

      js(invokePluginFunction(websiteViewer, loadSingleArrayItem, get(boxurl), %2));
      ,
         set(ptplugin[websiteViewer].currentCall, true);
         set(ptplugin[websiteViewer].doNotDeleteMe, true);
         events.dispatch(onremovedisplayedobject);
         delayedcall(0.3,openWebsite_websiteViewer(%1,%2););
      );
        ,
          closeKolorBox_websiteViewer();
          delayedcall(0.3,openWebsite_websiteViewer(%1,%2););
   );
</action>
Benjamin

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Website box: How to close when opening new box

by Destiny » Fri Oct 02, 2015 10:59 pm

Haaayy.. Thats great Benji...

I wanted that oodles of time ago.. Where were you... =D

Destiny..

benji33 likes this post.

no avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Website box: How to close when opening new box

by benji33 » Mon Oct 05, 2015 10:35 am

This change will be available into next release with a refresh only it the iframe url is different.
Benjamin


Who is online

Users browsing this forum: No registered users and 3 guests

cron