Get exclusive CAP network offers from top brands

View CAP Offers

How do you hide affiliate links in status bar?

[bsa_pro_ad_space id=2]
  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #751615
    Anonymous
    Inactive

    I used to do it that way but now I just make a redirect file called for example bodog.php and put nothing but this code in it:

    That way the next time bodog changes its name I only have to change the bodog.php file.

    Someone in this Forum gave me that code and it work great. Way better than an html redirect. I forget the forum members name but thanks again :hattip:

    #751616
    golda
    Member

    I made a blog post about this not too long ago. Check it out here…
    Hiding Affiliate Links

    #751630
    Anonymous
    Inactive

    Thanks for your replies. I don’t know php.

    Greg, i cannot see a copy and paste code on your page but I took the code from the source file.

    So would a correct code to Poker Stars look like that?

    Poker Stars

    Testing it in IE that is looking very good.

    Do I need any code from the head section? Or is the code just fine like that?

    #751730
    supervince
    Member

    Here is another redirect you could use.

    Create a file called click.php or go.php or anything you want

    Then you could store all your affiliate links like this

    $arr = array(
    “bodog” => “http://your_bodog_affiliate_link.com”,
    “poker-stars” => “http://pokerstarsaffiliatelink.com”,
    “absolute” => “http://absolutepokeraffiliatelink.com”
    );[/CODE]

    You can add or remove any links you want and just keep them in one big list like above. Just make sure to put a comma after every one except the last one.

    Then you would do the redirect with the following code

    [CODE]header(“location: “.$arr($_GET[‘id’]));[/CODE]

    Here is a script you can copy and paste. Just change the links to your affiliate links and add any more you need.

    [CODE]http://your_bodog_affiliate_link.com’,
    ‘poker-stars’ => ‘http://pokerstarsaffiliatelink.com’,
    ‘absolute’ => ‘http://absolutepokeraffiliatelink.com’
    );

    $link = isset($_GET[‘id’]) ? $arr($_GET[‘id’]) : ‘http://yoursite.com/sitemap’;

    header(‘location: ‘.$link);

    ?>[/CODE]

    Now if you want to redirect the user to bodog casino you would set up your link like this

    [CODE]Bodog[/CODE]

    or if you want them to go to poker stars…

    [CODE]Poker Stars[/CODE]

    and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).

    Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE]$arr = array(
    “bodog” => “http://your_bodog_affiliate_link.com”,
    “poker-stars” => “http://pokerstarsaffiliatelink.com”,
    “absolute” => “http://absolutepokeraffiliatelink.com”
    );[/CODE]

    You can add or remove any links you want and just keep them in one big list like above. Just make sure to put a comma after every one except the last one.

    Then you would do the redirect with the following code

    header(“location: “.$arr($_GET[‘id’]));[/CODE]

    Here is a script you can copy and paste. Just change the links to your affiliate links and add any more you need.

    [CODE]http://your_bodog_affiliate_link.com’,
    ‘poker-stars’ => ‘http://pokerstarsaffiliatelink.com’,
    ‘absolute’ => ‘http://absolutepokeraffiliatelink.com’
    );

    $link = isset($_GET[‘id’]) ? $arr($_GET[‘id’]) : ‘http://yoursite.com/sitemap’;

    header(‘location: ‘.$link);

    ?>[/CODE]

    Now if you want to redirect the user to bodog casino you would set up your link like this

    [CODE]Bodog[/CODE]

    or if you want them to go to poker stars…

    [CODE]Poker Stars[/CODE]

    and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).

    Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE]header(“location: “.$arr($_GET));[/CODE]

    Here is a script you can copy and paste. Just change the links to your affiliate links and add any more you need.

    http://your_bodog_affiliate_link.com’,
    ‘poker-stars’ => ‘http://pokerstarsaffiliatelink.com’,
    ‘absolute’ => ‘http://absolutepokeraffiliatelink.com’
    );

    $link = isset($_GET[‘id’]) ? $arr($_GET[‘id’]) : ‘http://yoursite.com/sitemap’;

    header(‘location: ‘.$link);

    ?>[/CODE]

    Now if you want to redirect the user to bodog casino you would set up your link like this

    [CODE]Bodog[/CODE]

    or if you want them to go to poker stars…

    [CODE]Poker Stars[/CODE]

    and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).

    Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE] ‘bodog’ => ‘http://your_bodog_affiliate_link.com’,
    ‘poker-stars’ => ‘http://pokerstarsaffiliatelink.com’,
    ‘absolute’ => ‘http://absolutepokeraffiliatelink.com’
    );

    $link = isset($_GET) ? $arr($_GET) : ‘http://yoursite.com/sitemap’;

    header(‘location: ‘.$link);

    ?>[/CODE]

    Now if you want to redirect the user to bodog casino you would set up your link like this

    Bodog[/CODE]

    or if you want them to go to poker stars…

    [CODE]Poker Stars[/CODE]

    and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).

    Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE]Bodog[/CODE]

    or if you want them to go to poker stars…

    Poker Stars[/CODE]

    and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).

    Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE]Poker Stars[/CODE]

    and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).

    Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.

    #752778
    Anonymous
    Inactive

    I get alway this error
    Fatal error: Call to undefined function: array() in /www/htdocs/w0023456d/go.php on line 9

    can someone help me

    #752800
    supervince
    Member

    Sorry I had a typo in there. I’m coding asp for school and vb script uses () instead of [] when referencing an array. It gets confusing when your going back and forth with multiple programming languages.

    Change line 9 to the following and it should work.

    $link = isset($_GET[‘id’]) ? $arr[$_GET[‘id’]] : ‘http://yoursite.com/sitemap’;[/CODE][CODE]$link = isset($_GET) ? $arr[$_GET] : ‘http://yoursite.com/sitemap’;[/CODE]

    #752804
    Anonymous
    Inactive

    Thanks for your help is working now.
    Have i change in Robots.txt
    Disallow: /go.php/
    is that ok?

    #752806
    supervince
    Member

    @poquer777 143626 wrote:

    Thanks for your help is working now.
    Have i change in Robots.txt
    Disallow: /go.php/
    is that ok?

    User-agent: *
    Disallow: /go.php[/CODE][CODE]User-agent: *
    Disallow: /go.php[/CODE]

Viewing 8 posts - 1 through 8 (of 8 total)