Forum Moderators: coopster
I'd like to have two links on my frame....."Return to mysite.com" and "Close Frame". There are tons of scripts out there that do this......but I haven't seen any that can do the following:
1. When they return to mysite.com, I want them returned to the last page they visited on my site before they clicked the external link.
2. When they decide to close the frame, I want to ensure that the visitor stays on the same page of the external site. The variable in the url doesn't change when they navigate the external site, so I can't use that variable.
There has to be a script floating around that can do this? I'm not a programmer....I can figure out how to modify scripts, but I can't create my own at this time:( Any help is greatly appreciated.
there is no way to browse through the 'history' of a browser. But if the pages on the external site are dynamic, you can add an extra parameter with the number of 'clicks' since entering the external site.
So if the user visits 4 pages in this order index.php, product.php?p=123, product.php?p=125 and product.php?p=777 the URL's will change into
index.php?n=1
product.php?p=123&n=2
product.php?p=125&n=3
product.php?p=777&n=4
If the order is index.php, product.php?p=125, product.php?p=777 and product.php?p=123, it will be
index.php?n=1
product.php?p=125&n=2
product.php?p=777&n=3
product.php?p=123&n=4
As you can see, this will cause problems when bots visit the site because every page will be spidered several times with different values for 'n' causing 'duplicate content'. So it would be beter to handle the counter with a session ID or use 'POST' forms.
1. Stores the last URL they visited on my site and returns the visitor to that URL when they choose to return to my site.
2. Allows you to close the frame.
3. Doesn't have a user interface that you must use.
4. Stops different sites from using my frame redirection by checking the referer.
I've downloaded a TON of frame redirection scripts from Hotscripts, CGIresource, etc., but none of them met those requirements. There has to be a script around that meets those requirements? I'm in the process of learning PHP, but I would love to get this frame redirection working ASAP.