PremiumBeat Mp3 Player

Started by Chen Zhen, August 30, 2010, 05:20:07 PM

Previous topic - Next topic

ryan_dwight

Quote from: -Underdog- on May 16, 2013, 11:18:36 PM
Quote from: ryan_dwight on May 16, 2013, 04:41:20 AM
is there any settings to sort the playlist maybe alphabetically?

what url should i get to use the bbcode?

Thanks

ryan_dwight,

  bbcode can be for playlists (by id number) or direct url of mp3 files.
Here are some examples:

Playlist 2 example:
[premiumbeat]playlist=2[/premiumbeat]
[premiumbeat=playlist=2]This is my playlist[/premiumbeat]

Single mp3 file:
[premiumbeat]http://coolsongs.com/mysong.mp3[/premiumbeat]
[premiumbeat=http://coolsongs.com/mysong.mp3]This is my song[/premiumbeat]

Multiple mp3 files:
[premiumbeat]http://coollsongs.com/mysong.mp3,http://awesomesongs.com/myothersong.mp3[/premiumbeat]
[premiumbeat=http://coollsongs.com/mysong.mp3,http://awesomesongs.com/myothersong.mp3]These are my songs[/premiumbeat]

I did not put anything in regards to sorting the mp3's. Although I can give you manual edits for it if you would like that.
I will keep this in mind for the next version.
Would you like the mp3 list or files in alphabetical order?




Files list...
file: /Sources/CustomMusic.php

find:

if ($refreshPage)
redirectexit('action=admin;area=premiumbeat;sa=UploadPremiumbeat;queryPlaylist=' . $context['playlist']);


Add after above code:

foreach ($context['music_files'] as $files => $file)
{
$premfilex = explode('-_-', $file['filex']);
$premfile[] = str_replace($premfilex[0] . '-_-', '', $file['filex']);
}
if (!empty($premfile))
{
ksort($premfile);
$keys = array_keys($premfile);
$values = array_values($premfile);
array_multisort($values, $keys, SORT_ASC, $context['music_files']);
}





Music list...

file: /Sources/CustomMusic.php

find:

ORDER BY playlist ASC


replace with:

ORDER BY description ASC





I have attached the file with both of these changes if you prefer it over making your own edits.

thank you for this, i visited your website but it's down untill now. any update?

i got a problem on selecting playlist on my admin account if i selected one playlist it plays the right playlist with the mp3s on it. but the regular members they can play only one playlist but they can see all available but it redirects to only one playlist. i checked the settings

admin>>> premiumbeat>>>settings
on the override playlist if what is in there, that is the only playlist the regular members can play. how can i clear that override playlist? what does this settings do?

again, thank you for this wonderful mod

Chen Zhen

Quote from: ryan_dwight on May 20, 2013, 07:07:35 AM
thank you for this, i visited your website but it's down untill now. any update?

i got a problem on selecting playlist on my admin account if i selected one playlist it plays the right playlist with the mp3s on it. but the regular members they can play only one playlist but they can see all available but it redirects to only one playlist. i checked the settings

admin>>> premiumbeat>>>settings
on the override playlist if what is in there, that is the only playlist the regular members can play. how can i clear that override playlist? what does this settings do?

again, thank you for this wonderful mod

ryan_dwight,

  My host has been having issues for weeks now since they did some internal changes, needless to say I have informed them that I no longer wish to do business with them. I will be opening a new forum soon but under a new more suitable domain name. The forum will be starting from scratch and all licenses to my current modifications will be emended to reflect the changes.

  As for playlist permissions, this would depend on which part of the mod you are attempting to grant access. I have previously told you info regarding how to allow them to access the playlists via each membergroup's permission settings. Also each specific playlist setting must have upload and/or download access enabled to allow that playlist to appear on the upload template and for the navigation bar mp3 link there is separate playlist permissions but only 1 playlist can be assigned to each membergroup for that setting. I also created a multiple playlist block that will allow selecting any available playlist from a drop-down that can be put in a portal block (fixed or not) and there is settings to position that popup exactly where you would prefer + adjust its dimensions.
 
To sum it up, you need to access three sections of your admin to adjust its settings:

  • Members -> Permissions -> Membergroup(s)
  • Premiumbeat -> Settings
  • Premiumbeat -> Mp3 Database -> Playlist Settings -> --playlist link to edit specific playlist-- (also note the permission settings while editing)

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

johnpaul2k2

please how will i configure my wap2.

it's only showing the mp3 links ..even when i click on the link. it will not download nor play

CİHAD_EHLİ


Advertisement: