target_blank for URL bbcode target_blank for URL bbcode
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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