forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: sylmedia on May 11, 2005, 03:11:00 am

Title: Window.open in the image description field
Post by: sylmedia on May 11, 2005, 03:11:00 am
I'am trying to open a new window with the JavaScript window.open() function in the image description field. Any solutions ?

In the page functions.inc.php I tried to modified the bb_decode function. Here is what I did and it's not working :

Code: [Select]
$bbcode_tpl['url']  = '<span class="bblink"><a href="{URL}" target="_blank">{DESCRIPTION}</a></span>';
to

Code: [Select]
$bbcode_tpl['url']  = '<span class="bblink"><a href="javascript:;" onMouseUp="MM_openBrWindow("{URL}","Popup","width=640, height=480")" >{DESCRIPTION}</a></span>';
Thanks !
Title: Re: Window.open in the image description field
Post by: Joachim Müller on May 11, 2005, 11:02:18 am
do not double-post; you already posted the very same question here: http://forum.coppermine-gallery.net/index.php?topic=11395.msg82224#msg82224
There are several reasons why people won't answer your questions, read http://coppermine.sourceforge.net/faq.php#lamesupport