Strange, seems like that should work fine. My onclick code should be appended to the end of any existing onclick code, and since yours returns, my onclick code shouldn't get executed. Are you testing with the latest version of my MOD? Do you have USE_TARGET_ATTRIBUTE set to true or false?stokerpiller wrote:I am using the Highslide JS and a single edit in includes/bbcode.php:primehalo wrote:There should be. What are you doing to open the image in a popup?stokerpiller wrote:Hello
I am working on a mod that shows images included with the IMG BBcode in a popup.
Because these images is external links, I cant make it work with Prime links.
Instead og opening a popup, it opens in a new window.
Is there any way to avoid this?
Code: Select all
'img' => '<a class="highslide" href="$1" onclick="return hs.expand(this)"><img src="$1" style="max-height:210px;" alt="' . $user->lang['IMAGE'] . '" /></a>',