exclude list buttons

alt=
MONEE
@monee
one month ago
86 posts
how do I exclude the block user and download button from the jrCore_item_list_buttons in the call. I don't want it excluded site wide. Just certain pages. and how to show only the cart and add to playlist buttons for audio on profiles.
updated by @monee: 12/23/24 03:21:45PM
michael
@michael
one month ago
7,774 posts
There's probably other ways too but the first thing my mind jumps to is using the "Events and Listeners" system to filter it out.

Docs: Events and Listeners
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1011/events-and-listeners

There are 'events' all over the place that allow you to tap into the flow of things and adjust whatever you want.

You do that by building a simple module for your site then adding a listener. The way it works is all of the info for that point in time comes into your listener function on the $_data array, then you pass it back out to where it came from when you're finished.

In the function you unset anything you dont want set or set things you do want set.

---
The non-coding way to do it that might work too is using the button controller button that you can see on the right when logged in as admin. open that for where you're wanting and turn off the buttons you dont want.
control.jpg
control.jpg  •  435KB

off.jpg
off.jpg  •  273KB