Page 1 of 1

Show a popup only once

Posted: Wed Nov 02, 2016 10:58 am
by Patrick
Hi Forum,
at the beginning of a tour, a popup will be shown after a few seconds. However, this should happen only once. So only for the start of the tour and not for further levels. How can I assign this action to the layers?

Greetings
Patrick

Re: Show a popup only once

Posted: Thu Nov 03, 2016 5:54 pm
by Hopki
HI Patrick,
If you drag and wrap a timer around it and set it the init rather than loaded the after 5 seconds it will hide.
As you set it to init it will only happen once. You can set the to to anything you like but the default is 5 seconds.
Regards,
Hopki

Re: Show a popup only once

Posted: Thu Nov 03, 2016 9:56 pm
by Patrick
Hi Hopki,
i already done it to the point the popup comes up, but always at every panorama. ( Not only at start pano )
The Idea is, that the user has to close by Click on popup and then never again.
Greetings.......

Re: Show a popup only once

Posted: Fri Nov 04, 2016 10:35 pm
by Hopki
Hi Patrick,
Ahh, ok even easier, just add you intro screen and give is a mouse click, hide element self action.

However with the timer, you needed to set the timers properties to Type: Init and Repeat: Once.
What should happen is the splash screen hides after 5 seconds and will not return.
You can also give the timer the action, mouse click, set value: 0, target $self.

What will happen then will be the timer will hide the screen after 5 seconds or when it is clicked.
Regards,
Hopki

Re: Show a popup only once

Posted: Mon Nov 07, 2016 9:36 am
by Patrick
The following is supposed to happen. The tour will be started and after 5 seconds a popup will appear which the user has to close by clicking. (Timer 2)
The whole tour will be reloaded after 30 seconds with no activity. (Timer 1)
Timer 1 must therefore activate Timer 2 again, so the popup appears again after 5 seconds.
Because I find simply no solution.

Re: Show a popup only once

Posted: Mon Nov 07, 2016 11:50 am
by Patrick
Now, i have done it:

Timer 1 like picture 1
Timer 2 like Picture 2

Re: Show a popup only once

Posted: Tue Nov 08, 2016 8:39 am
by Patrick
Now it works perfect on desktop, but not on a Touchscreen ( iPad/iPhone)
The PopUp came up at every Panorama after 5 seconds.

http://kunden.patrickjelen.de/DJH/Panar ... index.html

Re: Show a popup only once

Posted: Tue Nov 08, 2016 9:40 pm
by Hopki
Hi Patrick,
I still think this is overkill, you want a popup to show after 5 seconds then the user to clicked and hide the popup and for it not to return.
If so then do the following:

Add popup to your skin.
Wrap a timer around it so your popup is now a child element, anchor the timer in the skin.
In the timers properties select visible.
The visible logic block should read: Active = true, Visible: false.
Under the timer tab set your timeout, Type Init, Repeat: One time.
Then give the timer the actions: mouse click, hide element, $self.
That should do it.
Iv also attached my project which does exactly this.
Regards,
Hopki

BTW very cool map 8)

Re: Show a popup only once

Posted: Wed Nov 09, 2016 11:37 am
by Patrick
Hi Hopki,
I think you have not yet understood me correctly.
The whole story: A visitor can look at location a tour on a touch screen. The visitor leaves the touchscreen and the tour automatically restarts after 30 seconds of inactivity.
So after 5 seconds the PopUp appears again.
Basically, I have found a solution. See link. However, this works only on the desktop and not an iPad (simulation for a touch screen) Here the popup appears on each level after 5 seconds.
Why does the iPad simulate a skin differently from a desktop computer?

Greetings from raining Düsseldorf

Patrick