target_blank for URL bbcode target_blank for URL bbcode
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

target_blank for URL bbcode

Started by Makc666, July 03, 2006, 11:42:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Makc666

I suggest to change in
/include/functions.inc.php

line
                // We do URLs in several different ways..
                $bbcode_tpl['url']  = '<span class="bblink"><a href="{URL}" rel="external">{DESCRIPTION}</a></span>';


to
                // We do URLs in several different ways..
                $bbcode_tpl['url']  = '<span class="bblink"><a href="{URL}" rel="external" target="_blank">{DESCRIPTION}</a></span>';


P.S. Added target="_blank" after rel="external"

So all URLs in pictures' discriptions will open on a new page...

Nibbler

No, external links should be handled purely via javascript as explained already on this board.

Makc666

Quote from: Nibbler on July 03, 2006, 11:46:44 PM
No, external links should be handled purely via javascript as explained already on this board.
Can you explain your answer more detailed, please...

Joachim Müller