monetizer expertmobi
Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

Monetize Your Outgoing Links

Discussion in 'Programming and Scripts' started by michael pehl, Jul 15, 2014.

  1. michael pehl

    michael pehl Get your fix Ninja! affiliate

    62
    21
    8
    Hi there.

    Some time ago I have coded some simple stuff that you can use to e.g. monetize your outgoing links.

    This is possible with some jQuery and PHP lines, pretty easy stuff.

    CHECK OUT THE DEMO

    Let's begin with some jQuery on the site with the outgoing link. I'm assuming you are using jQuery on your site.

    Just add these lines after jQuery was loaded, add the class outgoinglink to the desired link.

    Code:
    <script>
    $(window).ready(function(){
    	$("a.outgoinglink").click(function(evt) {
    		var href = $(this).attr("href");
    		evt.preventDefault();
    		window.location = './outgoing.php?url='+href;
    	});
    });
    </script>
    
    Example for a link:

    Code:
    <a href="http://bing.com" class="outgoinglink">Click Here To Visit Bing</a>
    You can rename the class but make sure you are using a unique class name.

    Now the outgoing.php file, basically this can be ANY site you want... there is only some lines to add.

    Add these lines after jQuery was loaded.

    Code:
    <script>
    $(window).ready(function() {
    
    function gotoURL(){
    window.location.href = '<?php echo $_GET['url']; ?>';
    }
    
    $('#defaultCountdown').countdown({
    until: +6, 
    format:"S", 
    onExpiry: gotoURL
    });
    });
    </script>
    
    CHECK OUT THE DEMO

    If anyone is interested in this code I would make a zip package of the demo's ...

    I am using jQuery Countdown from Keith Wood in this demos, you can get it here: jQuery Countdown

    If anyone wants to support me, check out this: Donate Some Cash

    Thanks for reading,

    Michael
     
    boro and K like this.
  2. monetizer
  3. K

    K Administrator Administrator affiliate

    Sick script man thanks.
     
  4. michael pehl

    michael pehl Get your fix Ninja! affiliate

    62
    21
    8
    Thank you, Oliver.

    I love you, too :)

    I have some more stuff to come, just need some time to prepare...
     
    1 person likes this.
  5. xojads22

    xojads22 Affiliate Manager Affiliate Manager affiliate

    8
    0
    0
    The demo looks fine. thanks for your share.
    Give it a a little wrench , it will works on almost all situation.
     
  6. slimspots

    slimspots Affiliate affiliate

    4
    0
    1
    nice, really sick, thanks
     
  7. boro

    boro Affiliate affiliate

    12
    2
    3
    Awesome! I was just looking for a similar script and you just popped with it :)
     
  8. shreedharcva

    shreedharcva Affiliate affiliate

    249
    190
    43
    Michael nice work.
    But i feel those days are over when people used to generously donate for people's work.
    Now you should have created a WSO and sold it at $9 (just to say).
     

Featured Resources (View All)

MI