[ask] display pop up for anonymour visitor

Discussion in 'WordPress' started by cakka, May 30, 2012.

  1. #1
    helo,

    can somebody tell me how to display pop up for anonymous visitor in wordpress site ?

    thanks
     
    cakka, May 30, 2012 IP
  2. Imposter

    Imposter Peon

    Messages:
    169
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is this what are you looking for?

    <?php
    if (!is_user_logged_in()){
    ?>
    
    <script type="text/javascript">
    function poponload()
    {
        testwindow = window.open("http://google.com", "mywindow", "location=1,status=1,scrollbars=1,width=500,height=300");
        testwindow.moveTo(0, 0);
    }
    
    poponload();
    </script>
    
    <?php
    }
    ?>
    PHP:
     
    Imposter, May 31, 2012 IP