WebSite X5Help Center

 
VIDAL P.
VIDAL P.
User

I am starting a cbd Site and need an Age Verification Pop Up Banner  en

Autore: VIDAL P.
Visite 366, Followers 1, Condiviso 0  

I am starting a CBD Site and need an Age Verification Pop Up Banner. What object is need to create this.

Postato il
14 RISPOSTE
Daniel W.
Daniel W.
User
Utente del mese DEUtente del mese EN

There are various providers and they often offer free plans, for example with this provider.

>> https://ageverify.com/

Here is a JavaScript code to copy, this is inserted in WebSite X5 under “1 Settings” in “Statistics and Code” in the “Code” tab in the “Before closing head tag” selection, see screenshot below.

.

----- German version of WebSite X5 -----

Leggi di più
Postato il da Daniel W.
Daniel W.
Daniel W.
User
Utente del mese DEUtente del mese EN

My test page with the age verification pop-up banner.

-----

Leggi di più
Postato il da Daniel W.
VIDAL P.
VIDAL P.
User
Autore

Daniel W. Thanks a million!

Leggi di più
Postato il da VIDAL P.
VIDAL P.
VIDAL P.
User
Autore

KolAsim ‪Thank you, and how do I convert this to english?

Leggi di più
Postato il da VIDAL P.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Utente del mese IT

...OK ... this is the result of the banner translated with google into English:

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Utente del mese IT

...this is the code in English:

<!-- DIV_CUSTOM - Expert Panel > Custom code: Before the </BODY> tag. || (cookie) by KolAsim -->
<style>
#k1:hover,#k2:hover{opacity: 0.8;border: solid 1px; border-color: yellow }
#k1,#k2{font-size:2.5vw;font-family:Arial;padding:5px; border:0px; border-radius: 10px;color:yellow;cursor:pointer;border: solid 1px; border-color: black }
#k1{background-color:dimgrey;}
#k2{background-color:slategrey;}
</style>
<script>
//================================
function chiudiK() { $('#messaggioK').hide(); // maggiorenni by KolAsim
$('#contenitoreK').hide(); document.cookie='kK=cookieK';}
//================================
function chiudiK2() {alert("You have confirmed that you are of legal age.")};
//================================
function k() { // maggiorenni by KolAsim
textTitleK = "CAUTION!! <br>";
textTextK = "The site contains articles reserved for visitors over the age of 18 and access to which must be confirmed!";
//================================
divK = '<div id="contenitoreK" style="font-family:arial;position:fixed;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5); z-index:100000;"> <div id="messaggioK" style="position:relative;width:70%;top:10%;text-align:center;z-index:100000;margin:auto;border: solid 1px; border-color: yellow;border-radius: 50px;;background-color:rgba(0, 0, 0, 0.5);overflow:hidden"> <p style="position:relative;color:white;padding:10px"> <img src="https://freepngimg.com/thumb/silhouette/91258-wiki-joint-white-fortnite-discord-png-free-photo-thumb.png" width="20%"> <br> <span style="font-size:4vw;font-weight:bold">' + textTitleK + '</span><span style="font-size:3.5vw">' + textTextK+ ' </span></p> <div style="top:5px; background-color:rgba(0, 0, 0, 0.1);padding:10px;"> <input id="k1" type="button" value="Yep! I\'m an adult!" onclick="javascript:chiudiK();chiudiK2()" /> <input id="k2" type="button" value="NO! I\'m not of legal age!" onclick="javascript:location.href=\'index.html\'" /></div></div> </div>'; // by KolAsim
$( "body" ).before( divK );}
//================================
function ControlloFinestraK(){ // cookie sessione by KolAsim
AperturaFinestraK=document.cookie;
stringaK= AperturaFinestraK.search("kK=cookieK");
if (stringaK != -1) {return chiudiK();} else { k();}
//alert("controllo K"); // by KolAsim
}
//===============================
ControlloFinestraK() ;
//===============================
</script>

.

ciao

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
VIDAL P.
VIDAL P.
User
Autore

@KolAsim Thank You. I will see how this works. 

Leggi di più
Postato il da VIDAL P.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Utente del mese IT

... OK ... ciao

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
VIDAL P.
VIDAL P.
User
Autore

Pleaso pardon me being tardy. I had some family issues. Thanks to everyone who shared.

Leggi di più
Postato il da VIDAL P.
VIDAL P.
VIDAL P.
User
Autore

@KolAsim thanks a MILLION! I know nothing about coding, but I was able to go through it, and even modify it so that it said what I need it to say.

Leggi di più
Postato il da VIDAL P.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Utente del mese IT

... Optimal! ... wink...  ciao 

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
VIDAL P.
VIDAL P.
User
Autore

Thank You! once again.

Leggi di più
Postato il da VIDAL P.