Revision [10701]
This is an old revision of OpenExternalInNewWindow made by JasonHuebel on 2005-08-15 17:28:51.
Open External Links In A New Window
This simple code modification will open external links in a new window. External links are defined as any link that leaves the Wiki (even if they are on the same server).
Locate this line in wikka.php, somewhere around line 662:
return $url ? "<a class=\"ext\" href=\"$url\">$text</a>$external_link_tail" : $text;
and change it to this:
return $url ? "<a class=\"ext\" href=\"$url\" target=\"_new\">$text</a>$external_link_tail" : $text;
That's all there is to it. --JasonHuebel
CategoryUserContributions