Welcome, Guest
Username: Password: Remember me

TOPIC: Display of File (track) Titles in Playlist

Display of File (track) Titles in Playlist 6 years 10 months ago #5434

A typical line entered into the Playlist field might be as follows...

Folksong_arr_Chilcott_-_Mairi's_Wedding.mp3|Folksong arr Chilcott - Mairi's Wedding

The Playlist shows only the following...

Folksong_arr_Chilcott_-_Mairis_Wedding

The issues are...

1. There is an unwanted text cleanup taking place which removes characters which should not be removed;
and
2. What shows in the Playlist is evidently computed from the first half of the entry (i.e. before the vertical divider bar character), while the second half is ignored (dropped) completely.
NOTE - UPDATE 5 hours later - What shows in the Playlist is evidently computed from the name of the file in the playlist directory (folder), not from the first half of the entry as stated here. This was discovered when a typographical difference between the two was introduced inadvertently. So the correct way to state the result is that none of the text entered in the playlist box gets used for display, neither first half nor second half. A third issue is...
3. The order in which the playlist items show seems to be strictly alphabetical, so any care taken to enter the items in the box in a certain order appears to be time wasted. This is unfortunate, because I'd say it almost never happens that an alphabetical listing correlates with a desired order in practice.

The backend "Module" tab gives examples...
Filename1|File title1
Filename2|File title2

The function does not appear to follow the examples.

The unwanted text cleanup appears to be related to a php function which is either this one or one similar to it...
public static function convertWysiwygToPlainText($string)
I haven't been able to tell if the "dropping" (issue 2) is a problem with the same roots.

Thoughts, anyone?
Last Edit: 6 years 10 months ago by Richard Howell.
The administrator has disabled public write access.

Display of File (track) Titles in Playlist 6 years 10 months ago #5441

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Richard Howell
Please help me config is (No .mp3)
Folksong_arr_Chilcott_-_Mairi's_Wedding|Folksong arr Chilcott - Mairi's Wedding
Best regards
Bach Pham
The administrator has disabled public write access.

Display of File (track) Titles in Playlist 6 years 10 months ago #5442

Hello Bach Pham

Thank you - yes, after looking at the html source of the rendered page I realized the extension mp3 is provided by the module. However, that is with the field "Data type" set to "Read in Playlists", which I now realize is what I should select. Making that change from the setting "Read in Folder" solves and explains issues 2 and 3.

There was a reason I had Data type set to "Read in folder", even though it is wrong. It is because with it set to "Read in Playlists" I was (and still am) getting a bunch of undefined variable errors in the file default.php at line 380 - one error for each line of the list.

The undefined variable error at line 380 is filename. I will try initializing it with a null value and see if that helps.

I have encountered a number of issues of that kind in working with various Joomla extensions. They often seem to be related to upgrades in php. The version of php I am using is 5.6.23. But I don't know if that explains this particular hiccup.

Regarding issue 1 (unwanted text cleanup)...

I found that I can use phpMyAdmin to edit the playlists parameter of the JO Audio Player table row in the Modules table, and put the characters back in that were taken out by the module in its text cleanup. These include things like apostrophes and foreign language characters, such as é in the French word thé. This is a workaround for issue 1, but hardly a good solution.

Thanks again.
Richard
Last Edit: 6 years 10 months ago by Richard Howell. Reason: More carefully formulate thought
The administrator has disabled public write access.

Display of File (track) Titles in Playlist 6 years 10 months ago #5443

Update...

The errors at line 380 of default.php were eliminated by inserting a new line at line 362...

$filename = "null";

Issue 1 seems to have gone away now, too. So to recap, all the issues were solved by (1) removing the suffix mp3 from the Playlists field list, and (2) the "null" fix.

Thanks again.

Richard Howell
Last Edit: 6 years 10 months ago by Richard Howell.
The administrator has disabled public write access.

Display of File (track) Titles in Playlist 6 years 10 months ago #5445

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi
Great :). Thank you for using our products
If you have any problem please tell me know
Have a nice day
Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.040 seconds