forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Colliope on November 11, 2008, 04:10:27 pm

Title: Attributes in BB Code?
Post by: Colliope 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
Title: Re: Attributes in BB Code?
Post by: Colliope 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.

Title: Re: Attributes in BB Code?
Post by: Colliope 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>
Title: Re: Attributes in BB Code? - SOLVED
Post by: Colliope 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>