Modal layer popup at once

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Modal layer popup at once

Post by Biju »

I have:
1. A modal layer to popup when index page loads.
2. Text as "Do not show this popup again"
3. A checkbox near to above text.

Need a script to hide the popup layer from showing up each time page loads, if the checkbox enabled.
This behavior should be kept till the browser closed.
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Pablo
 
Posts: 23196
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Modal layer popup at once

Post by Pablo »

There's a template with this functionality.

https://www.wysiwygwebbuilder.com/suppo ... ydark.html
User avatar
BaconFries
 
 
Posts: 5864
Joined: Thu Aug 16, 2007 7:32 pm

Re: Modal layer popup at once

Post by BaconFries »

User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Re: Modal layer popup at once

Post by Biju »

There's a template with this functionality.
I copied the script from your above said template. But not working.
Yesterday I sent my project file to your mail. I think you haven't seen it yet.
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Re: Modal layer popup at once

Post by Biju »

You mean like the following:
Yes BF.
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Pablo
 
Posts: 23196
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Modal layer popup at once

Post by Pablo »

Did you make sure the ID of the popup in the script is correct?
User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Re: Modal layer popup at once

Post by Biju »

Attaching my project file HERE
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Pablo
 
Posts: 23196
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Modal layer popup at once

Post by Pablo »

jQuery is missing.

To solve this, either add another object to the page that uses jQuery
or
add '$JQUERY$' to the HTML object's resources.
User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Re: Modal layer popup at once

Post by Biju »

I added another modal layer with type jQuery, no close button and colour as transparent.
But still not working.
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Pablo
 
Posts: 23196
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Modal layer popup at once

Post by Pablo »

Please add $JQUERY$ to the resources of the HTML object.
User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Re: Modal layer popup at once

Post by Biju »

Please add $JQUERY$ to the resources of the HTML object.
Sorry! I don't know how to do it.
Can someone help me please?
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Pablo
 
Posts: 23196
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Modal layer popup at once

Post by Pablo »

Step 1
Click the 'Resources' button

Step 2
Copy/Paste

Code: Select all

$JQUERY$


Note that in general, we do not provide support for custom code.
When using custom code it is assumed that you know what you are doing.
MGD4me
 
 
Posts: 279
Joined: Tue May 02, 2017 11:56 pm
Location: British Columbia, Canada

Re: Modal layer popup at once

Post by MGD4me »

Re:
Post by Pablo » Sat Mar 22, 2025 12:41 am

There's a template with this functionality.

https://www.wysiwygwebbuilder.com/suppo ... ydark.html
I was looking for a script similar to the above, to display a one-time popup message. I opened up the "Dark Agency" template, but I don't see where this (pop-up) layer is located. The template is from WWB ver 16 days, so is there a more current version of the template?

I'm on WWB ver 20.

Thanks
User avatar
BaconFries
 
 
Posts: 5864
Joined: Thu Aug 16, 2007 7:32 pm

Re: Modal layer popup at once

Post by BaconFries »

The template is still valid for WWB20 even although it is from WWB16. You would need to dig deep in the HTML to see how it works as it uses a "Bespoke" custom script with the already available dialog in WWB20 or at the time of WWB16
Pablo wrote: Sun Nov 21, 2021 7:56 am Maybe this template will be useful?
https://www.wysiwygwebbuilder.com/suppo ... ydark.html

It uses a dialog and a custom script to show/hide the popup.
Alternatively there is the following that is a onetime.
Cookie Policy
MGD4me
 
 
Posts: 279
Joined: Tue May 02, 2017 11:56 pm
Location: British Columbia, Canada

Re: Modal layer popup at once

Post by MGD4me »

Okay, will do.

Thanks!!
User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Re: Modal layer popup at once

Post by Biju »

MGD4me wrote: Sun Mar 23, 2025 10:28 pm Re:
Post by Pablo » Sat Mar 22, 2025 12:41 am

There's a template with this functionality.

https://www.wysiwygwebbuilder.com/suppo ... ydark.html
I was looking for a script similar to the above, to display a one-time popup message. I opened up the "Dark Agency" template, but I don't see where this (pop-up) layer is located. The template is from WWB ver 16 days, so is there a more current version of the template?

I'm on WWB ver 20.

Thanks
here it is:Image
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Re: Modal layer popup at once

Post by Biju »

Pablo wrote: Sat Mar 22, 2025 5:56 pm Step 1
Click the 'Resources' button

Step 2
Copy/Paste

Code: Select all

$JQUERY$


Note that in general, we do not provide support for custom code.
When using custom code it is assumed that you know what you are doing.
I tried but still not working.

Image

It seems that works with dialog only.
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Pablo
 
Posts: 23196
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Modal layer popup at once

Post by Pablo »

The script is designed to be used with the dialog as demonstrated in the Agent Dark template.
If you want to use it in a different context then you will need to adapt the script.
User avatar
Biju
 
 
Posts: 138
Joined: Thu Mar 10, 2016 7:02 pm
Location: Kerala, INDIA.

Re: Modal layer popup at once

Post by Biju »

Thanks Pablo for your immediate response.
I think all your templates with popup use dialog.
Can you do a template with modal layer to popup at once, if you don't mind and time permits?
It will be a great help.
~ Remain Curious
and Keep Learning ~

_________________
visit my site
User avatar
Pablo
 
Posts: 23196
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Modal layer popup at once

Post by Pablo »

I generally only create new templates once a year, when a new version is released.

Maybe you can use the dialog instead?
MGD4me
 
 
Posts: 279
Joined: Tue May 02, 2017 11:56 pm
Location: British Columbia, Canada

Re: Modal layer popup at once

Post by MGD4me »

@BaconFries...

Thanks for your ongoing support. I finally got everything figured out!

It wasn't until I zoomed the workspace from 100% to about 75%, that I could found the Privacy Notice, which was located outside the viewport. Then, everything became apparent.

As it turns out, the Dialogue feature (as Pablo mentioned) is all I need, so that is the route I ended up taking. https://www.wysiwygwebbuilder.com/dialog.html

Mystery solved! 8)
Post Reply