solved Custom Playlist Button Not Working Properly

alt=
Ekwe
@ekwe
10 years ago
212 posts
Trying to put in the new add to playlist button. Not working well for me, it still requires I leave this code for it to work, making me have 2 buttons

Requires : {jrCore_module_function function="jrPlaylist_button" playlist_for="jrAudio" item_id=$item._item_id}

Custom button:
updated by @ekwe: 05/02/14 01:49:52PM
brian
@brian
10 years ago
10,148 posts
What are trying to change about the add to playlist button? The jrPlaylist_button function is fairly complicated (it involves a lot more than just a button), so replacing it is going to be tricky, and would likely require a custom module.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Can't you (Jamroom) just add that image to the "images" tab of the playlist module?
updated by @ilovehousemusic: 03/18/14 04:18:09PM
alt=
Ekwe
@ekwe
10 years ago
212 posts
The image i put, it shrunk it. I need a big and small size button for different rows. Don't see how to have them.
brian
@brian
10 years ago
10,148 posts
iLoveHouseMusic:
Can't you (Jamroom) just add that image to the "images" tab of the playlist module?

No - it's used as a sprite, not an image. However, the images that are used in the sprites are all in the jrCore/img/icons_black and jrCore/img/icons_white directories.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
Ekwe:
The image i put, it shrunk it. I need a big and small size button for different rows. Don't see how to have them.

You can change the icon that is shown with the "icon" parameter, or even assign a separate image with the "image" parameter - i.e.

{jrCore_module_function function="jrPlaylist_button" playlist_for="jrAudio" item_id=$item._item_id image="http://yoursite.com/image.png"}



--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
Ekwe
@ekwe
10 years ago
212 posts
bingo, thanks so so much
brian
@brian
10 years ago
10,148 posts
Ekwe:
bingo, thanks so so much

No problem - glad to see that fixed it ;)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags