Window.open in the image description field Window.open in the image description field
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Window.open in the image description field

Started by sylmedia, May 11, 2005, 03:11:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sylmedia

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 :

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

to


$bbcode_tpl['url']  = '<span class="bblink"><a href="javascript:;" onMouseUp="MM_openBrWindow("{URL}","Popup","width=640, height=480")" >{DESCRIPTION}</a></span>';


Thanks !

Joachim Müller

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