Need a script - Even if its a free script - I'll send you $

Discussion in 'Scripts' started by rochow, Jan 5, 2007.

  1. #1
    Ok

    I need a script for awesomeproxies.com so that the list is shuffled everytime its visited, so each site gets a turn at the top and bottom.
    I've found lots of scripts where it displays random text, but that's one link OR the other, not all of them!

    If you need an example because I am unclear, go to proxy.org and refresh the page... The list on the right is reshuffled... kind of the same concept, except mines not in a box its the page!

    Hope thats clear :) If you have anymore questions ask, I'll pay for a script that does this, because its not fair on those who paid links for some of them to be at the bottom and others be at the top and get more traffic
     
    rochow, Jan 5, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    Will java do or does it have to be php?
     
    Colbyt, Jan 6, 2007 IP
  3. EJRaven

    EJRaven Active Member

    Messages:
    253
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Here is a couple of solutions for you buddy.

    To show several different banners use my custom random script below co-written by Cyb.

    http://www.phpRaven.com/random.zip

    Now put all of your banners in the "images" folder and instead of calling your "banner.jpg" change for "random.php" and it will call up all randomly all of the images in the images folder.

    But what I think you are asking for is a random banner generator.

    Here is the code:

    <SCRIPT>
    
    <!-- written by The Omega   
    
    
    // put info for randomly selected banners here, as in the examples
    // where banner1 is the image of the banner
    // link is the link to the advertiser
    // alt and text is the extra text you place in your banners
    
    gfx0="banner1.gif";
    
    lnk0="advertiser1link.html";
    
    alt0="Alt code 1";
    
    txt0="Tagline 1";
    
    gfx1="banner2.gif";
    
    lnk1="advertiser2link.html";
    
    alt1="Alt code 2";
    
    txt1="Tagline 2";
    
    gfx2="banner3.gif";
    
    lnk2="advertiser3link.html";
    
    alt2="Alt code 3";
    
    txt2="Tagline 3";
    
    len=3;  // Please change this number so that it equal number of banners you are displaying.
    
    
    
    today=new Date();
    
    today=today.getTime()/10;
    
    rnd=today%len;
    
    document.writeln('<A HREF="'+eval("lnk"+rnd)+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("alt"+rnd)+'"><BR>'+eval("txt"+rnd)+'</A>');
    
    //-->
    
    </SCRIPT>
    Code (markup):
    Hope this helps and you.
     
    EJRaven, Jan 6, 2007 IP
  4. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #4
    Thanks EjRaven, but I'm after text, not a banner shuffler

    If you look at the page, there are a huge list of sites.

    What I want is that everytime someone visits the page, those sites are arranged in random order.
     
    rochow, Jan 6, 2007 IP
  5. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #5
    I thought you wanted sequence rotatation. As in the top 3 become the bottom three next page load.
     
    Colbyt, Jan 6, 2007 IP
  6. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #6
    That would work also Colbyt

    Either way - it just has to be displayed so every site has a fairly equal amount of time at the top & bottom
     
    rochow, Jan 6, 2007 IP
  7. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #7
    Equal number of pageviews is possible.


    How are your links stored now?
    In a DB? mysql? flat file?
    Page is static?
    How do they get added? by user? by you?

    What do you think of a max number of links? None?
     
    Colbyt, Jan 6, 2007 IP
  8. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #8
    It's just a static html with links
    I manually update the page

    I don't want a mysql database because of hosting restrictions

    No max number of links, I control this myself manually anyway
     
    rochow, Jan 6, 2007 IP
  9. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You can also rotate text using some of the basics given by EjRaven, whether using javascript, cgi or php:

    www.teca-scripts.com/free/randex.php
    www.oziz.co.uk/scripts/php_random.php
    www.scriptarchive.com/rand_text.html
    www.webdevelopersnotes.com/tutorials/javascript/random_text_display_using_javascript.php3
    www.irt.org/articles/js017/index.htm

    just to list a few.
     
    Pat Gael, Jan 6, 2007 IP
  10. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #10
    Hey man. Dont shuffle it, I paid for a place at the top until I get pushed down by the next buyer. :)
     
    login, Jan 6, 2007 IP
  11. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #11
    Yes but I've had some buyers complain they pay $5, get great traffic, and then 10 more people buy and they get little to none, even though they pay the same as everyone else

    I need this to make it fair for everyone :)

    I'm going to checkout the sites Pat suggested and see if they have something

    EDIT: I think the first one has what I'm looking for, but I'm not quite sure. If somebody could take a look and help me out it would be great :D

    YET ANOTHER EDIT: I think it does what I want (the first one), but the only problem is that I have to store each variation the way I want it to appear. That also means that if I add 1 site, I have to put it in 5 or so times for each random place! I'll use this script if I absolutely must, however I am still looking for one which shuffles :)

    EDIT 3: If the above doesn't make sense, think of it like this. I have site A,B,C. In the text file, I have to write: A,B,C [BREAK] B,C,A [BREAK] C,B,A [BREAK]. When you have over 20 sites listed, not only will it take ages to make, it will also be a pain to add 1 extra site and also take a hell of a long time to load!
     
    rochow, Jan 6, 2007 IP
  12. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #12
     
    Colbyt, Jan 6, 2007 IP
  13. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #13
    My terms is $5 for a listing, that's all I want.

    I need a script to do what I have mentioned in previous posts
     
    rochow, Jan 7, 2007 IP
  14. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #14
    Rochow you need to delete some messages. I can't PM you. Mailbox is full.

    I will PM you the information some time on Monday about the script.
     
    Colbyt, Jan 7, 2007 IP
  15. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #15
    I deleted some PM's
     
    rochow, Jan 7, 2007 IP