www.uburst.com www.uburst.com

"multiple domain name websites"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Future Feature Wish List
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"multiple domain name websites"
Posted by John Benton on Jun-26-01 at 04:47 PM (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

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

Re: multiple domain name websites, Joseph Pishgar, Jun-29-01, (1)
RE: multiple domain name websites, Bill Weiner, Jul-01-01, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "Re: multiple domain name websites"
Posted by Joseph Pishgar on Jun-29-01 at 10:32 AM (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

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: multiple domain name websites"
Posted by Bill Weiner on Jul-01-01 at 10:06 PM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.