Identify External Links
Searches the text for links outside of the domain of the blog. To these, it adds class=”extlink” (and optionally, target=”_blank”).
Download
Latest version: Download Identify External Links v1.3 [zip]
This plugin has been downloaded 4745 times.


La lista de acronimos incluida contiene más de 300 definiciones, para añadir o quitar alguna solo hay que editar el script. Enlaces Externos : La segunda función que os muestro esta enteramente basada en un plugin de WP , tan solo se encarga de marcar los enlaces externos con una clase diferente, lo que nos permitira variar su formato visual haciendo uso de css. El script examina todos los enlaces contenidos en el articulo y añade
Mark
WordPress Publishing WordPress, XFN, AHT, WSP, Plugins: Spam Karma 2 – Reloaded Adhesive Ad Rotator Auto Links Countdown Counterize Custom Query String Enhanced Post List Identify External Links Headline Images Plugins Used PXS Mail Form SearchHistory Spelling Checker Weighted Words WordCount WordPress Database Backup
Brian’s Latest Comments, CatCount, CJD Spam Nuke, Codex Search, ComCount, Comment Plugger, Customizable Comment Listings, Dashboard Options, Evermore, Firefox Counter, Top/Recent Commenters, Search Hilite, Identify External Links
Identify External Links plugin for WordPress
Countdown Timer Ajax Spell Checker Akismet Bad Behavior Bad Behavior Stats Browser Sniff CA-Credits Code Snippet Cricket Moods EditorMonkey Enhanced Post List Gravatars Identify External Links intouch myMooMus Plugins Used Plugin ShowOnFrontPage Site Statistics Subscribe2 Dunstan’s Time Since Jalenack’s Wordspew Random Quotes
Plugins Used WeatherIcon Adhesive Countdown Timer Akismet CA-Credits Cricket Moods EditorMonkey (Compatible) Gravatars Identify External Links Now Reading Plugins Used Plugin ShowOnFrontPage Site Statistics SmileTAG Subscribe2 WP-UserOnline WP-ContactForm WordPress Database Backup WP-OnlineCounter Random Quotes
Adsense Injection Akismet Custom Query String DoFollow Disable WordPress Widgets Exec-PHP Embedded Video with Link Fold Category List Follow URL Fold Page List Google (XML) Sitemaps Identify External Links Jerome’s Keywords Less Landing sites (de) myGallery Plugins Used Plugin Subscribe To Comments Search Phrases Sayfa Sayac – PostReadCounter (de) Time Zone Terong Related Links
the download link is dead.
[...] Identify External Links searches the text for links outside of the domain of the blog. To these, it adds class=”Âextlink”Â. I modified it to also add target=”Â_blank”Â. [...]
[...] This plugin has been moved to my code section, here. [...]
parseof all: Thank You! Your «Identify External Links» plug-in works great. But one little thing: I can’t get it to «parse» (I hope that’s the right word) the links-list on the sidebar. Check out my site bureaublumenberg to see what I’m talking about … I looked in the phps of my theme and your plug-in — but my knowledge is far from good. I tried to find/create a filter (in your plug-in) around line #63:
... add_filter('the_content', 'wp_external_links', 2);but I have no idea what’s replacement should be. Maybe you’ll have an idea. Thanks in advance, Yoram...
[...] Identify External Links This plugin will add a special CSS class to all links in your entries and in your comments that go to external sites (sites other than your site). [...]
[...] Viper007Bond Member http://txfx.net/code/wordpress/identify-external-links/ Posted: 2005-08-19 10:41:52 # [...]
I’m just wondering if there’s a filter to add to get it to add the external class to the “get_links_list” or any of the other link-displaying options. Thanks.
Cool! Easy to install even for a beginner like me. I’ve made it work in less than a couple of second. I recommend it to everyone. Thank you for this.
Great idea!
For those of us who know *nothing* about php:
Could you please show how to edit the php to get it to add target=”_blank” to external links?
Thanks
I’ve made a version with the target=”_blank” option available at http://andrefrancoislandry.ca/?p=13 for those who know little about PHP.
Is it possible to have the script accept several domains as “internal”, i.e. if you have the blog on DomainA, but have a redirect from DomainB (C, D, E…)?
Grendel,
Yep, I can modify it to do that. I’ll try and do it tonight.
[...] Identify External Links [...]
[...] Identify External Links [...]
When I use the quicktag, your external link identifier think that the more link is an external link instead of properly seeing that it is an internal link. Any suggestions on how to fix this?
Your plugin does not work with the plugin SmartLink, because you have set the priority of 2 for the filter. SmartLink works on priority 5, so your filter starts to early and does not find any “a href=”.
If you change the priority to a value greater than 5, all works fine. I have made the following change to your source, so now it works fine with SmartLink:
add_filter('the_content', 'wp_external_links', 10);add_filter('the_excerpt', 'wp_external_links', 10);
I fixed the “more” link problem which incorrectly parsed the “read the rest of this post” links as external.
My update is available here.
[...] Identify External Links [...]
[...] Identify External Links [...]
How does Your (great) Plugin works with tag generatet links like “get_links_list”Â?
Thanks a lot.
Robert,
get_links_listdoesn’t have a filter, so no. You could, however, use the plugin to filter anything that has a filter.[...] Identify External Links [...]
[...] Identify External Links Riconosce i link esterni al proprio blog a cui si possono dare particolari attributi. [...]
[...] The following Plugins assist with the navigation elements on your site, including various lists of your post entries, creating a table of contents for longer posts, moving from the next and previous entries, and much more. BlogPulse link (http://www.semiologic.com/projects/blogpulse-link/) Lets you easily add links to the BlogPulse conversation tracks of your posts. Bread Crumb Trail Generator (http://jp.jixor.com/archives/2005/01/01/bread-crumb-trail-light) Creates a bread crumb trail for your WordPress site based on the URI structure. Cosmos link (http://www.semiologic.com/projects/cosmos-link/) Lets you easily add links to the BlogPulse conversation tracks of your posts. End of Article (http://www.digitallymedicated.com/blog/archives/2004/09/23/end-of-article-v10rc/) Adds an end-of-article ‘bug’ like those you see in print magazines or on Wired News (useful for multi-page articles or websites with tight, complex layouts). Explicit Category Sort (http://pericat.ca/unlock/archives/2005/02/20/explicit-category-sort-plugin/) Sorts category list in sidebar according to user-defined list. Supports both flat and hierarchical lists. Identify External Links (http://txfx.net/code/wordpress/identify-external-links/) This plugin will add a special CSS class to all links in your entries and in your comments that go to external sites (sites other than your site). Use to add a special icon or target=”_blank” if you wish. Level10 Blog Matrix (http://www.leveltendesign.com/blog/blogs/by-tom/level10-blog-matrix-plugin/) Suite of extended sidebar and navigation template tags that can be filtered by author and category. Includes: category list, author list, archives, calendar, recent posts, links list, pages list, feeds and more. Link Relationship (http://boxofchocolates.ca/archives/2004/06/12/link-relationship-plugin-for-wordpress) Adds link relationship elements to posts for next and previous posts if they exist. Next/Previous Post in Category (http://www.scriptygoddess.com/archives/2004/07/24/nextprevious-posts-in-same-category/) Display a list of next/previous posts in the same category as the current post. Paged Comments (http://www.keyvan.net/code/paged-comments/) Split comments across multiple pages. Previous ‘n’ Posts (http://wpthemes.info/posts/2004/12/07/previous-n-posts/) Show permanent links to the previous ‘n’ posts posted before the current post. Related Post (http://www.w-a-s-a-b-i.com/archives/2004/05/26/wordpress-related-entries-plugin/) A plugin to display any number of entries related to the post being viewed. Related Posts Link (http://erwin.terong.com/2005/09/24/wp-plugin-related-posts-link/) Allows you to create related entries to your post. Simply add related_id or related_post_name to custom fields separated by commas and let the plugin do the rest. SameCat Plugin (http://www.chait.net/index.php?p=87) Outputs a list of posts in the same category as the current (or last) post. Search Pages (http://randomfrequency.net/wordpress/search-pages/) This makes search queries look at pages and posts instead of only posts. A must. Search Reloaded (http://www.semiologic.com/projects/search-reloaded/) An enhanced search engine for WordPress. Smart link (http://www.semiologic.com/projects/smart-link/) Lets you insert links in your posts using natural language rather than urls. Stewart’s Single Page View (http://www.ugelow.com/2005/09/12/stewart-single-page-view/) Gives you the option to see the full text of paged posts on a single page when “?page=all” is called. Terms2posts: Next-generation related posts (http://www.semiologic.com/projects/terms2search/) Leverages Yahoo! terms to find related posts on your web site. Terms2search (http://www.semiologic.com/projects/terms2search/) Converts post Yahoo! terms into search queries on your web site. Terms2tags (http://www.semiologic.com/projects/terms2search/) Converts post Yahoo! terms into links to Technorati tags. WordPress 1.5: WP-PageNavi 1.00 (http://www.lesterchan.net/portfolio/programming.php) – download (http://www.lesterchan.net/others/downloads.php?id=11) – demo (http://www.lesterchan.net/blogs) Adds a page navigation with paging elements to your WordPress. wp-pagesnav (http://www.adsworth.info/wp-pagesnav) Allows one to create dynamic menu’s utilizing the page structure one creates normally. This plugin includes the ability to allow for dynamic highlighting and menus of multiple levels with a number of good options. Note: one may need to read within the *.php file to fully understand the options as they are not completely documented. wp Paginate (http://www.scriptygoddess.com/archives/2004/05/23/wppaginate/) Allows you to paginate pages that display many posts (particularly good for search results, archives, etc). [...]
[...] The same thing goes for Brian’s latest comments plugin and the Identify External Links plugin. [...]
[...] Identify External Links [...]
Great plugin!
Any chance you (or anyone) could tell me how to get it to
a) add a title to the applicable links (e.g.
title="[external link]")but furthermore (I figured out how to do that part myself, it’s this next part I don’t know how to do)
b) add this title to any title the link might already have?
e.g. I might put a link in my post as follows
blahand I’d like this plugin to modify it so it becomes:
blahHmm, that didn’t come out how I expected (or how it did in the live preview)…
That last part should be more like this:
Jaimie,
that would, unfortunately, fall outside of the realm of a quick fix.
Identify External Links 1.2
This plugin lets you style links to external sites differently to links within your site.
No Tags…
[...] Dette er blot et testindlæg for at se om det senest installerede plugin (Identify External Links af Mark Jaquith) virker efter hensigten. Hensigten med dette plugin er at fÃ¥ samtlige links “ud af huset” i alle indlæg, til at Ã¥bne i et nyt vindue, samtidig med at de markeres med et lille ikon () som tydeliggør at her er altsÃ¥ tale om et eksternt link. Det hele sker ganske automatisk (efter at have modificeret plugin’et en lille smule, sÃ¥ det bedre passer til mine behov), uden at jeg behøver gøre andet end at tilføje mine links pÃ¥ nøjagtig den samme mÃ¥de som jeg plejer. [...]
Hi Mark – I have been playing with your very cool external link plug in. Is it possible to make it recognize http://www.domainx.domain.com as an internal link and http://www.domain.com as an external link?
I would be great to know what thisplug actually does.I installed it and saw nothing.The instructions are poorly written nad tell newbies nothing
I am not the author, but it seems pretty straight forward to me. From above:
So when you view your live page any “a href” to a page that is outside of your blog will have a bit of code added (style=”extlink”) added to the url. (Do a view sourrce on the code of a rendered page to see what I mean.
So, until you do the next step of course you will not see anything, because you do not have the appropriate css in your style sheet yet.
Again, from above:
So add a new style to your stylesheet called “a.extlink” and style it how you like. If you don’t know how to style css, then I suggest checking out positioniseverything.net. And look! even in this comment you can see the plugin in action! see that little square box with the arrow in it letting you know that “positioniseverything.net” is an external link? That is what this plugin does.
good luck!
Oh, and one other Mark:
it seems like the external link loses its special styling when the link wraps to a second line (at least if you have an image assigned to it it loses the image). I imagine that this does not really have anything to do with your plugin, per se and more to do with css/html. any ideas for a fix?
Hello. I want to thank you for such a useful script. I’ve been using it since the first day I installed WordPress, and haven’t looked back since.
Unfortunately, though, I recently decided to use Markdown to make the posting process easier. It’s been a few days since I’ve been using it and have gotten very used to it. There’s one problem, though, your plugin won’t work now. I just realized this. I looked at the code and realized it looks at the written text before it gets translated by the markdown plugin. So now I have quite the dilemma: I love your plugin and want to keep using it, but I’ve already written quite a few medium-length posts that I’d hate to have to go into and alter all the link code. And I’d hate to have to write HTML links forever just to accomodate your plugin.
I’m more of a Perl kind of guy, and so it’d take me forever to write the correct string-search syntax to get your plugin to work with markdown. Are you considering making alterations to this code to make it play nice with markdown?
If there’s anything I can help with, let me know. I’m really interested in making these two plugins work well together, so I can have the ease of use of markdown and the efficiency of Identify External Links.
Thanks!
Nevermind! I hadn’t realized that every plugin can be assigned a priority. So I just altered your plugin to be applied after markdown does its thing. And that was that.
Thanks again for such a great plugin!
Heyrsmith,
Change the line that says
$host = $matches[2];toreturn $matches[2];(as the next line is the one that filters out the subdomain). Now the comparison will be done including the subdomain.Serge,
Just what I was going to suggest! What priority did you need to assign it, so that I can make that change in a future version for Markdown compat?
Hey thanks Mark – that works like a charm!
And the fix for my problem noted in post #42 was easy, although I decided not to implement it: just add /*white-space: nowrap;*/ to the css style in question and it forces the link to stay together on one line. This can make for some ugly pages, especially in a fully justified layout.
Thanks for the plugin work and the quick response; keep your eye on your mailbox for something off your Amazon wish list…
The Plugin is great, but it has some problems in my wordpress (1.5.2). If I use the “more-Tag”, I get an anchorlink in the post, which looks like this
“some text as teaser , more text”
With this anchor it gets problems, if there is an external link in the following text… dont know why…
Sorry.. html-tags obviously not accepted.
One more try: The plugin has a bug, if the post-text is build like this:
teaser-text more text more text
Maybe you can have a try…
[...] Zitat von Monika HI ich mache mir die Arbeit und schreibe in den Titel Tag jedes Externen Links einfach Externer Link dazu naja das machen meine Quciktags für mich [...] Monika Es gab da irgendwo auch ein Plugin dazu, das das automatisch macht… http://txfx.net/code/wordpress/identify-external-links/ Sid __________________ Art [...]
[...] If you’re talking about the Identify External Links plugin, then yes, it seems to work fine with WordPress 2.0, so the old version should do. As for donations, you could hit up my Amazon wishlist. [...]
[...] I like to make small changes to Losing it now and then. The latest is the inclusion of those little icons next to links to other sites. Like this one: WordPress. I’d seen this done on a few sites, and thought I’d give it a try here. Being somewhat challenged in the programming department, the way for me to do this was always going to be a plugin. The first one I tried did the job, but wasn’t quite what I was after, as it added the little icon next to images as well as text links, which looked a bit messy. So I looked around some more, and found Identify External Links by Mark Jaquith. Nice and simple, just adds a CSS class value to all off-site links appearing in posts[1]. I just had to define that, upload a suitable link icon, and it worked nicely. It doesn’t do anything to links in the sidebar, which keeps things a bit tidier, while clearly marking links that will take you somewhere else. [...]
[...] Identify External Links [...]
Is there any way to get this plugin to work with the Scripturizer plugin? The links to the bible verses don’t show up with the class=”extlink” in them.
Edit the plugin so that the priority is a higher number. Try 99.
[...] There is a WP plugin to do just that—might serve someone as reference, etc. Offline [...]
[...] Det finns ett plugin med ja Denna har jag precis nu modifierat till just target="_blank" och den ser ut fungera.CODE<?php/*Plugin Name: Identify External LinksPlugin URI: http://txfx.net/code/wordpress/identify-external-links/Description: Searches the text for links outside of the domain of the blog. To these, it adds <strong>class="extlink"</strong>. It could very easily be modified to also add <strong>target="_blank"</strong> as well.Author: Mark JaquithVersion: 1.2Author URI: http://txfx.net/*//* Copyright 2005 Mark Jaquith (email: mark.gpl@txfx.net) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/function wp_get_domain_name_from_uri($uri){ preg_match("/^(http:\/\/)?([^\/]+)/i", $uri, $matches); $host = $matches[2]; preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches); return $matches[0]; }function parse_external_links($matches){ if ( wp_get_domain_name_from_uri($matches[3]) != wp_get_domain_name_from_uri($_SERVER["HTTP_HOST"]) ){ return '<a href="' . $matches[2] . '//' . $matches[3] . '"' . $matches[1] . $matches[4] . ' target="_blank">' . $matches[5] . '</a>'; } else { return '<a href="' . $matches[2] . '//' . $matches[3] . '"' . $matches[1] . $matches[4] . '>' . $matches[5] . '</a>'; }} function wp_external_links($text) { $pattern = '/<a (.*?)href="(.*?)\/\/(.*?)"(.*?)>(.*?)<\/a>/i'; $text = preg_replace_callback($pattern,'parse_external_links',$text); $pattern2 = '/<a (.*?) class="extlink"(.*?)>(.*?)<img (.*?)<\/a>/i'; $text = preg_replace($pattern2, '<a $1 $2>$3<img $4</a>', $text); return $text;}add_filter('the_content', 'wp_external_links', 2);add_filter('the_excerpt', 'wp_external_links', 2);// delete this one if you don't want it run on commentsadd_filter('comment_text', 'wp_external_links', 10);?>Kopiera och spara som identify-external-links.phpP� raden:CODE$matches[4] . ' target="_blank">' . $matches[5] . '</a>';S� st�r normalt:CODE$matches[4] . ' class="extlink">' . $matches[5] . '</a>';S� denna plugin �r ursprungligen t�nk att styla en s�dan l�nk med css i stil med:CODEa.extlink { n�gon css-kod h�r }L�s mera: http://txfx.net/code/wordpress/identify-external-links/Men vad som �r enklare och b�ttre vet jag inte, detta hypatia skriver eller denna plugin. ——————– [...]
[...] Identify External Links adds a CSS class to external links, but does not consider all the other link types mentioned above, no additional options and cannot be configured in the WordPress admin options. [...]
[...] Identify External Links [...]
hi, a long time ago, i posted a problem with smartlink plugin… that time, the problems was solved, now it reappears
maybe latest version changes something? (I’m using 2.3)
i changed the priority to 10, even to 99999999, but is stills without working…
example: link
Did you change the priority on all the hooks? If doing that doesn’t help, I don’t have any clue what’s going on with that other plugin (and actually, I’m updating the plugin now to make the priority very high… it should be run as late as possible, in all situations.)
yes, changed all 3 filters…
Hi, I installed the identify external links plug in, and I am not sure what to do now. Can someone plese help me? I unzipped, moved the php file into the plugins folder and activated it. What else do i have to do?
Which part of the CSS do i put it in or what is a normal way to style it? Sorry, I don’t know this stuff at all as you can probably tell
Any part of the CSS will do. You can style it however you like… I put a little arrow next to it. Look at my CSS to find out how (but use your own arrow image, of course).
Just to test that it is working:
I put that at the bottom of the editing style.css page, and it doesnt work. can you sign on aim possibly?
You did it correctly. You just don’t have any external links in your entries (except for one, but it is an image). The ESPN link you tried to make is missing
http://so it actually points to your own site. Fix that link and it’ll work.THANK YOU so much! I appreciate your help more than words right now. Really, it was so great that you replied to me so quickly!
[...] External links – opens external links in a new window – sort of [...]
[...] Identify External Links 1.3Externe links worden duidelijk aangegeven. [...]
Hello, I have downloaded and installed/activated your plugin on my site. I have added the CSS a.extlink { } code and the plugin seems to be recognising external links correctly and showing them as such. My one problem is that it will NOT open the external links in a new browser window.
I have:
1) Ensured that the setting at the top of the .php plugin file is set to true (“$txfx_iel_use_target_blank = true;”)
2) Ensured that the plugin file has been uploaded correctly (not so much of an issue as seems to otherwise work)
3) Cleared my browser’s cache (and tried several browsers on several platforms)
Still no luck!!
Have you any advice on what could be causing the new window not to open with this? It’s driving me nuts!
Hi,
Further to the problems I posted above, I seem to have your plugin working with the new-window option for the time being by changing the line
to
This isn’t ideal, hardcoding this into your plugin, but it’s working for now on my blog – seemingly without any side effects.
I look forward to your thoughts on how I could resolve my issues without such an inappropriate fix
(Note, for your information, when I have your non-altered plugin installed with the new-window option == true, the html output on my blog is
- Sorry for the funny formatting here, I’m not sure how to paste code up as is…?)
Hey,
Yeap Version 1.3 will not open in a new window no matter what I do. Yes I set the option correctly and I even tried the “mini-hack” above.
Version 1.2 works fine though so staying with it.
Now I have a request…
And that is you can support all four url versions?
See this to see what I mean:
http://www.war59312.com/archives/2006/03/11/windows_live_messengers_goes_live/#comment-263
See how only the one version is support? Would be awsome if all four versions worked.
Thanks a lot,
Will
Hey,
Never mind Auto-hyperlink URLs plug-in fixes the problem:
http://www.coffee2code.com/archives/2004/07/08/plugin-auto-hyperlink-urls/
Take Care,
Will
Hi,
When I attempt to review the spam comments caught by my Akismet plugin, your plugin seems to be loading, and then timing out. I cannot view my entire list of spam entries… it fails with:
Is there any way you can force the plugin to not evaluate anything coming out of wp-admin?
Excellent plugin, by the way.
Rich.
BlogRodent
[...] Objetivo: Añadido para el plugin Identify External Links que añade el atributo target=”_blank”, tÃtulos automáticos en enlaces donde no se han establecido y asà como en imágenes usadas como enlace. [...]
[...] Identify external links with this plugin, and even get them to open in a new window if you want to be cruel to your readers. Trackback · [...]
Cool plugin – but I have one problem: I use the More-tag in most of my posts. And the “Read the rest of this entry”-link that this tag inserts on my front page is recognized as an external link. Can I do something about this myself?
Thanks.
CaBe,
I don’t see it applying the external links class to those links on your site…
Rich,
Crazy! The regex shouldn’t be taking THAT long. But yes, it can be disabled in the admin… you’d just have it return the text if
is_admin()returns true. I can have that in the next release.Well, that was because I had deactivated the plugin while trying to solve this issue …
Now, I have activated it again …
[...] wp plugin wordpress [...]
[...] Identify External Links [...]
[...] Altera todos os links externos (para fora do dominio culturalivre) de forma a abrirem noutra janela. Há quem não goste que os sites tenham este cmoportamento, mas isso é porque nunca navegaram num browser com várias pataletas, tipo o Firefox! (SITE) [...]
[...] Altera todos os links externos (para fora do dominio culturalivre) de forma a abrirem noutra janela. Há quem não goste que os sites tenham este cmoportamento, mas isso é porque nunca navegaram num browser com várias pataletas, tipo o Firefox! (SITE) [...]
[...] I’ve implemented minor changes around the site: a change of font and font-size for headers, links and whatnot and there’s a new welcome-message (as you may or may not have noticed). And I’ve called in the help of two extra WordPress plugins: the Acronymer and the Identify External Links plugin. Yay for plugins! [...]
Explicit Category Sort (http://pericat.ca/unlock/archives/2005/02/20/explicit-category-sort-plugin/) Sorts category list in sidebar according to user-defined list. Supports both flat and hierarchical lists. Identify External Links (http://txfx.net/code/wordpress/identify-external-links/) This plugin will add a special CSS class to all links in your entries and in your comments that go to external sites (sites other than your site). Use to add a special icon or target=
[...] Identify External Links [...]
Force Word Wrapping Jim Wigginton Google Sitemaps Arne Brachhold Gravatars2 Kip Bond Gravatars2 WP-Cron Kip Bond Head META Description Kaf Oseo HideThis Mark Edwards Hierarchical Categories Pete BonnettIdentify External Links Mark Jaquith Impostercide Scott Merrill Landing site lists The undersigned Lazy-K Gallery Korey Atterberry Log 404 Matt Read META Relationship Links Kaf Oseo Mod-Rewrite Trackback Spam Blocker
[...] Identify External Links: puts a little icon in front of links to external websites [...]
[...] Identify External Links [...]
Identify External Links
“Version 1.3 will not open in a new window no matter what I do”
Sounds great to me, but mine are still opening in a new window.
Is there some way I could get a version that stops links opening up in a new window?
You see, I started my WP blog with target=blank and after a year I’d like to switch.
If I can figure out how to do this without recoding all previous posts, that would be grand.
I imagine a number of people are in my position. Seems to me there’d be more people moving over if we could have a quick fix. Or even a choice like on bloglines where it asks what your preferences are.
you could do a find/replace in the database, or use a filter to remove it on-the-fly…
$text = str_replace(' target="blank"', '', $text);Hi I found a bug in Version 1.3
Your current code recognises two types of hrefs:
href=”http://www.mysite.com/mypage.htm”
-and-
href=”http://www.othersite.com/theirpage.htm”
I modified the code to deal with a type of href that I use on my site, which is
href=”/mypage.htm”
I would like to share the bugfix. Where can I post it?
[...] 10. Identify External Links RE: My top 10 Posted By: Headzoo on 08-26-2006 12:53 pm Posts: 1 [...]
[...] Identify External Links – Identifys links to places beyond the blog and adds a class to their tag so you can add an image or specify styling. [...]
[...] Identify External Links ( http://txfx.net/code/wordpress/identify-external-links/ ): Indentifica vincles externs i els hi posa una classe (class) especial [...]
[...] Es por eso que desde hace mucho tiempo andaba buscando un plugin que hiciera el trabajo sucio por nosotros… pero, sorprendentemente, jamás encontré ninguno que realmente funcionara. Lo más cercano que encontré fue Identify External Links, un plugin que sirve para aplicar el estilo que queramos a los enlaces externos de nuestras entradas. Además en su última versión (ahora parece discontinuado) se le añadió la opción de que abriera los enlaces externos en una nueva ventana… pero la realidad es que no funciona (lo pueden comprobar). [...]