1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

URL Rotator Script needed

Discussion in 'PHP & Perl' started by makromedia, Aug 30, 2009.

  1. makromedia

    makromedia Registered Member

    Joined:
    Jul 3, 2008
    Messages:
    71
    Likes Received:
    1
    Occupation:
    self-employed
    Location:
    Austria
    Hi mates,

    I own a modified version of Interspire Email Marketer which can process pop3 and also imap accounts. Currently I want my programmer do expand it with an "Url (text link) Rotator" which includes affiliate links in outgoing emails by variables. For this I need a Url/text link rotator script as a basis so that my programmer can use, modify and integrate it in IEM. Can anyone recommend a proper script for this purpose or have anyone a copy of http://codefu.net "URL Rotator Script v3" which seems appropriately. Also if anybody have a self coded solution for this ready just send me a pm!

    Thank you,
    makromedia
     
  2. ezln1994

    ezln1994 Registered Member

    Joined:
    Aug 11, 2009
    Messages:
    84
    Likes Received:
    32
    Location:
    Germany
    Take a look here:

    http://www.findmysoft.com/scripts/url_rotator_script/
     
  3. 00CivicEX

    00CivicEX Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 3, 2009
    Messages:
    293
    Likes Received:
    214
    Why not just code in something like this:

    PHP:
    $mylink[1] = 'www.google.com'
    $mylink[2] = 'www.google.com';
    $mylink[3] = 'www.google.com';
    $mylink[4] = 'www.google.com';
    $id rand(1,count($mylink));
    echo 
    "<a href=\"$mylink[$id]\">CLICK HERE</a> \n";
    OR If u want it in variables so easy changable

    PHP:
    $url1 $_POST["url1"];
    $url2 $_POST["url2"];
    $url3 $_POST["url3"];
    $url4 $_POST["url4"];
     
    $mylink[1] = '$url1'
    $mylink[2] = '$url2';
    $mylink[3] = '$url3';
    $mylink[4] = '$url4';
    $id rand(1,count($mylink));
    echo 
    "<a href=\"$mylink[$id]\">CLICK HERE</a> \n";
    then on your admin panel have something like this

    Code:
    <form method="post" action="post.php"> 
    URL #1:<input type="text" size="12" maxlength="80" [COLOR=#ff0000]name="url1"[/COLOR]><br /> 
    URL #2:<input type="text" size="12" maxlength="80" [COLOR=#ff0000]name="url2"[/COLOR]><br />
    Etc... Post.php is just example...
     
    • Thanks Thanks x 1
    Last edited: Sep 11, 2009
  4. makromedia

    makromedia Registered Member

    Joined:
    Jul 3, 2008
    Messages:
    71
    Likes Received:
    1
    Occupation:
    self-employed
    Location:
    Austria
    Thank you 00CivicEX for your code example. But I'm afraid I need some more extensive functions as link rotating definied with a specific weight ratios (% or 1-10). So a link with weight 10 get 10x more often rotated than a link with a weight of 1. And the most important thing is I need this all fully integrated in Interspire Email Marketer :) And some more features I need. As I said the "URL Rotator Script v3" from http://codefu.net covers the most of my needs.
     
    Last edited: Sep 11, 2009
  5. 00CivicEX

    00CivicEX Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 3, 2009
    Messages:
    293
    Likes Received:
    214
    thats easy too, your coder should be able to do that no problem
     
  6. makromedia

    makromedia Registered Member

    Joined:
    Jul 3, 2008
    Messages:
    71
    Likes Received:
    1
    Occupation:
    self-employed
    Location:
    Austria
    Okay thanks. I'm just talking to my programmer about it. Maybe I'm willing to share our expanded version if Interspire Emailmarketer here ;)