Hosted gallery script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • loco12
    Confirmed User
    • Aug 2003
    • 638

    #1

    Hosted gallery script

    OK my affiliate program is growing and I am making galleries every day for affiliates. But I have a guy doing it all by hand and its crazy.

    So whats the best way of doing this?

    Basically I have about 200 movie galleries made up, and I want to host it for the affliiates, who just need at add their code some way and start posting the galleries out there.

    Best method/script? How do I go about this the easiest way?
    CCBill is the processor.
  • Lycanthrope
    Confirmed User
    • Jan 2004
    • 4517

    #2
    You'll have to use php.

    Add this to the top of your galleries: (this grabs a variable and in this case it will be your aff's ID. You can also set a default webmaster ID for tracking purposes. If you don't want to use one, delete the entire if statement (everything from if to the closing bracket).

    Code:
    <?php
    
    $wmid = $_SERVER["QUERY_STRING"];
    if ($wmid == "")
    {
    $wmid = DEFAULT;
    }
    
    ?>
    Then, on your links through ccbill, (where the partner account "PA" variable is insert <?=$wmid?> so a link through would look like so: http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=000000-0000&PA=<?=$wmid?>&HTML=http://www.yoursite.com

    Now just have your affiliates link to the gallery like so: http://www.domain.com/gallery/?000000 where 000000 is their aff. id

    Since you have already built these galleries, you are going to have to find some sort of find and replace utility to add things, but even then, it wouldn't be a bad idea to verify each one to eliminate the chance of pissing off affiliates :P

    Feel free to hit me up w/ any ?s...

    Comment

    • loco12
      Confirmed User
      • Aug 2003
      • 638

      #3
      Thanks for that. I thik I will try it out on a new affiliate id first to see if I have it right. Certainly don't want to upset the affiliates!!

      Comment

      • loco12
        Confirmed User
        • Aug 2003
        • 638

        #4
        Can't get it to work. When I add the top code the page just goes white and doesn't load. Tried inside the head and outside of it.

        Very frustrating.

        Comment

        • Lycanthrope
          Confirmed User
          • Jan 2004
          • 4517

          #5
          It must be the very first to appear on your page, even before the doc type and <html...> tag
          Last edited by Lycanthrope; 02-12-2007, 03:00 AM. Reason: clarity

          Comment

          Working...