Tweak ZANGO Gateway with this code and increase installs/revenue

Discussion in 'Affiliate Programs' started by andheresjohnny, Jan 24, 2008.

  1. zensiq

    zensiq Peon

    Messages:
    91
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #81
    Hey everyone- I cant seem to make this code work for more than 2 cookies? Could a wordpress theme have an effect on this? I tried to set it less than 20 cookies and still pops on second cookie-

    Thanks- This happens in IE and Mozilla - after clearing cookies each time.
     
    zensiq, Mar 24, 2009 IP
  2. Samos

    Samos Peon

    Messages:
    106
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #82
    Wow thanks luckily I found this thread.

    This will increasy my convertion :D:D
    I am currently combining this script with geotargetting.
     
    Samos, Apr 10, 2009 IP
  3. Yfcadmin

    Yfcadmin Notable Member

    Messages:
    2,616
    Likes Received:
    331
    Best Answers:
    0
    Trophy Points:
    230
    #83
    This guy is a born loser ... or maybe admin of payperinstall .. the code he posted here was posted on other forums more than an year ago. copycat.
     
    Yfcadmin, Apr 10, 2009 IP
  4. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,120
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    #84
    I know this thread is a bit old, but I have been asked by numerous PM's to write the code that will do the function I have described in the post I've quoted below.

    If the mods decide that this is considered a bump, they might as well delete it, but I think the code will be very valuable for people who want to show the ZangoCash gateway every N hours (not only ZANGOCASH gateway, but any other code you choose, e.g CPALEAD gateway).

    NOTE: Please read and follow the license, in particular - keeping the message at the top intact.

    Configuration is easy: just change the number in the first lines to a number, which will be the number of hours your gateway will not appear. Once this many hours pass - the gateway wil be shown again for 1 visit and then will not be shown for the set amount of hour again. Also enter your ZangoCash (or any other) code at the noted place.

    <?php
    
    // PHP script to show a ZangoCash gateway every N hours.
    // Copyright "mrgee" from DigitalPoint forums.
    // If you want custom PHP/HTML/CSS modifications for a small fee, contact me at: MRGEE at MRGEE dot INFO
    // or PM me at the DP forums: http://forums.digitalpoint.com/private.php?do=newpm&u=79956
    
    // Licensed under Attribution-Share Alike 3.0 Unported licence
    // http://creativecommons.org/licenses/by-sa/3.0/
    
    $hours = 2; // how often will the gateway appear (in hours)
    
    function showgateway() {
    ?>
    
    	Insert your ZangoCash code here.
    
    <?php
    return;
    }
    
    $inseconds = $hours*3600; //convert hours to seconds for better use
    
    if (isset($_COOKIE['gate'])) {
    	// do not show gateway, because the cookie has not expired yet
    	echo "<!-- Next gateway in ";
    	echo $_COOKIE['remains'] - time();
    	echo " seconds. -->";
    }
    else {
    	showgateway();
    	setcookie('gate',time(),time()+$inseconds);
    	setcookie('remains',time()+$inseconds,time()+$inseconds);
    }
    
    ?>
    PHP:
     
    Last edited: Dec 25, 2009
    ColorWP.com, Dec 25, 2009 IP
  5. jaguar34

    jaguar34 Notable Member

    Messages:
    1,375
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    215
    #85
    Does this works with Pinball PPI program?
     
    jaguar34, Dec 26, 2009 IP
  6. webmoney

    webmoney Well-Known Member

    Messages:
    1,119
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    155
    #86
    Sure it works... you can use it with anything you like CPAlead or loudmo.net or other programs.
     
    webmoney, Dec 30, 2009 IP
  7. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,120
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    #87
    I thought PPI was dead already...
     
    ColorWP.com, Jan 7, 2010 IP
  8. moonshe

    moonshe Active Member

    Messages:
    269
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #88
    no its not, some people are still making huge cash on it.
     
    moonshe, Jan 7, 2010 IP