News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Attributes in BB Code?

Started by Colliope, November 11, 2008, 04:10:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Colliope

I'm using 

[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

Colliope

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.


Colliope

Go to: include/functions.inc.php

find

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

and add

target="_blank"

to the <a href tag>

Colliope

Go to: include/functions.inc.php

find

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

and add

target="_blank"

to the <a href tag>