jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: Dode on 28.02.2015 18:55:17

Title: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Dode on 28.02.2015 18:55:17
The placeholder {mp3_player} or any other plugin does not display in Details layout (but is ok in Files layout for example). Media plugin activated in configuration, and other plugins working fine in other Joomla content.

QuoteWhat are your configuration settings here in jD: Activate support for all Joomla content plugins? and Plugin Support only for descriptions?
In Conf / Frontend :
Activate support for all Joomla content plugins? -> Yes
Plugin Support only for descriptions? -> No

In Conf / Mediaplayer :
Activate Flowplayer? -> Yes
View Videos in Details layout only? -> No

In layout, i put 2 plugins :
{play}{screenshot}.mp3{/play}
{mp3_player}{screenshot}.mp3{/mp3_player}

{play} is the JosDewplayer plugin for Joomla.

What is strange is that {play} is working in "Files" layout, but not in "Download Details" layout, with the same placeholder ? Note that the {mp3_player} does not work in either layouts. See 2 pics attached (1 & 2).

[gelöscht durch Administrator]
Title: Re: No plugin displays in Details layout
Post by: ColinM on 01.03.2015 17:01:21
Dode
First thanks for splitting up the queries!

jDownloads only recognises {mp3_player} in various places.  Note the 'Files' layouts are really the 'Downloads' layouts such as layout  "Standard Files Layout without Checkboxes v2.5". Think it would be better if we renamed the Files layouts to Downloads layouts!  But not in the current series

However turnig to you query, jDownloads needs specific code in the relevant default.php file to service the {mp3_player} place-holder.  Specific code is in the sections download, downloads, category and mydownloads. Actual files are
<site>/components/com_jdownloads/views/download/tmpl/download.php  This uses the current Download Details layout.
<site>/components/com_jdownloads/views/download/tmpl/downloads.php  This uses the current Files layout.
<site>/components/com_jdownloads/views/download/tmpl/category.php     This uses the current Categories layout for the Sub categories.  
<site>/components/com_jdownloads/views/download/tmpl/mydownloads.php   This also uses the current Files layout.

It does not recognise it in summary and others
<site>/components/com_jdownloads/views/download/tmpl/summary.php  This uses the current Summary layout.

This is not really a bug but rather a limitation.  So I have moved this to Suggestions
Colin



Title: Re: No plugin displays in Details layout
Post by: Dode on 01.03.2015 18:42:37
Looks more like a bug to me, as it worked perfectly with JD 1.9 !
Why would Details layout be any different than Files layout concerning J! plugin integration ? {mp3_player} is even available in "The available placeholder variables are" section of the Download Details layout !
Are you sure you really get what the issue is, Colin  (no effense here) ?
Title: Re: No plugin displays in Details layout
Post by: ColinM on 02.03.2015 01:15:31
Dode
Think I hve missed the point.  For some reason I had it in my mind that it was the summary view. ??? But it is the Details view and should have worked as Details view is from download.php which appears to support {mp3_player}.

So I will move back to bugs. And see if I can repeat.
Colin
Title: Re: No plugin displays in Details layout
Post by: Arno on 06.03.2015 15:59:04
Hi Dode,
it seems that we have here a special situation as you will use additional to the integrated Flowplayer another player plugin.
But this should not be a problem. So let us test it.  ;)

1. when you can not see the output from the internal jD flowplayer in the details page, you must add the placeholder {mp3_player} in the activated details layout.
2. please note that the Flowplayer in jD is NOT a Joomla plugin
2. i have installed your used JosDewPlayer so i can also test it
3. i have use the same settings as you:

QuoteIn Conf / Frontend :
Activate support for all Joomla content plugins? -> Yes
Plugin Support only for descriptions? -> No

In Conf / Mediaplayer :
Activate Flowplayer? -> Yes
View Videos in Details layout only? -> No

So i could test it now:
- i have create a new Download and have use as mainfile a mp3 file
- i have in the Downloads description insert a part for the JosDewPlayer and use the same file:
 {play}jdownloads/Beispiel Kategorie/Beispiel Unterkategorie2/anjali_anjali.mp3{/play}  

As result i get the correct Files Layout output (see first pic)
- both player are viewed and playable

So i click now on the title link to get the details view
- both player are viewed and playable (see second pic)

Please note, that you need not for the integrated Flowplayer this part: {/mp3_player}
Use only {mp3_player} - on this position is then viewed the mp3 player from jD with the 'preview' file (when assigned) or the mainfile (when it is playable).
Other files (from server or another url or path) can you not use in this case.

As resume: it is not possible for me to reproduce your problems.
Maybe i have a few changes as i used for my test the coming first stable version.  ::)




[gelöscht durch Administrator]
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Dode on 06.03.2015 17:45:46
I tested again wigth the latest beta, and i tried with the 2 default layouts that come with JD 3, but i always get the same problem, the player is never showing, only the placeholder. Note that i see another problem with the {screenshot_begin2} {screenshot_end2} placeholders when no files are defined.
Note that the Flowplayer NEVER shows here, no matter the layout.

Eagerly waiting for this stable release that apparently fixes this issue ;-) .

[gelöscht durch Administrator]
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: ColinM on 06.03.2015 20:04:16
Dode
Could you please say which layouts are the active ones in Files and Download Details layouts.

Note You will need the Place-holder {mp3_player} in the active layout.  For example "Standard Files Layout v2.5" does not have {mp3_player} in it.  So even if you have requested Flowplaer in the Config - Media tab the it will not show.  Also of course the preview file must be a valid Flowplayer type.

The main section of "Standard Files Layout v2.5" is  below
{files_title_begin}<div style="background-color:#EFEFEF; padding:6px;">
{files_title_text}</div>{files_title_end}

<table width="100%" border="0" cellpadding="5" cellspacing="5" style="background:#F8F8F8;border-bottom:1px solid #cccccc;">
     <tr valign="top">
        <td width="90%" valign="top">{file_pic} <b>{file_title}</b>
          {release} {pic_is_new} {pic_is_hot} {pic_is_updated}
        </td>
        <td>{rating}</td>
     </tr>
     <tr valign="top">
        <td valign="top" class="jd_body">{description}</td>       
        <td valign="top" class="jd_body" width="90%">{screenshot_begin}<a href="{screenshot}" rel="lightbox"> <img src="{thumbnail}" align="right" alt="" /></a>{screenshot_end}</td>
     </tr>
     <tr>
        <td valign="top" width="10%" align="center"></td>
     </tr>
     <tr>
        <td style="background:#F8F8F8; padding:5px;" valign="top" width="90%"><small>{license_text} {author_text} {author_url_text} {created_date_value} {language_text} {system_text} {filesize_value} {hits_value}</small></td>
        <td valign="top" width="10%" align="center">
            {url_download}
        </td>
     </tr>
</table>


Try inserting something like

    <tr>
        <td valign="top" width="90%" align="center">{mp3_player}</td>
     </tr>

so that it now looks like
{files_title_begin}<div style="background-color:#EFEFEF; padding:6px;">
{files_title_text}</div>{files_title_end}

<table width="100%" border="0" cellpadding="5" cellspacing="5" style="background:#F8F8F8;border-bottom:1px solid #cccccc;">
     <tr valign="top">
        <td width="90%" valign="top">{file_pic} <b>{file_title}</b>
          {release} {pic_is_new} {pic_is_hot} {pic_is_updated}
        </td>
        <td>{rating}</td>
     </tr>
     <tr valign="top">
        <td valign="top" class="jd_body">{description}</td>       
        <td valign="top" class="jd_body" width="90%">{screenshot_begin}<a href="{screenshot}" rel="lightbox"> <img src="{thumbnail}" align="right" alt="" /></a>{screenshot_end}</td>
     </tr>
     <tr>
        <td valign="top" width="10%" align="center"></td>
     </tr>
     <tr>
        <td valign="top" width="90%" align="center">{mp3_player}</td>
     </tr>
     <tr>
        <td style="background:#F8F8F8; padding:5px;" valign="top" width="90%"><small>{license_text} {author_text} {author_url_text} {created_date_value} {language_text} {system_text} {filesize_value} {hits_value}</small></td>
        <td valign="top" width="10%" align="center">
            {url_download}
        </td>
     </tr>
</table>


Please remember you need to say Yes to the Flowplayer question in config - media.

Colin

Colin
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Dode on 11.03.2015 20:49:09
I tested with all the layouts, and of course i always add the needed placeholders ({mp3player} and {play}...{/play}. Only problem with the Details layout.

It's probably because i'm not using any preview files at all, but instead of it, a specific mp3 file which is called by the placeholder "{screenshot}.mp3" (it's a mp3 file which has the exact same name of the screenshot image, plus the .mp3 extension). This "hack" worked fine in JD 1.9, but maybe i can't use this strategy anymore with JD 3. Wjhat is strange is that it doesn't work with a third party plugin like JosDewPlayer here.

I'll do more testing by adding some preview files (mp3) to some Downloads, and see what happens. If it works, i can probably manage a database query to copy the screenshots table to the preview files table (+.mp3). And also wait for the first stable release, as it seems to work well for Arno with JosDewPlayer in Details layout with an URL link.

Thanks for your time Colin, appreciated !
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Arno on 11.03.2015 22:04:38
QuoteAnd also wait for the first stable release, as it seems to work well for Arno with JosDewPlayer in Details layout with an URL link.
Please update your jD - the stable version 3.2.27 is already published.
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Dode on 11.03.2015 22:15:04
Yes, already on 3.2.27, but the problem remains...
Don't bother, i'll do more testings this week end with the use of the preview file mechanism, it will be more simple for our sound library. But there is something wrong in the plugin implemenation in Details view, i guess.
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Arno on 12.03.2015 14:14:37
QuoteI tested with all the layouts, and of course i always add the needed placeholders ({mp3player} and {play}...{/play}. Only problem with the Details layout.

It's probably because i'm not using any preview files at all, but instead of it, a specific mp3 file which is called by the placeholder "{screenshot}.mp3" (it's a mp3 file which has the exact same name of the screenshot image, plus the .mp3 extension). This "hack" worked fine in JD 1.9, but maybe i can't use this strategy anymore with JD 3. Wjhat is strange is that it doesn't work with a third party plugin like JosDewPlayer here.

I'll do more testing by adding some preview files (mp3) to some Downloads, and see what happens. If it works, i can probably manage a database query to copy the screenshots table to the preview files table (+.mp3). And also wait for the first stable release, as it seems to work well for Arno with JosDewPlayer in Details layout with an URL link.
Okay. Seems that i had you misunderstood.  ::)
The process how the images are created in the layouts must changed for the new series. This should be your problem with the {screenshot} placeholder. I will check what we can do here.

Quoteit's a mp3 file which has the exact same name of the screenshot image, plus the .mp3 extension
Where is this mp3 file stored?  ::)

When i tried as you have described i get this result:
{play}http://test/joomla3215/images/jdownloads/screenshots/test.gif.mp3{/play}
But we can not change this as we losing otherwise the images.

Note: when you used placeholder for other functionality as developed, it is not really a bug.
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Dode on 13.03.2015 13:46:26
I understand Arno, no problem here, i'll use the preview files for now.

With a valid preview file, the Flowplayer is displayed correctly in Details view. I just had to add a specific .htaccess in the /jdownloads/_preview_files/ directory to allow access by the plugin :
Options -Indexes
allow from all


But i definately can't display the JosDewplayer in the Details view, it always displays the code :
{play}/jdownloads/_preview_files/sirene_civile.mp3{/play}
instead of the plugin, no matter what the url is (it works for you, so i don't understand...).

Also i don't understand why it works in other layouts, but not in the Details one...

Also, do you plan a placeholder like {preview} to obtain the preview file URL in any layout ? That would be very useful for me.

PS : isn't Flowplayer supposed to be HTML5 (and not Flash) ?
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Arno on 13.03.2015 16:44:30
QuoteBut i definately can't display the JosDewplayer in the Details view, it always displays the code :
Where have you insert this code?

{play}/jdownloads/_preview_files/sirene_civile.mp3{/play}
maybe can it not work with relatively path
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Dode on 13.03.2015 17:01:50
I used for example the "Example Details Layout v2.5" (same with the Standard Details Layout v2.5 - Full Info) :

<div style="padding-top:15px;padding-bottom:10px;" height="38" colspan="3" valign="top"><span style="font-weight: bold;font-size:13pt;">{file_pic} {file_title} {pic_is_new} {pic_is_hot} {pic_is_updated}</span>
    <div style="float: right;">{rating}</div>
</div>

<div>{description_long}</div>
<div>{mp3_player}</div>
<div>{mp3_id3_tag}</div>
<div>{play}/jdownloads/_preview_files/sirene_civile.mp3{/play}</div>

<div style="padding:5px 5px 10px 5px;overflow: hidden;margin-bottom: 10px;margin-top: 8px;">
<div style=...


See the result in screenshot 1.

[gelöscht durch Administrator]
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Dode on 13.03.2015 17:09:13
Quote from: Arno on 13.03.2015 16:44:30
{play}/jdownloads/_preview_files/sirene_civile.mp3{/play}
maybe can it not work with relatively path
Tried with the full URL, and same result (see picture attached).

PS : maybe a conflict with JComments ? Why the hell it works in Files layout, i don't know...

[EDIT] No, i tried disabling JComments support, but same problem.

[gelöscht durch Administrator]
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Arno on 13.03.2015 17:50:43
I will test your example later here.
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Dode on 14.03.2015 00:05:34
You don't need to, you prove above that it works for you, so it must be specific to my system (Ubuntu server 14.04.2) !

Anyway, i'm in the process of moving all the mp3 files (using the images directory, and the {screenshot} placeholder) to real preview_file, so this problem will be solved soon for me.

My main concern now is the use of Flash for Flowplayer, which i'm trying to avoid (for mobile devices)... Hope we'll get support for the HTML5 version in JD soon.
Title: Re: No plugin displays in Details layout - [Not a bug or already fixed]
Post by: Arno on 14.03.2015 10:39:06
QuoteYou don't need to, you prove above that it works for you, so it must be specific to my system
I could reproduced now your problem with the details layout. But only when the plugin text is insert in the layout and not in the Downloads description. So i will check where exactly is the problem.
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Arno on 14.03.2015 11:34:18
Hi Dode,
i have fixed now your problem. ;)
Please copy the unzipped file below to: JOOMLA_ROOT/components/com_jdownloads/views/download/tmpl/
Try it then again with your example like:
Quote{play}/jdownloads/_preview_files/sirene_civile.mp3{/play}


[gelöscht durch Administrator]
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Dode on 14.03.2015 12:57:15
Thanks a lot Arno, it works now ! I knew it was a bug ;-)

By the way, you didn't answer these questions above :
QuoteAlso, do you plan a placeholder like {preview} to obtain the preview file URL in any layout ? That would be very useful for me.
And isn't Flowplayer supposed to be HTML5 (and not Flash) ?

Thanks again, JD rocks !
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Arno on 14.03.2015 13:11:17
Okay, thanks for your result.
We have not added a special {preview} placeholder as we had early already use the {mp3_player} for sound files.
And we would not, that users must reworked her older layouts.
Think you that we need a special {preview} placeholder?

QuoteAnd isn't Flowplayer supposed to be HTML5 (and not Flash) ?
I understand not exactly what you mean with this.
But you can find all informations about flowplayer here:
https://flowplayer.org/
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Dode on 14.03.2015 13:48:44
Quote from: Arno on 14.03.2015 13:11:17
Think you that we need a special {preview} placeholder?
I think it could be useful, to use other plugins than Flowplayer (say MediaElement, jPlayer, SoundManager2, or JosDewPlayer like i do at the moment, etc.). Today if i don't want to use Flowplayer, i have to use a workaround like i did above, with the {screenshot} placeholder + .mp3 extension. Not really "clean".
The {preview} placeholder could be use for other media types also, with specific plugins to preview them. A lot of possibilities here.
Layout customization is not a problem IMHO, anyone wanting to use plugins in JD will customize them anyway, no ?

Quote
QuoteHTML5 vs Flash
I understand not exactly what you mean with this.
Flowplayer implementation in JD seems to be using the Flash player plugin in the web browser, which is problematic on mobile devices. HTML5 video/audio player are way better in 2015, IMHO. Flowplayer can use HTML5, but i don't know how it works in JD.
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Arno on 15.03.2015 09:51:42
QuoteThe {preview} placeholder could be use for other media types also, with specific plugins to preview them. A lot of possibilities here.
But what should we doing with it as default? When we would it also use for Flowplayer, we has two placeholders for the same output. An older {mp3_player} and a newer {preview}.  ::)

QuoteHTML5 vs Flash
Okay i will check this.
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Dode on 16.03.2015 14:49:42
Quote from: Arno on 15.03.2015 09:51:42But what should we doing with it as default? When we would it also use for Flowplayer, we has two placeholders for the same output. An older {mp3_player} and a newer {preview}.
Not really the same thing in my mind, {mp3_player} is a self / full featured media player, whereas {preview_url} or {preview} is only a way to get the full path of the preview file ! Exactly as for {screenshotx} and many other placeholders. This seems logical to me.

Just an exemple, say i want to embed a PDF exerpt of a book i propose for download in JD, i'd like to use the plugin "PDF Embed" to display the 2 or 3 first pages of the PDF, and use the "preview_file" functionnality of JD to store the PDF preview.

This {preview} / {preview_url} would be useful for any media types that Flowplayer doesn't handle. IMHO. Or just for JD users that do not want to use Flowplayer, but another plugin they may have bought (many media plugins are paid downloads).
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Arno on 17.03.2015 00:58:01
Okay, i will add the {preview_url} placeholder.
This shall be replaced with the relative path to the preview file.
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Arno on 17.03.2015 14:30:23
Please try this pre-release (3.2.28).

QuoteOkay, i will add the {preview_url} placeholder.
This shall be replaced with the relative path to the preview file.
done.

[gelöscht durch Administrator]
Title: Re: No plugin displays in Details layout - [Fixed in 3.2.28!!!]
Post by: Dode on 17.03.2015 20:12:22
Thanks a lot Arno, you rock !