+ Reply to Thread
Results 1 to 3 of 3

Thread: popup + 18

  1. #1
    lulai is offline Junior Member
    Join Date
    Jun 2007
    Posts
    6

    Default popup + 18

    Since does a popup who warns that the video is for adults?

  2. #2
    Publicite_Sexe is offline Junior Member
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    20

    Default

    Hello Lulai,

    You can add a disclaimer with this solution :

    Open : template/header.tpl
    Search : <script language=JavaScript src={$baseurl}/js/myjavascript.js></script>
    After Add : <script language=JavaScript src={$baseurl}/js/avert.js></script>

    Create a .JS file into the /js folder. with this name : advert.js
    ( your domain /js/advert.js )

    Place this script on you server and don't miss to change the text because it is in french and dedicated to the Adults contents :
    Code:
    <!--
    function ScanCookie(variable)
       {
        cook = document.cookie;
        variable += "=";
        place = cook.indexOf(variable,0);
        if (place <= -1)
            return("0" );
        else
           {
            end = cook.indexOf(";",place)
            if (end <= -1) return(unescape(cook.substring(place+variable.length,cook.length)));
            else return(unescape(cook.substring(place+variable.length,end)));
           }
       }
    function CreationCookie(nom,valeur,permanent)
       {
        if(permanent)
           {
            dateExp = new Date(2020,11,11);
            dateExp = dateExp.toGMTString();
                ifpermanent = '; expires=' + dateExp + ';';
           }
        else
            ifpermanent = '';
        document.cookie = nom + '=' + escape(valeur) + ifpermanent;
       }
    if(ScanCookie("dejapopup" )==0)
       {
        var msg="ATTENTION : SITE PORNOGRAPHIQUE RESERVE AUX MAJEURS DE PLUS DE 18 ANS\n\nCe site Internet est réservé à un public majeur et averti et est conforme à toutes les réglementations en vigueur. Il contient des textes, des photos et des vidéos classées X qui peuvent être choquantes pour certaines sensibilités.\n\nCLIQUEZ SUR OK POUR CONTINUER,ANNULER POUR QUITTER..\n\n"
        if(confirm(msg))
            CreationCookie("dejapopup","oui",false)
        else
            window.location.replace('http://www.google.fr');
       }
    //-->
    You can see the result on http://www.videos-x-live.com

    The script is activated on all you website because it is into the header.tpl file requested on all access to your website

    Regards,
    Georges
    Caractères Francophones
    The script updated in French - Adult porn website !
    http://www.videos-x-live.com/banner/120x60.gif

  3. #3
    Luke Beale is offline Junior Member
    Join Date
    May 2007
    Posts
    15

    Default

    Thanks for that.

    A correction...

    Code:
    Open : template/header.tpl
    Search : <script language=JavaScript src={$baseurl}/js/myjavascript.js></script>
    After Add : <script language=JavaScript src={$baseurl}/js/advert.js></script>
    You spelt advert wrong in the last line.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts