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: Attributes in BB Code?  (Read 2709 times)

0 Members and 1 Guest are viewing this topic.

Colliope

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 126
Attributes in BB Code?
« on: November 11, 2008, 04:10:27 pm »

I'm using 

Code: [Select]
[URL=link]Some Text Here[/URL]
in some of my image Descriptions (on the main image view page for each file, not in Thumbnail view.)

I would like the links to open in a new window. With regular HTML I would do that by adding target="_blank" to the <a href>. That doesn't work with BBCode, so is there something else that will?
Thanks,
C
Logged

Colliope

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 126
Re: Attributes in BB Code?
« Reply #1 on: November 11, 2008, 09:39:50 pm »

My phpBB guide on BBCode says that with the above code a link will open in a new window, and it does in my forum.
But it opens in the same window in Coppermine. Don't know why that would be, but looking for a way to change it.

Logged

Colliope

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 126
Re: Attributes in BB Code?
« Reply #2 on: December 05, 2008, 04:19:30 pm »

Go to: include/functions.inc.php

find

Code: [Select]
$bbcode_tpl['url']  = '<span class="bblink"><a href="{URL}" rel="external">
and add

Code: [Select]
target="_blank"

to the <a href tag>
Logged

Colliope

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 126
Re: Attributes in BB Code? - SOLVED
« Reply #3 on: December 05, 2008, 04:21:19 pm »

Go to: include/functions.inc.php

find

Code: [Select]
$bbcode_tpl['url']  = '<span class="bblink"><a href="{URL}" rel="external">
and add

Code: [Select]
target="_blank"

to the <a href tag>
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 16 queries.