URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: ushop_future
Thread Number: 79
[ Go back to previous page ]

Original Message
"multiple domain name websites"

Posted by John Benton [Benton@NoelleDesign.com] on at 04:47 PM
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.


Table of contents

Messages in this discussion
"Re: multiple domain name websites"
Posted by Joseph Pishgar [support@uburst.com] on at 10:32 AM
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.


"RE: multiple domain name websites"
Posted by Bill Weiner on at 10:06 PM
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.