Hi everyone,
I'm creating a snippet that checks whether or not the page has been called from my own domain, and if it doesn't, then it shows a splash page.
This is what's currently happening:
http://mydomain.tld = splash
EXTERNAL LINK TO http://mydomain.tld/mypage = no splash
INTERNAL LINK TO http://mydomain.tld/mypage = no splash
I want it to show the splash irrespective of the page they are trying to get to, and then go onto the page they tried to view.
So this is what I want to happen:
EXTERNAL LINK TO http://mydomain.tld = splash
EXTERNAL LINK TO http://mydomain.tld/mypage = splash
INTERNAL LINK TO http://mydomain.tld = no splash
INTERNAL LINK TO http://mydomain.tld/mypage = no splash
Edit: removed old unworking code.
Splash Snippet
Started by Dean, Dec 16 2007 04:56 PM
1 reply to this topic
#1
Posted 16 December 2007 - 04:56 PM
#2
Posted 17 December 2007 - 03:58 PM
Ok, this is what I have achieved so far...
http://playground.deanclinton.co.uk/home.html
Clicking Enter will allow you to continue to where you are going, clicking leave takes you back to the referring page.
This is all done without the use of cookies, so if you type the URL in manually, or go from a bookmark, you get to go to where you were going anyway, without the splash page.
You can also enter a list of "allowed" referrers, that don't need to goto the splash page, they go to where they wanted to go anyway.
If you load the site, without a page in the url (i.e. http://playground.deanclinton.co.uk ), then it uses pre-defined variables for the enter and leave link.
http://playground.deanclinton.co.uk/home.html
Clicking Enter will allow you to continue to where you are going, clicking leave takes you back to the referring page.
This is all done without the use of cookies, so if you type the URL in manually, or go from a bookmark, you get to go to where you were going anyway, without the splash page.
You can also enter a list of "allowed" referrers, that don't need to goto the splash page, they go to where they wanted to go anyway.
If you load the site, without a page in the url (i.e. http://playground.deanclinton.co.uk ), then it uses pre-defined variables for the enter and leave link.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users










