Hi Tobi,
You've discovered a bug!
Here's how to fix it - I've made the change to the Trunk but it won't be reflected until the next release of JBS.
Open /site/components/com_biblestudy/lib/biblestudy.media.class.php
Go to line 377. It will look like this:
case 0: //new window
$playercode =
'<a href="'.$path.'" onclick="window.open(\'index.php?option=com_biblestudy&view=popup&close=1&mediaid='.
$media->id.'\',\'newwindow\',\'width=100, height=100,menubar=no, status=no,location=no,toolbar=no,scrollbars=no\');
return true;" title="'.$media->malttext.' - '.$media->comment.' '.$duration.' '.$filesize.'" target="'.
$media->special.'"><img src="'.$src.'" alt="'.$media->malttext.' - '.$media->comment.' - '.$duration.
' '.$filesize.'" width="'.$width.'" height="'.$height.'" border="0" /></a>';
break;
Change the "0" to a "2" so it looks like this:
case 2: //new window
$playercode =
'<a href="'.$path.'" onclick="window.open(\'index.php?option=com_biblestudy&view=popup&close=1&mediaid='.
$media->id.'\',\'newwindow\',\'width=100, height=100,menubar=no, status=no,location=no,toolbar=no,scrollbars=no\');
return true;" title="'.$media->malttext.' - '.$media->comment.' '.$duration.' '.$filesize.'" target="'.
$media->special.'"><img src="'.$src.'" alt="'.$media->malttext.' - '.$media->comment.' - '.$duration.
' '.$filesize.'" width="'.$width.'" height="'.$height.'" border="0" /></a>';
break;
We changed the parameter of the playertype when Direct to 2, but didn't change it here!
Let me know if this works for you. Expected behavior: a small window opens and closes (that's how we count a "hit") then a new window opens with your link.
Tom