Results 1 to 4 of 4
  1. #1
    ShareASale President/CEO and ABW Veteran Brian - ShareASale's Avatar
    Join Date
    January 18th, 2005
    Posts
    3,657
    Hey all...

    For those who don't think the redirect option is a good one for the "temporary offline" problem - I am offering up a very simple script - written in .php since it is the most common language running on most webservers these days. If this page were to be called http://www.example.com/offlineredirect.php


      

    <?
    $email = "example@example.com";


    mail("$email",
    "SAS: Merchant $merchantID Has Gone Offline",
    "SAS MerchantID $merchantID is currently offline. Refering page was $refer.\n",
    "From: $email");

    ?>

    This page is generated because the
    merchant's offer is currently offline.



    You will need to replace the email address obviously, as it is currently set at example@example.com which is invalid. Put your address in there, load it up on your server, point your offline redirect to that page - and this will email you whenever a merchant is offline and a click is attempted.
    Thanks,

    Brian Littleton
    President/CEO - ShareASale.com, Inc.

  2. #2
    ShareASale President/CEO and ABW Veteran Brian - ShareASale's Avatar
    Join Date
    January 18th, 2005
    Posts
    3,657
    CFusion Version:
      


    <CFMAIL to="example@example.com"
    from="example@example.com"
    Subject="SAS: Merchant Has Gone Offline"
    >

    SAS MerchantID #URL.merchantID# is currently offline.
    Refering page was #URL.refer#.
    </CFMAIL>

    This page is generated because the
    merchant's offer is currently offline.

    Thanks,

    Brian Littleton
    President/CEO - ShareASale.com, Inc.

  3. #3
    Animal Lover
    Join Date
    January 18th, 2005
    Location
    oz
    Posts
    1,210
    Brian,

    shouldn't there be a 'Get' function to get the MerchantID? Maybe I'm missing something? Is the MerchantID already in the parameters for the redirect from http://www.example.com/offlineredirect.php

    Oscar
    My DataFeed Scripts - php datafeed scripts for your site
    Shareasale datafeed scripts - to display Shareasale datafeeds
    Linkshare datafeed scripts - for multiple Linkshare merchants

  4. #4
    ShareASale President/CEO and ABW Veteran Brian - ShareASale's Avatar
    Join Date
    January 18th, 2005
    Posts
    3,657
    Oscar,

    Yes, the parameter is sent in the URL...
    Thanks,

    Brian Littleton
    President/CEO - ShareASale.com, Inc.

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. So Sick of Temporary Offline
    By janew in forum ShareASale - SAS
    Replies: 91
    Last Post: February 18th, 2011, 10:14 AM
  2. Error Redirect for offline merchants
    By zimmy in forum ShareASale - SAS
    Replies: 2
    Last Post: August 15th, 2005, 09:41 AM
  3. Where's the redirect for offline merchants?
    By suzie250 in forum ShareASale - SAS
    Replies: 10
    Last Post: August 1st, 2005, 07:34 PM
  4. Help With - PHP REDIRECT
    By AddHandler in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: March 25th, 2005, 04:43 PM
  5. Redirect html to php--2
    By frank3iii in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: July 20th, 2004, 04:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •