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: Attributes in BB Code?  (Read 2909 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.021 seconds with 20 queries.