Shape 5

Joomla Club Extensions => MP3 Gallery - Club => : dougitk October 28, 2014, 08:21:54 PM



: Multiple players? - Download updated on 1/11/2016 (per site, not page)
: dougitk October 28, 2014, 08:21:54 PM
very disappointed that it seems we can only have 1 working version of the html5 mp3 player per site?

We bought this template mainly because of the mp3 module and wanted to put a player on each album of music page.

Is there any way this is possible?  Most other modules are easy to duplicate and place on different pages. In fact this one does most of that quite well, until you go to play.
We have 2 players set up but you never know which songs will appear - it all is very random.

would really appreciate advice to be able to have multiple players on our site.

best wishes


: Re: Multiple players?
: jonahh October 29, 2014, 01:04:29 PM
Hello,

No you can have multiple per site, its just limited to 1 per page on your site.  But if its not working are you sure you are using the player from the eMusica template demo and not the one from the Mediaplate demo?   The Mediaplate demo is an old player that only works with 1 per site, here is the demo of that:
http://shape5.com/demo/mediaplate/

Make sure you aren't using that one and that you are using this one:
http://shape5.com/demo/emusica



: Re: Multiple players?
: dougitk October 29, 2014, 07:13:10 PM
Thank you for your prompt action and good news. We love this module and are overjoyed to hear that it will serve our purposes, but obviously need your advice and support.

We have been tearing our hair out trying to get a different module copy to work with each album.

No problem getting info in and when only 1 module copy was installed it worked as expected. (home page, album - "Riddles & Rhymes")
Also made an instance of this player on the album content page, (http://www.soundcolour.com/musica/index.php/albums/riddles-rhymes)
The playlist worked, but could not get the album image to display.

After installing and programming the 2nd album, "Simplefolk" on its album content page, (http://www.soundcolour.com/musica/index.php/albums/simplefolk), the content then became confused with the other module. We tried re installing and searched every part of our input but could find no mistakes, yet the modules delivered unexpected results - wrong modules showing wrong content and image not delivering anywhere but on the front page (home)

Could you please check and advise what we are doing wrong, so that we can enjoy this great module.

I will forward to your inbox the site login details.

Thank you again for your support and best wishes


Home page: http://www.soundcolour.com/musica/
mp3 player should deliver "Riddles & Rhymes" image and playlist, but even though the module title shows "Riddles & Rhymes", the image and playlist is from another module copy, "Simplefolk"

http://www.soundcolour.com/musica/index.php/albums/riddles-rhymes
same situation as for the home page, module title "Riddles & Rhymes", playlist from module copy "Simplefolk" and on each copy, no image shows at all?

http://www.soundcolour.com/musica/index.php/albums/simplefolk
This mp3 module has the correct playlist and module title, but cannot display the album image



: Re: Multiple players?
: jonahh October 31, 2014, 06:02:51 PM
Ah I'm sorry I forgot that this module does write the playlist contents to a file within the module so you can't easily just copy and have multiple modules per site.  But I can give you a solution so you can.  First off the images not showing were just due to not having the full site URL added for each track.  You'll see that all the album images now show.

Ok and now for the solution.  What you can do is take the module zip file and open up and rename:

mod_s5_mp3_gallery.php
mod_s5_mp3_gallery.xml

to something like

mod_s5_mp3_gallery2.php
mod_s5_mp3_gallery2.xml

Then open up both of these files and look for "mod_s5_mp3_gallery" and replace with "mod_s5_mp3_gallery2".  Then just install this as a new module and assign to whatever page you need it on.  If you want to make a third one just do the same but change the "2" to a 3".  Not as easy as just copying the module but this is a workaround if you want to continue using this module.  Let me know if you have any further questions.

Regards,


: Re: Multiple players?
: dougitk November 04, 2014, 12:50:56 PM
Thanks for your advice, Jonahh

I followed your instructions to every detail about 5 times. I have been able to make the copies as you directed and install them.

Had some issues, finding 1 instance on the php file and 4 on the xml but after trial and error, also found another change needed in language directory, so that all menus presented properly.

My latest attempt, module now named "S5 MP3 SIMPLE5 Gallery" all looked correct and filled out the track data then assigned to menu, "http://www.soundcolour.com/musica/index.php/albums/simplefolk"  Unfortunately, when I call up the page I now just get a blank white screen.

If I turn the module off, the content then reappears. It is definitely the module causing the issue and for some reason it makes that whole page and all its content and other modules disappear in a white screen. I have left it like this for your information.

I wonder if you could please have another look and advise me what I am doing wrong, or may be able to do to fix this so that it works and I can have 4 instances of the module on our site to present 4 different albums of music.

This is a beautiful module and I hope it can work to present a body of work, not just one album.

One other issue with the module is to do with its responsiveness. I like the layout having the module set to right position. When I go to ipad or smaller screen, the module doesn't reduce in size, but moves to the bottom of the page. I checked your demo and when I call it up on the ipad, the same thing happens. Is there any setting that I am missing that would make the module truly responsive and stay in the right side position?

Thanks again Jonahh, and hope you will be able to help and advise me how to make this wonderful module work properly.

best wishes


: Re: Multiple players?
: jonahh November 04, 2014, 01:08:49 PM
Hello,

If you can PM me FTP details I can take a look at this for you and check out the copies you made. 

As for the responsiveness the demo is as close as it can be.  It will stretch and shrink but only shrink to a certain width as the controls and playlist get to squished together.  There is just too much to show for a smaller width screen.  For the demo we just hide it at the smaller resolutions.

Thanks!



: Re: Multiple players?
: IlyaSp7 November 21, 2014, 02:21:45 PM
Hello I did all what jonahh,  it installs new mob but play list still same  :( 


: Re: Multiple players?
: jonahh November 24, 2014, 01:03:01 PM
In this post I had forgot to mention the other locations you need to also update, which are:

modules\mod_s5_mp3_gallery\mod_s5_mp3_gallery.php

:
require(JModuleHelper::getLayoutPath('mod_s5_mp3_gallery'));

And modules\mod_s5_mp3_gallery\tmpl\default.php

:
$s5_audiplayer_url = JURI::root().'modules/mod_s5_mp3_gallery/';

After doing this and zipping up the module and reinstalling let me know if it still doesn't work.  Also be sure to rename the title of the module (its in the <name> tags) in the mod_s5_mp3_gallery.xml file so you can know which version is the copy in your Joomla site modules area.



: Re: Multiple players?
: IlyaSp7 November 25, 2014, 05:22:16 PM
I found way, what I did is 1st what you said change files PHP and XML to mod_s5_mp3_gallery then I open folder tmpl open file default change line

$s5_audiplayer_url = JURI::root().'modules/mod_s5_mp3_gallery/';

to

$s5_audiplayer_url = JURI::root().'modules/mod_s5_mp3_gallery2/';

then in main folder in PHP file change

require(JModuleHelper::getLayoutPath('mod_s5_mp3_gallery'));
 to
require(JModuleHelper::getLayoutPath('mod_s5_mp3_gallery2'));

in XML change all mod_s5_mp3_gallery to mod_s5_mp3_gallery2

IMPORTANT CHANGE LINE 3 (NAME)

<name>S5 MP3 Gallery</name>
TO
<name>S5 MP3 Gallery2</name>

I try lot way and trust me if you don't change name player will show and it will let you install module but it will play same music as 1st player. if you want to player to play different music you need to change NAME then install it and use it I did even on same page 3 player and they all play different music main thing is name




: Re: Multiple players?
: IlyaSp7 November 25, 2014, 05:25:01 PM
and don't forget to change name on PHP and XML files


: Re: Multiple players?
: fahl5 December 25, 2014, 03:37:10 AM
OMG!!!!!!! ???
I do need players with more than 200 different Playlilsts, why dont you just code your in many aspect very useful mp3-gallery in a way that the same module just selects different named xml playlists?!

I have tried all what is proposed here and the results were a bit weird the fronten as the backend look irregular and weird. (see screenshots below)
Whenever I install a second Version like a "mod_s5_mp3_gallery-0001" I do have also similar Problems in the Backend of the first installed original version.

I hope you can help (and update the code for a more flexible use of different playlists)
best
fahl5


: Re: Multiple players?
: jonahh December 26, 2014, 12:27:32 PM
I responded to you here:

http://www.shape5.com/component/option,com_smf/Itemid,75/topic,37981.new/#new

But can you also just give me Joomla and FTP login details to your site so I can see whats going on first hand?

Although if you need more than 200 of these it might make more sense to just hire someone to code the module to support this. Copying it 200 some times and having that many modules installed wouldn't be the best method


: Re: Multiple players?
: fahl5 December 29, 2014, 04:49:09 AM
Although if you need more than 200 of these it might make more sense to just hire someone to code the module to support this. Copying it 200 some times and having that many modules installed wouldn't be the best method
You should just make your extension to be able to produce and chose where ever it is placed from an unlimited amount of different xml-playlists. It seems to me not really smart at all to install for each playlist a completly new defined extension. An Extension which you could use just one time, is at least in my eyes of pretty poor functionality. I at least can not work with things like that.


: Re: Multiple players?
: pragna April 19, 2015, 08:56:22 AM
In this post I had forgot to mention the other locations you need to also update, which are:

modules\mod_s5_mp3_gallery\mod_s5_mp3_gallery.php

:
require(JModuleHelper::getLayoutPath('mod_s5_mp3_gallery'));

And modules\mod_s5_mp3_gallery\tmpl\default.php

:
$s5_audiplayer_url = JURI::root().'modules/mod_s5_mp3_gallery/';

After doing this and zipping up the module and reinstalling let me know if it still doesn't work.  Also be sure to rename the title of the module (its in the <name> tags) in the mod_s5_mp3_gallery.xml file so you can know which version is the copy in your Joomla site modules area.



Hello jonahh,

I am not PHP programmer, but I can technically suggest you one solution, you can provide an input field in basic option, where we can give different names in every instance of the module.

When we copy the existing module to make another player, we can put different names in the input field in each module (which we copy) like mod_s5_mp3_gallery1, mod_s5_mp3_gallery2, mod_s5_mp3_gallery3 etc, as it is global variable you can replace the hard coded (mod_s5_mp3_gallery) with the global variable at different places where you suggested making changes.

I don't know whether its possible to create the global variable which can be used in all multiple files in PHP if it is possible then we can use the same module multiple times on different pages.


Regards,
Pragna


: Re: Multiple players?
: Holoplay December 17, 2015, 11:30:18 AM
Hi
1.Why you not writte by the product tahts is only possible the modul set on one site?
2.Have you here one time thats a modul you can only set once.
3.I think this is your Job to Code thats possible to have the modul on all pages.
4.its a littel bit poor from your companie i think you lose costumer this way and 50 bucks for this Sorry  i dont agree.
Please Sale a product thats make the Costumers happy and not Angry.

Ty


: Re: Multiple players?
: jonahh December 23, 2015, 01:50:18 PM
Hello,

We are in the midst of adding this to the module right now. Please keep checking back and we'll have this updated soon.

Thanks,


: Re: Multiple players?
: jonahh January 11, 2016, 05:15:51 PM
Hello,

Thanks for your feedback. Due to your request and others we have updated the module. Please grab a fresh copy from the downloads and you will be able to use multiple players throughout your site.  NOTE: not per page but per site. 2 players on one page will cause issues as the script will get confused. But you can now have a player unique to each page of your site vs 1 player per entire website.

Cheers!