Show a popup only once

Q&A about the latest versions
Post Reply
Patrick
Posts: 83
Joined: Fri Mar 16, 2012 11:46 am
Location: Germany
Contact:

Wed Nov 02, 2016 10:58 am

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
User avatar
Hopki
Gnome
Posts: 10158
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Thu Nov 03, 2016 5:54 pm

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
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Patrick
Posts: 83
Joined: Fri Mar 16, 2012 11:46 am
Location: Germany
Contact:

Thu Nov 03, 2016 9:56 pm

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.......
Attachments
Bildschirmfoto 2016-11-03 um 21.53.45.png
Bildschirmfoto 2016-11-03 um 21.53.45.png (22.19 KiB) Viewed 2309 times
Bildschirmfoto 2016-11-03 um 21.53.24.png
Bildschirmfoto 2016-11-03 um 21.53.24.png (34.07 KiB) Viewed 2309 times
Bildschirmfoto 2016-11-03 um 21.53.15.png
Bildschirmfoto 2016-11-03 um 21.53.15.png (36.33 KiB) Viewed 2309 times
Bildschirmfoto 2016-11-03 um 21.53.02.png
Bildschirmfoto 2016-11-03 um 21.53.02.png (22.95 KiB) Viewed 2309 times
User avatar
Hopki
Gnome
Posts: 10158
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Fri Nov 04, 2016 10:35 pm

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
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Patrick
Posts: 83
Joined: Fri Mar 16, 2012 11:46 am
Location: Germany
Contact:

Mon Nov 07, 2016 9:36 am

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.
Patrick
Posts: 83
Joined: Fri Mar 16, 2012 11:46 am
Location: Germany
Contact:

Mon Nov 07, 2016 11:50 am

Now, i have done it:

Timer 1 like picture 1
Timer 2 like Picture 2
Attachments
2.png
2.png (36.69 KiB) Viewed 2274 times
1.png
1.png (36.08 KiB) Viewed 2274 times
Patrick
Posts: 83
Joined: Fri Mar 16, 2012 11:46 am
Location: Germany
Contact:

Tue Nov 08, 2016 8:39 am

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
User avatar
Hopki
Gnome
Posts: 10158
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Tue Nov 08, 2016 9:40 pm

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)
Attachments
patrick.zip
(590.53 KiB) Downloaded 47 times
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Patrick
Posts: 83
Joined: Fri Mar 16, 2012 11:46 am
Location: Germany
Contact:

Wed Nov 09, 2016 11:37 am

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
Post Reply