Welcome, Guest
Username Password: Remember me

Pop Up Issue
(1 viewing) (1) Guest
Questions or help on playing media files through the internal players or streaming

TOPIC: Pop Up Issue

Pop Up Issue 11 Oct 2011 08:02 #2897

  • tobisagt
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
Hello, im back again

Today there are a few issues with the pop up.
I remember in the old biblestudy version if i want to open a file, the pop up comes up, closed itself, and the file opened in a new window.
It wasnt a problem to open pdf files or link to other sites like youtube.

Is it possible just to open a file in a new window? If i cant customize that in the admin configuration, it would be nice if you can tell me how to change that in the core, if its not much work.

Best regards
Tobi

Re: Pop Up Issue 11 Oct 2011 13:48 #2898

  • Tom
  • OFFLINE
  • Moderator
  • Posts: 311
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
The following user(s) said Thank You: tobisagt

Re: Pop Up Issue 12 Oct 2011 05:43 #2903

  • tobisagt
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
It work like a charm! Thank YOu!!

Re: Pop Up Issue 19 Dec 2011 17:13 #3034

Hi Tom,

I don't know if this is the same problem but I have a problem with my popup window. A small black window opens but thats it.

I tried modifying line 377 in biblestudy.media.class.php to 2 but its not doing anything.
Can you take a look at it?

http://ccsuncity.org/beta/jupgrade/index.../audio/bible-studies

Thank you,

Erik Chavez

Re: Pop Up Issue 19 Dec 2011 19:32 #3035

Please open a support Ticket under support so we can help you with the problem. We will update the form if we find a solution to share.
Thanks,
Brent Cordis
Joomla Bible Study Team Member

Re: Pop Up Issue 20 Dec 2011 07:37 #3036

  • Tom
  • OFFLINE
  • Moderator
  • Posts: 311
Also be sure to look carefully at what you are setting for the media player - internal, All Videos, etc. Looks like in the source of the popup there is no media player info.

It seems you are using player 3 which is JPlayer or All Videos plugin - make sure they are installed!
Moderators: Nick Fossen
Time to create page: 0.80 seconds