Advanced search  

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]

Pages: [1]   Go Down

Author Topic: target_blank for URL bbcode  (Read 3043 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.03 seconds with 21 queries.