Forum Moderators: coopster

Message Too Old, No Replies

External link redirection using frames

         

Psycho1

9:43 am on May 14, 2003 (gmt 0)

10+ Year Member



I have a large directory of external links and I would like to slap a frame pointing back to my site when a visitor goes to an external site. That was fairly easy to accomplish....now my external links are formatted as
[mysite.com...]

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.

takagi

1:33 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Psycho1,

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.

Psycho1

9:19 pm on May 12, 2003 (gmt 0)

10+ Year Member



So the second task can only be accomplished when the external site is dynamic? That's not going to work as most of my external links are static:(

Psycho1

9:16 pm on May 16, 2003 (gmt 0)

10+ Year Member



Can anyone recomment a frame redirection script that:

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.