Sorry, have been a bit busy the last few days. Never a bad thing
I'd set this up for Revo but converted it over to Evo for you. Both versions are attached. Basically, the plugin fires when a page is being loaded. It finds all links on the page and checks to see if they are external or not; if external, it is replaced with a link to your 'disclaimer' page. The snippet will be on the disclaimer page waiting to catch and display the external link, with another link back to the previous page.
Please note that if the external link does not begin with a valid url scheme such as 'http', 'https', 'ftp', 'file', or 'mailto' it will not be recognised as an external link and the user will end up on your 404 page. See below if you need to add more schemes.
Setup instructions:
snippet.exthref.php
Create a new snippet called 'extHref' and paste the contents of the file provided.
Create a new document for your 'disclaimer' page. Paste in the following snippet call where you want your links to appear:
[!extHref? &tpl=`linksTpl`!]
Where 'linksTpl' is the name of a chunk you will create in the next step.
Create the chunk 'linksTpl' containing something like this:
<ul>
<li><a title="Return to Website" href="[+back+]">Return to Website</a></li>
<li><a title="Continue to [+link+]" href="[+link+]">Continue to [+link+]</a></li>
</ul>
Note- you can change the markup to whatever you need, just note the placeholders [+back+] (previous page) and [+link+] (external link).
plugin.exthref.php
Create a new plugin called 'extHref' and paste the contents of the file provided.
Scroll down to...
/* *** DISCLAIMER PAGE ID *************** */
$outbound = '1';
...and change '1' to the id of the disclaimer page containing the extHref snippet call.
If you need to add more link schemes, add them here:
/* *** EXTERNAL LINK SCHEMES ************ */
$schemes = 'http,https,ftp,file,mailto';
Before saving the plugin, click the System Events tab and check the box next to 'OnWebPagePrerender'.
And... that's it. Hope it makes sense and let me know if you have any issues.
Edit - download links were broken. I've re-uploaded the files, but can't remove the original links. Use the bottom two.
[ed. note: okyanet last edited this post 10 years, 9 months ago.]