uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
multiple domain name websites

Knowledge Base Lobby : uShop Support Conference : Future Features WishList
Dec-16-17 05:44 PM EST
Original Message
multiple domain name websites
Author John Benton on 06-26-2001 at 16:47 (EST)
Many of the websites that I manage have multiple domain names. Unfortunately this makes using the page validation feature of uShop somewhat problematic. I'd like to see a new feature that allows you to enter a list of valid URLs which may access the ushop.pl script. That way if a visitor enters the website from either its .com or .net domain name, they can still make purchases.

Right now I'm either forced to turn the page validation off, or trick visitors into entering the website through the one valid domain name.

Thanks,
John
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  Re: multiple domain name websites Joseph Pishgar, 2001-06-29 10:32:34 (1)
  RE: multiple domain name websites Bill Weiner, 2001-07-01 22:06:48 (2)

Messages In This Discussion
         1. Re: multiple domain name websites
        Author Joseph Pishgar on 06-29-2001 at 10:32 (EST)
The URL validation is in place due to licensing difficulties. Users would place single instances of the uShop software on multiple domains when only one of those domains was a registered for use with uShop.

We will look into your suggestion.

-Joseph
TABLE OF CONTENTS
         2. RE: multiple domain name websites
        Author Bill Weiner on 07-01-2001 at 22:06 (EST)
For people who absolutely must allow different URLs to link to uShop's CGI script (such as those with domains that may or may not have the "www"... such as http://yourdomain.com AND http://www.yourdomain.com) and who wish to keep the "Page Validation" turned "ON"... here is an example modification that can be made to the ushop-lib.pl script:

STEP 1: Make a backup of your current ushop-lib.pl script... just in case.

STEP 2: Open your ushop-lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line (in order to get to the start of the subroutine that validates the referrer:

sub validate_referral_page

STEP 4: Locate the following two lines in that subroutine:

if ((!($referrer_string =~ /$expected_referrer/i)) XX
($referrer_string =~ /^file/i))

STEP 5: Replace those two lines with something like these 8 lines:

$domain2 = 'domain2.com';
$domain3 = 'domain3.com';
$domain4 = 'domain4.com';

if ((!($referrer_string =~ /$expected_referrer/i)) XX
(!($referrer_string =~ /$domain2/i)) XX
(!($referrer_string =~ /$domain3/i)) XX
(!($referrer_string =~ /$domain4/i)) XX
($referrer_string =~ /^file/i))

STEP 6: Save the file (as TEXT if your editor asks)... and try it out!

NOTE: Vertical bars (or pipe) characters do not show up correctly in this forum, so be sure to use vertical bars instead of the XX.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.