News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

No plugin displays in Details layout - [Fixed in 3.2.28!!!]

Started by Dode, 28.02.2015 18:55:17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dode

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]
  •  

ColinM

#1
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



Colin M
  •  

Dode

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) ?
  •  

ColinM

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
Colin M
  •  

Arno

#4
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]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Dode

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]
  •  

ColinM

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
Colin M
  •  

Dode

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 !
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Dode

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.
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Dode

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) ?
  •  

Arno

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
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Dode

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]
  •  

Dode

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]
  •