Re: Forcing a NEWCART
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13732
interpreted = N
texte = At 10:08 AM -0800 10/3/97, Grant Hulbert is rumored to have typed:> >I'm trying to find a simple solution for forcing a new cart number on> >someone if they come from a page *other* than dhorse.com.>> I assume the problem is other links jumping into the middle of your site.>> How about an [include] at the top of every page that does a check for>referrer^dhorse, and if not then show a message that says Thanks for>visiting, please enter through our front door?That would pretty much defeat the purpose of having our site indexed orasking people to bookmark certain pages.How about this method:Every template has a header in it that reads:[HIDEIF [REFERRER]^dhorse.com][/HIDEIF]Then, every HREF would read:
The only thing that might screw this up is if the page is cached somewhere(like by AOL), but I think there's a META tag that can prevent that fromhappening.Does anyone see anything wrong with this process?MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Associated Messages, from the most recent to the oldest:
At 10:08 AM -0800 10/3/97, Grant Hulbert is rumored to have typed:> >I'm trying to find a simple solution for forcing a new cart number on> >someone if they come from a page *other* than dhorse.com.>> I assume the problem is other links jumping into the middle of your site.>> How about an
[include] at the top of every page that does a check for>referrer^dhorse, and if not then show a message that says Thanks for>visiting, please enter through our front door?That would pretty much defeat the purpose of having our site indexed orasking people to bookmark certain pages.How about this method:Every template has a header in it that reads:[HIDEIF
[referrer]^dhorse.com][/HIDEIF]Then, every HREF would read:
[referrer]^dhorse.com]
[cart][/SHOWIF][HIDEIF
[referrer]^dhorse.com]
[math]NEWCART[/MATH][/HIDEIF]>The only thing that might screw this up is if the page is cached somewhere(like by AOL), but I think there's a META tag that can prevent that fromhappening.Does anyone see anything wrong with this process?MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Michael Winston
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Cookies and domains (2006)
$Replace with [founditems] (1997)
emailer (1997)
Couple of questions (1999)
[ConvertChars] problem (1997)
Used to be good 4.5 to 6 code change (2004)
nested ListWords? (2003)
WebCat2 several catalogs? (1997)
The beginning (1997)
-tmp files (2000)
What kind of request is this? (2002)
Creating 404 Not Found pages (1999)
WebCat2b12 CGI Mac - [shownext] problem (1997)
& in Lookups (1997)
Buying sans cart (1997)
syntax question, not in online refernce (1997)
exact word search (1998)
WebCatalog 4 Install Problems - Not Answered ?? (2000)
Trouble with Netscape (1998)
Permissions / Restart WebDNA? (2005)