clickbank links changing

1 replies
Hi, I am wondering if its possible to put clickbank links for example in a widget in wordpress and let them automatic change in other clickbank links.

Hope you understand what I am writing.

I am not a programmer but I guess there are scripts for this.
#changing #clickbank #links
  • Profile picture of the author unnatural
    Here's a quick PHP script that will do that:


    PHP Code:
    //if image is left empty a normal text link will be used, otherwise it will use the image as the link
    $cb_links = array(
    array(
    "link" => "http://someclickbank-hoplink.com""anchor" => "Some Title Here","image" => ""),
    array(
    "link" => "http://link2.com""anchor" => "Some Title Here","image" => "http://yoursite.com/someimg.jpg"),
    array(
    "link" => "http://link3.com""anchor" => "Some Title Here","image" => ""),
    array(
    "link" => "http://link4""anchor" => "Some Title Here","image" => "http://yoursite.com/someimg.jpg"),
    array(
    "link" => "link5""anchor" => "Some Title Here","image" => "http://yoursite.com/someimg.jpg")

    );

    $key array_rand($cb_links,1);

    $cur_link $cb_links[$key];

    if (!empty(
    $cur_link['image'])) {

        echo 
    "<a href=\"{$cur_link['link']}\"  title=\"{$cur_link['anchor']}\"><img src=\"{$cur_link['image']}\"  border=\"0\" /></a>";

    } else {

        echo 
    "<a href=\"{$cur_link['link']}\" title=\"{$cur_link['anchor']}\">{$cur_link['anchor']}</a>";


    {{ DiscussionBoard.errors[4544957].message }}

Trending Topics