Free Hosted Gallery Script Needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Keev
    Confirmed User
    • May 2001
    • 5335

    #1

    Free Hosted Gallery Script Needed

    I am in need of a script that can generate the linking codes for affiliates on the fly...

    rotating gallery script for affiliates

    etc.....

    I know some people have them already developed if you can msg me and havea url in hand of one in use I would be interested.


    10 44 63 163
    ReliableServers.com - NO REF LINK!
  • FuqALot
    Confirmed User
    • Dec 2001
    • 3817

    #2
    I posted this before on this board but here it is.

    Hi... here's a simple code im just writing now.. so if you need help hit me up.

    create a file named rotate.cgi or something and put it in a directory where you also have all the possible rotated .html galleries. (so like yourdomain.com/galleries/rotate.cgi)

    put the following code in it:

    #!/usr/bin/perl
    $usrid = $ENV{'QUERY_STRING'};
    print "Content-type:text/html\n\n";
    @galleries = <*.html>;
    $galleryfile = $galleries[int(rand(@galleries))];
    open(gallery,$galleryfile);
    @galindex = <gallery>;
    close(gallery);
    foreach $line (@galindex) {
    $line =~ s/%revid%/$usrid/g;
    print $line;
    }

    In your galleries, replace the REVID, with %revid%, so the script knows where to insert the users id.

    Then let people visit like this:
    http://www.yourdomain.com/galleries/rotate.cgi?XXXXXX

    Now a random gallery will be picked and
    the %revid% will be replaced with XXXXXX and gallery will be printed.

    Just wrote it, but it's that easy that it should work. Heh.
    Last edited by FuqALot; 02-20-2003, 09:27 AM.

    Comment

    • Keev
      Confirmed User
      • May 2001
      • 5335

      #3
      anyone with a php version?
      ReliableServers.com - NO REF LINK!

      Comment

      • Brujah
        Beer Money Baron
        • Jan 2001
        • 22157

        #4
        Lots of solutions you can use through this, and free.
        http://www.hotscripts.com/PHP/Script...g/Random_Text/

        I'd be happy to help you free to get any of those setup or customized Keev.

        Comment

        • chodadog
          Confirmed User
          • Apr 2002
          • 9736

          #5
          ICQ Me: 83032884
          26 + 6 = 1

          Comment

          • picindex
            Confirmed User
            • Oct 2002
            • 1038

            #6
            Originally posted by FuqALot
            I posted this before on this board but here it is.

            Hi... here's a simple code im just writing now.. so if you need help hit me up.

            create a file named rotate.cgi or something and put it in a directory where you also have all the possible rotated .html galleries. (so like yourdomain.com/galleries/rotate.cgi)

            put the following code in it:

            #!/usr/bin/perl
            $usrid = $ENV{'QUERY_STRING'};
            print "Content-type:text/html\n\n";
            @galleries = <*.html>;
            $galleryfile = $galleries[int(rand(@galleries))];
            open(gallery,$galleryfile);
            @galindex = <gallery>;
            close(gallery);
            foreach $line (@galindex) {
            $line =~ s/%revid%/$usrid/g;
            print $line;
            }

            In your galleries, replace the REVID, with %revid%, so the script knows where to insert the users id.

            Then let people visit like this:
            http://www.yourdomain.com/galleries/rotate.cgi?XXXXXX

            Now a random gallery will be picked and
            the %revid% will be replaced with XXXXXX and gallery will be printed.

            Just wrote it, but it's that easy that it should work. Heh.
            Just tested it and it worked... thanks
            Good Content:

            Comment

            Working...