Top

mcfd90 on "External Link Warning"

February 12, 2010 by David Olsen 

I need a plugin through which links are directed (e.g. pluginname.php?http://www.google.co.uk) and display a page (following the template of the rest of the site) stating that this is an external link and this blog is not responsible for its content. If back is not clicked will redirect in five seconds or click here to do so now.

I’m aware that this could be done with JavaScript but seek a solution which will work without JS – that said all suggestions will be greatly appreciated.

Many thanks.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Bookmark

Related posts:

  1. luizaquino on "[Plugin: Frontpage-Slideshow] There is conflict with Google Friend Connect?" Hi Jeff, sorry for my bad english. Before placing Frontpage-Slideshow...
  2. iamjadiam on "PHP warning about plugin.php What does it mean and what should I do" When you visit my site (www.shilohcpc.org), you’ll see the following...
  3. young heff on "Making Gallery Images Clickable To External URL" I’ve Played Around With The WordPress “Gallery” Feature And It...
  4. bernd25 on ""Read More Link" jumps to top of page" Hi, I’m using the following code to jump to the...
  5. wptobbe on "Queried posts and edit this entry doesn’t get along" I have a static frontpage where i have four textfields...

Related posts brought to you by Yet Another Related Posts Plugin.

Comments

3 Responses to “mcfd90 on "External Link Warning"”

  1. Tom Newport on February 17th, 2010 4:20 pm

    Same issue here. I’ll let you know if I find anything.

  2. Tom Newport on February 17th, 2010 5:34 pm

    I’ve solved it!

    This is a really cheap and dirty hack, but it works.

    If you go to http://www.girlguidingbeaconsfield.org.uk/?p=25 and click ‘Read more at Bucks Free Press’, you can see it in action.

    Download the plugin ‘wp-noexternallinks’ and edit’ wp-noexternallinks/wp-noexternallinks-parser.php’.
    Replace line 9 with:

    $sep=”.$wp_noexternallinks_parser->LINK_SEP.’=';

    and line 72 with:

    $this->LINK_SEP=’/external_link.php?go2′;

    Then create a file called ‘external_link.php’ at your wordpress root. Add the HTML to the file, warning users that they are leaving your site, and then add a link as follows:

    <a href="”>Take me to the page.

    If this fails, let me know.

    Also let me know if you find/think of a cleaner way to do this. It is amongst the most shameful hacks I have ever attempted.

  3. Jay on April 1st, 2010 10:46 am

    Something isn’t working here…I got all the way to the final href link, but it just goes to the same page. Could you post the exact code from the example site?

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!





Security Code:

Bottom