jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: fritzula on 30.07.2018 15:10:02

Title: Conflict with RokBox and Mediabox [not a bug Config issue]
Post by: fritzula on 30.07.2018 15:10:02
Using MAMP I have installed JDownloads on Joomla 3.8.10. I have also installed RokBox 2.0.14. If they are both on the same page and I  apply the RokBox YouTube lightbox function the lightbox function does not work and I am taken to the YouTube page instead of getting the expected popup. If they are both on seperate pages they both behave just fine. I figured that there was possibly a problem with Rokbox and so I installed MediaBox Pro and got the same result, ie, no popup and taken directly to YouTube. This suggests that there is a conflict between JDownloads and RokBox and between JDownloads and MediaBox Pro and that the common denominator is JDownloads. Can anyone assist please?

[gelöscht durch Administrator]
Title: Re: Conflict with RokBox and Mediabox [not a bug Config issue]
Post by: ColinM on 30.07.2018 18:25:28
Hi
Could you explain your example a bit more for me please as I have not found a problem!!
I have presumed you were including a Download and a Rokbox link in an article so I tried to reproduce.  But both werer OK
See pics.  First one is a view of the article, second is after clickink =g on Download thumbnail, third is after clicking on Rokbox link.

Colin

[gelöscht durch Administrator]
Title: Re: Conflict with RokBox and Mediabox [not a bug Config issue]
Post by: fritzula on 31.07.2018 06:12:40
Hi Colin

Thank you for your prompt reply.

On the website page I have the MediaBox Pro code

{mediabox t=Abberfield 1::A description|w=1200px|h=753px|src=https://www.youtube.com/watch?v=rgcyW17-pdA}Abberfield 1{/mediabox}

and

{mediabox t=Abberfield 2::A description|w=1200px|h=753px|src=https://www.youtube.com/watch?v=4vNMKX4f9kw}Abberfield 2{/mediabox}

along with the Rokbox code

<table style="width: 915px; margin-left: auto; margin-right: auto;" border="0" cellspacing="5">
    <tbody>
        <tr>
            <td>
                <a href="https://www.youtube.com/watch?v=rgcyW17-pdA&amp;feature=youtu.be" data-rokbox="" data-rokbox-caption="Abberfield 1"><img src="images/home-page/video-thumbs/abberfield-video-1-thumb.jpg" alt="" /></a>
            </td>
            <td>
                <a href="https://www.youtube.com/watch?v=4vNMKX4f9kw&amp;feature=youtu.be" data-rokbox="" data-rokbox-caption="Abberfield 1"><img src="images/home-page/video-thumbs/abberfield-video-2-thumb.jpg" alt="" /></a>
            </td>
        </tr>
    </tbody>
</table>

and the JDownloads shortcode

{jd_file file==1}

{jd_file file==2}

If I delete the JDownloads shortcode and execute either the MediaBox Pro code or the Rokbox code they both behave as expected, ie, they pop up as a lightbox.

When I insert the JDownloads shortcode and execute either the MediaBox Pro code or the Rokbox code they both send me to the YouTube page.

JDownloads at all times works correctly but interferes with the proper functioning of the other two.

I have included five screen grabs to illustrate the problem. The grab titled "part of the page" has the JDownloads shortcode off screen.

Cheers

Graham

[gelöscht durch Administrator]
Title: Re: Conflict with RokBox and Mediabox [not a bug Config issue]
Post by: fritzula on 31.07.2018 06:57:49
Hi Colin
Further to my above reply I have put a dummy up at https://cookbox.info/
If you go to the "About" page you will see what is happening with JDownloads inserted. I have created a duplicate of this page (menu item About2) without JDownloads and you will see the difference.

Regards
Graham

Title: Re: Conflict with RokBox and Mediabox [not a bug Config issue]
Post by: ColinM on 31.07.2018 15:59:49
Graham,
Thanks for the demo site but I cannot stimulate the 'challenge' on the "copy" page which has both the ROKBOX and the jD items. :(
However I have noticed that the page header is a bit strange.  Specifically jD will automatically load the line
<script src="http://localhost/jdx2/components/com_jdownloads/assets/lightbox/lightbox.js"></script>in the header whenever needed.  So something local must be stopping that happening. 

It also loads the css related items<link href="http://localhost/jdx2/plugins/content/jdownloads/jdownloads/css/mos_jdownloads_file.css" rel="stylesheet" />
<link href="http://localhost/jdx2/components/com_jdownloads/assets/css/jdownloads_fe.css" rel="stylesheet" />
<link href="http://localhost/jdx2/components/com_jdownloads/assets/css/jdownloads_buttons.css" rel="stylesheet" />
<link href="http://localhost/jdx2/components/com_jdownloads/assets/rating/css/ajaxvote.css" rel="stylesheet" />
<link href="http://localhost/jdx2/plugins/content/jdownloads/jdownloads/lightbox/lightbox.css" rel="stylesheet" />
<link href="http://localhost/jdx2/components/com_jdownloads/assets/css/jdownloads_custom.css" rel="stylesheet" />
But they are also absent.Are you loading the items another way?  The lightbox script from jD does need to be loaded.
Colin
Title: Re: Conflict with RokBox and Mediabox [not a bug Config issue]
Post by: fritzula on 01.08.2018 08:53:38
Hi Colin
I could not find any reference to
<script src="http://localhost/jdx2/components/com_jdownloads/assets/lightbox/lightbox.js"></script>
or
<link href="http://localhost/jdx2/plugins/content/jdownloads/jdownloads/css/mos_jdownloads_file.css" rel="stylesheet" />
<link href="http://localhost/jdx2/components/com_jdownloads/assets/css/jdownloads_fe.css" rel="stylesheet" />
<link href="http://localhost/jdx2/components/com_jdownloads/assets/css/jdownloads_buttons.css" rel="stylesheet" />
<link href="http://localhost/jdx2/components/com_jdownloads/assets/rating/css/ajaxvote.css" rel="stylesheet" />
<link href="http://localhost/jdx2/plugins/content/jdownloads/jdownloads/lightbox/lightbox.css" rel="stylesheet" />
<link href="http://localhost/jdx2/components/com_jdownloads/assets/css/jdownloads_custom.css" rel="stylesheet" />I have made a couple of Frontend configuration changes, however, and all appears to be functioning properly now.

I have made a couple of changes to the Frontend configuration on the MAMP install and the cookbox.info installations.

These are:-

Use jDownloads Lightbox function? Yes to No

and


Activate support for all Joomla content plugins? No to Yes

and all now appears OK on both versions.

The logic escapes me but I am not going to argue with it.

Perhaps you would like to double check the results an your end.

Thank you for your assistance.

Graham

Title: Re: Conflict with RokBox and Mediabox [not a bug Config issue]
Post by: ColinM on 01.08.2018 15:40:40
Graham
Setting the parameter Use jDownloads Lightbox function? to No will then not load theLightbox javascript.  It is present to avoid it loading twice with potential confusion.  Apologies I had forgotten!!
Also to get Downloads in other than jD Component display it seems to need the field 'Activate support for all Joomla content plugins?' set to Yes.
Think I was seeing this challenge as being a more complex issue :( :(
Colin
PS have moved from Bugs to General
Title: Re: Conflict with RokBox and Mediabox [not a bug Config issue]
Post by: ColinM on 09.08.2018 19:52:44
Hi
Could you give me some idea of which part you would like clarified please.
Colin