How would you put a 60 second delay on this popup?

5 replies
WordPress › WP_EmailFeedburnerPop « WordPress Plugins

I really like this popup, the only problem is that it pops up right away.

I don't want to scare off visitors...I want them to get comfortable first.

How could I code a 60 sec delay into this plugin???

Anyone?
#delay #popup #put
  • Profile picture of the author cgimaster
    Edit pop.php file and after the line:

    Code:
    window.addEvent('domready', function(){
    Add this:
    Code:
        this.domReady.delay(1000,this);
    Where 1000 is the amount of time in milliseconds.
    {{ DiscussionBoard.errors[7409490].message }}
    • Profile picture of the author thebitbotdotcom
      Originally Posted by cgimaster View Post

      Edit pop.php file and after the line:

      Code:
      window.addEvent('domready', function(){
      Add this:
      Code:
          this.domReady.delay(1000,this);
      Where 1000 is the amount of time in milliseconds.
      @cgimaster

      Thanks for taking the time. OK. I tried this. I added the code exactly as you said but the popup doesn't show up now.

      Here is the entire page code:

      Code:
      <?php
      =get_settings('siteurl');
      ?>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.1/mootools-yui-compressed.js"></script>
      <script type="text/javascript" src="<?=?>/wp-content/plugins/wp-emailfeedburnerpop/lightbox/sexylightbox.v2.1.mootools.js"></script>
      <link rel="stylesheet" href="<?=?>/wp-content/plugins/wp-emailfeedburnerpop/lightbox/sexylightbox.css" type="text/css" media="all" />
      <script type="text/javascript">
      function getCookie(nombre)
      {
      	if(document.cookie.length>0)
      	{
      	start=document.cookie.indexOf(nombre + "=");
      	if (start!=-1)
      	{
      	start=start + nombre.length+1; 
      	end=document.cookie.indexOf(";",start);
      	if (end==-1)
      	end=document.cookie.length;
      	return unescape(document.cookie.substring(start,end));
      	}
      	}
      	return "";
      	}
      
        window.addEvent('domready', function(){
      	this.domready.delay(1000,this);
      	SexyLightbox = new SexyLightBox({imagesdir: '<?=?>/wp-content/plugins/wp-emailfeedburnerpop/sexyimages/'});
      	if (getCookie('popup') !="yes"){
      	SexyLightbox.show('', '<?=?>/wp-content/plugins/wp-emailfeedburnerpop/form.html?height=400&width=800', 'sexylightbox');
      	document.cookie = "popup=yes";
      	}
        });
      </script>
      Any ideas?
      Signature
      Do Your Copywriting Skills Suck?

      Let Us Help You Develop Your Writing Skills!

      Submit Guest Posts With [ TheBitBot.Com ]
      {{ DiscussionBoard.errors[7411709].message }}
  • Profile picture of the author cgimaster
    Another way would be like this.
    Code:
    SexyLightbox.show('', '<?=?>/wp-content/plugins/wp-emailfeedburnerpop/form.html?height=400&width=800', 'sexylightbox').delay(1000);
    .delay() – jQuery API

    Then again keep in mind that 1000 is equal to 1 second.
    {{ DiscussionBoard.errors[7411825].message }}
    • Profile picture of the author thebitbotdotcom
      Originally Posted by cgimaster View Post

      Another way would be like this.
      Code:
      SexyLightbox.show('', '<?=?>/wp-content/plugins/wp-emailfeedburnerpop/form.html?height=400&width=800', 'sexylightbox').delay(1000);
      .delay() - jQuery API

      Then again keep in mind that 1000 is equal to 1 second.
      Thanks for the response. I tried this too. I even changed the delay to 4000 milliseconds but it still pops up right away.

      Any other ideas. You would think it wouldn't be so complicated.
      Signature
      Do Your Copywriting Skills Suck?

      Let Us Help You Develop Your Writing Skills!

      Submit Guest Posts With [ TheBitBot.Com ]
      {{ DiscussionBoard.errors[7413165].message }}
  • Profile picture of the author cgimaster
    Use firebug and check the javascript your wordpress is loading for the box I assume it is not loading from the file you are editing which would be why it doesnt work.
    {{ DiscussionBoard.errors[7413465].message }}

Trending Topics