target_blank for URL bbcode target_blank for URL bbcode
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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