View Single Post
Old 2006-06-17, 06:05 PM   #10
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
Are you writing the posts, adding links and then having to manually add the target="_blank"?

If so:
In your 'wp-includes/js' directory is a file called "quicktags.js"

On line 371 is the code that handles the 'link' quicktag.
Code:
edButtons[i].tagStart = '<a href="' + URL + '">';
My altered code:
Code:
edButtons[i].tagStart = '<a href="' + URL + '" rel="external">';
Replace the rel="external" with target="_blank" (I use the 'rel' tag with some js, because 'target' is not a valid xhtml tag.)

If not:
How are you getting the posts on your blog? There will be a way to alter the post automagically

http://adultweblogger.com
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote