solved Possible playlist bug for admins only?

Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Wondering if others have this too...

In profile playlists-
For both audio and video, regular members can add (eighth notes icon) or remove (X icon) items from a playlist. That's as expected.

But for moderator/admins, for VIDEOS in playlists, we do not have a remove option (the X)- instead we have only the DELETE (garbage can) that we see elsewhere. (plus we have the note/add icon) Using the trash can to remove videos from our playlists deletes the video from the whole site.

The remove-from-playlist "X" for Videos is missing for moderator/admins in playlists.
For AUDIO clips, moderator/admins have BOTH the add (eighth notes) and remove (X) option in their playlists, and no trash can....as it should be.

Thanks for checking this out!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 07/28/15 09:54:47PM
douglas
@douglas
9 years ago
2,790 posts
I'm not seeing an issue on my dev site nor am I seeing an issue on your site logged in as the admin. I don't have a normal user login for your site, but I didn't see an issue on my dev site logged in as a normal user either.

Note to remove tracks from a playlist, you have to be on the actual playlist detail page.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Douglas, I think it has to be when you are logged in as an admin and looking as your OWN playlist...at videos on your playlist page. You'd have to create a test playlist quickly in order to see this.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
9 years ago
2,790 posts
I just created a test playlist here:

http://fotmd.com/strumelia/playlist/19/test-admin-playlist

and I see the playlist button and the delete button, is that what you see?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
9 years ago
2,790 posts
I don't see an issue with the audio playlist either:

http://fotmd.com/strumelia/playlist/20/test-admin-audio-playlist


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Hmm, now I am not seeing the issue that both my moderator and i saw for our own playlists yesterday.
Let me mark this as "investigating' and we'll test this further. Thanks!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Nope, this bug is real- just did some more testing.
It's appearing only for Youtube-added videos. (not for audios, and not for uploaded videos, though have not tested Vimeo yet).

Here is what a regular member sees in their playlists:



--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 06/20/15 12:14:02PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
And here is what I and my moderators see when we are logged in, looking at our playlists:
admin-playlist.jpg
admin-playlist.jpg  •  717KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 06/20/15 12:15:09PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
So, have not tested Vimeo yet, sorry, but.... regular members have no way of removing youtube videos from their playlists....and...admins only have the trash can to remove a youtube video from a playlist...and the deletes the video from the site entirely.
The reaason you didnt see the bug on your sample video playlist is because that video was uploaded...not a youtube vid...so it did not show the issue.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 06/20/15 12:19:08PM
douglas
@douglas
9 years ago
2,790 posts
Hmm, you shouldn't be able to create playlists with YouTube or Vimeo videos as I don't believe it is supported. At least that is what I thought. I'll check and see if something has changed.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
You can add youtube videos to playlist but they dont show in the video player, just in the list of what's available in the playlist and like above there is no way to remove them from the playlist.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Worse, as admin or moderator, if you accidentally hit the trash can to remove the YT vid from your playlist, you delete it from the site...not cool if it's not your video!
As is now, both admins and regular members can add all 3 types of vids to playlists- YT, Vimeo, and uploaded vids. I thought that was a cool thing, to have playlists of audio AND videos! But if it worked right as to being able to remove the vids from playlists the same as one removes audio clips.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,715 posts
Strumelia:....Nope, this bug is real- just did some more testing.
It's appearing only for Youtube-added videos...

The issue is not with the playlist module in this case, Yes its possible to alter the templates to allow youtube and vimeo to be ADDED to a playlist, the playlist module is happy with that, no worries.

The issue is that both youtube and vimeo require their videos to be played in their player. There is no player that we have located yet that is capable of playing youtube and vimeo and native video all in the same place.

So the issue is with playback.
michael
@michael
9 years ago
7,715 posts
This is the code for the remove button for the jrVideo
{jrCore_module_function function="jrPlaylist_remove_button" id="#v`$playlist_item._item_id`" module="jrVideo" playlist_id=$playlist_id item_id=$playlist_item._item_id}
from
/modules/jrVideo/templates/item_playlist.tpl

Because jrYouTube doesn't have an item_playlist.tpl its showing a different format which seams to be the jrYouTube's item_list.tpl unless you've created an item_playlist.tpl for the jrYouTube module.

The code for the remove button should be:
{jrCore_module_function function="jrPlaylist_remove_button" id="#y`$playlist_item._item_id`" module="jrYouTube" playlist_id=$playlist_id item_id=$playlist_item._item_id}

which needs to go into whatever template is controling the output of the item in that list.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Michael, I'm afraid i don't really understand your last post. It goes over my head...I have not created any templates yet in my baby coding 'career'. :( So now I'm not sure if i should try to 'fix' the YT vids to show better or play in playlists (which I am understanding is not possible anyway?) ...or just eliminate people's ability to add vids to playlist lists at all, which is what we seem to have the ability to do right now.?
---------------------------

I wrote this below, BEFORE seeing your last post:

I see- and the Youtube vids, even though they 'can' be added to a playlist, will not actually play within the playlist. (though uploaded videos can...however that will cause untold confusion to members going forward).
So the real point is that videos are best not put into playlists to begin with...only audios. I guess since we were seemingly 'able' to add them and have them be visible, I thought the ability was built in, but just had a simple glitch. Turns out the 'glitch' is that we should not be able to add the videos to 'playlists' at all. ;)

So now that I understand better... I guess now my problem/goal is to eliminate everyone's ABILITY to put any videos into 'Playlists' to begin with...


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 06/21/15 07:04:56PM
michael
@michael
9 years ago
7,715 posts
on your site, the "add to playlist" button as been added to the YouTube and Vimeo items, its not there by default. I looked and am not sure where it was added. Do you know when/where that happened and if it was on purpose or not?

That would be the first step in getting it sorted, deciding how you want to get it sorted.
* keep the add to playlist button and figure out a solution for getting it to play.
* remove the add to playlist button for things that dont play in playlists.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
* remove the add to playlist button for things that dont play in playlists.

That seems like the much easier and more logical solution to me. To you as well?

Michael, was it not you who helped me get the combined audio/video and video comments and such links to show everywhere? I 'think' it was you and not Douglas (Douglas helped me before you did, to set up some content blocks on the main page) The combined video coding stuff was beyond me, and I thought it was you who helped me get that working...with the links and modules and comments and artist names etc. I can go back in my old notes from a couple months ago to se who helped me with the video code tweaks if you like? As to where it was tweaked- yikes I would not know since I didn't change any defaults myself.

P.S. Speaking of which, I have a help ticket with your name written all over it, concerning audio & video comment counts... (aren't you glad you asked?) =8-p


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 06/21/15 07:23:09PM
michael
@michael
9 years ago
7,715 posts
We haven't been able to solve the other one, so yes that makes the most sense to me.

I did help with some stuff, I don't remember turning on the playlist button. I'll go poke around a bit now and see if I can locate where its coming from.
michael
@michael
9 years ago
7,715 posts
I've turned off the playlist button for youtube in your button settings. Not sure why it was showing up there, I can't get the same system setup on my local environment. Still looking.
michael
@michael
9 years ago
7,715 posts
Found the issue, we had accidentally left a file in the youtube module:
/modules/jrYouTube/templates/item_playlist.tpl

So the playlist module detected that, thought the module was Playlist ready and added the button.

I've updated the module and removed the file so the button doesn't show incorrectly. Probably left over from when we were testing ages ago trying to get all the systems to work with the player.

Should be good to go now. Sorry for the hassle. :)
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
You are awesome Michael. :)

But...one last thing- I have this same issue occuring for Uploaded Videos as well...they too exhibit the 'add to playlist button' and can be added to playlists... and they should not.
Can you find that bit of code too please?

Even though the uploaded videos CAN be added to playlists and WILL play fine in the playlists, I need to eliminate that ability too, or else my members are going to get confused and frustrated as to why they can't add their own (youtube) videos to their playlists despite seeing other people's (uploaded) vids in THEIR playlists. I just need to eliminate adding any types of vids to playlists across the board.
Thanks if you can adjust the module as well for the uploaded videos.

The Vimeo videos do not seem to have any of these issues. (yay!)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,715 posts
To turn off the playlist button for uploaded videos too, go to where you can see the button somewhere like:
your-site.com/SOME ARTIST/video

Then click on the button on the far right that looks like level meters (for one of the videos that has the 'add to playlist button').

That will show you all the buttons associated with that content type and show the:
"User Playlists | add to playlist button" -> MODIFY

Uncheck ACTIVE and save and the button will no longer appear.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Ah- that i can understand! Done, and thank you! :D


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
wow, and good thing I fixed this today, because it seems the members on my brand new live JR site are beginning to discover their playlist features this evening! ;)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015