Advanced search  

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

Pages: [1]   Go Down

Author Topic: target_blank for URL bbcode  (Read 3491 times)

0 Members and 1 Guest are viewing this topic.

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
target_blank for URL bbcode
« on: July 03, 2006, 11:42:20 pm »

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

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

to
Code: [Select]
                // 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...
« Last Edit: July 04, 2006, 12:01:18 am by Nibbler »
Logged

Nibbler

  • Guest
Re: target_blank for URL bbcode
« Reply #1 on: July 03, 2006, 11:46:44 pm »

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

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
Re: target_blank for URL bbcode
« Reply #2 on: July 03, 2006, 11:51:56 pm »

No, external links should be handled purely via javascript as explained already on this board.
Can you explain your answer more detailed, please...
Logged

Joachim Mller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.