Skip to Content Skip to Menu

XSPF Profile Player

  • Styles
  • Styles
  • OFFLINE
  • Posts: 25
  • Thanks: 0
  • Karma: 6
17 years 10 months ago #26235 by Styles
Replied by Styles on topic Re:XSPF Profile Player
I have put the feature request on the forge forum, if that's what you mean.

I'm going right now too...

Cause i'm have trouble with yet another aspect of custom implementation LOL :laugh:

But you seem to be reaing this thread more the the forge..or am i wrong?

Hey!? I want karma too :(
____________________________________________________________

There's a reason they call me Styles with an S
www.stylesmedia.ca - www.sm-music.com - www.perfect-light.com
Want more? Got more!

Please Log in or Create an account to join the conversation.

17 years 10 months ago #26239 by Derinliktutkunu
Replied by Derinliktutkunu on topic Re:XSPF Profile Player
I read here more...

Please Log in or Create an account to join the conversation.

  • Styles
  • Styles
  • OFFLINE
  • Posts: 25
  • Thanks: 0
  • Karma: 6
17 years 10 months ago #26242 by Styles
Replied by Styles on topic Re:XSPF Profile Player
The forge is either offline and/or really slow today

So ill post my question here:

I would like to know how hard it would be to replace the content of "Manage your playlist"
so that it has a drop down with diferent playlists to select
saving the setting to a new feild so that users could select what "genre" they want on their profile.

I'm not sure i'm clear here.

Point is... I have two players loading through your plugin
Member type A- uses the player with the setting you provided
Member type B- will have a stripped down version that only plays from a selection of existing playlists.

The code for the two players is down and works well with a IF memberA ELSE statement.

I will duplicate the "manage playlist" the IF into the ELSE
but i will replace the "Add song" by "Select Genre"

Hey!? I want karma too :(
____________________________________________________________

There's a reason they call me Styles with an S
www.stylesmedia.ca - www.sm-music.com - www.perfect-light.com
Want more? Got more!

Please Log in or Create an account to join the conversation.

  • pointri
  • pointri
  • OFFLINE
  • Posts: 118
  • Thanks: 0
  • Karma: 27
17 years 10 months ago #26247 by pointri
Replied by pointri on topic Re:XSPF Profile Player
Gotta throw in some kind of grouping logic for that to happen, so it would require a little bit of brainstorming so that it would work for anyone who installs it.

It could be as simple as adding a field to the installer that indicates whether the user's an artist or a listener, but then it would need a new dialogue that'll allow listeners to add an artist's tracks to his/her playlist. The best place for that dialogue would obviously be in an artist's flash player.

I think I understand what you mean by autocreating playlists from genres. That would require adding a 'genre' field to the plugin table that stores mp3 information, and a function that builds a random playlist of a certain size for the user based on a genre selection.

Joomlapolitan zealot and a somewhat stealthy, rather passive CB3PD developer.
www.constructionlounge.com Construction Lounge: Online resource and networking portal for the construction and remodeling industries.

Please Log in or Create an account to join the conversation.

  • Styles
  • Styles
  • OFFLINE
  • Posts: 25
  • Thanks: 0
  • Karma: 6
17 years 10 months ago #26248 by Styles
Replied by Styles on topic Re:XSPF Profile Player
pointri wrote:

Gotta throw in some kind of grouping logic for that to happen, so it would require a little bit of brainstorming so that it would work for anyone who installs it.

It could be as simple as adding a field to the installer that indicates whether the user's an artist or a listener.


Thats already solved actually... All you have to do is replace the cb_mp3enabled by cb_membertype (i created that field in CB and added it to registration)

at Line 115 rearange something like
if ($user->cb_membertype == "_UE_ARTIST") {

then at line 267 where you close all statements
and return.response

Add: }else{

then whatever player and parameters you want for Non artists

then close all with
}
return $return;
} // end getDisplayTab

I've also added
$playlistURL = $upload_directory."/globalplaylist.xspf";
at line 593 so a xml is built with all subitted songs

It could be as simple as adding a field to the installer that indicates whether the user's an artist or a listener, but then it would need a new dialogue that'll allow listeners to add an artist's tracks to his/her playlist. The best place for that dialogue would obviously be in an artist's flash player.

I think I understand what you mean by autocreating playlists from genres. That would require adding a 'genre' field to the plugin table that stores mp3 information, and a function that builds a random playlist of a certain size for the user based on a genre selection.


For Now ...what I was thinking is to build various playlists
and in the }else{ statement mentioned above
I would add a "Choose your playlist" the same way you have with "manage Playlist"

But that's the part I dont know how to do and need your help

I dont want to use standard Jscripted links...
I'd rather use a dropdown feild from CB

Post edited by: Styles, at: 2006/12/04 22:36

Post edited by: Styles, at: 2006/12/04 22:39

Hey!? I want karma too :(
____________________________________________________________

There's a reason they call me Styles with an S
www.stylesmedia.ca - www.sm-music.com - www.perfect-light.com
Want more? Got more!

Please Log in or Create an account to join the conversation.

  • Styles
  • Styles
  • OFFLINE
  • Posts: 25
  • Thanks: 0
  • Karma: 6
17 years 10 months ago #26261 by Styles
Replied by Styles on topic Re:XSPF Profile Player
(read prior post first)

Ok.. so from what i've gathered so far...
the line 205 is the one to replace in the }else{

replacing [code:1]if ($isME) { include('uploader.php'); }[/code:1]
with something like [code:1]if ($isME) { include('chooseplaylist.php'); }[/code:1]

And chooseplaylist.php would have the code that enables playlist selection.

:huh: PLEASE TELL ME IF I'M OFFBASE OR NOT :S

This PHP would have to acces 1 field in comprofiler that has the "playlist" selection
and it would also access a new table like jos_cbplaylist
with lets say two or three feilds including one with the playlist URL :blink:

then cross reference the table with the cb_playlist
with the new table.

:dry: Ouf... This is hard for a ASP & .NET programmer :laugh:

So...how am i doing so far? anyone here to offert guidance?

Hey!? I want karma too :(
____________________________________________________________

There's a reason they call me Styles with an S
www.stylesmedia.ca - www.sm-music.com - www.perfect-light.com
Want more? Got more!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum