Action Feeds For Audio Plays

alt=
Ekwe
@ekwe
10 years ago
212 posts
Will like to show actions of songs being listened to by users. How can I do that? Thanks
updated by @ekwe: 05/04/14 11:34:29PM
brian
@brian
10 years ago
10,148 posts
Install the Event Tracer module:

https://www.jamroom.net/the-jamroom-network/networkmarket/92/event-tracer

and in it's config enable it for streams. Then you can use a jrCore_list call to show "what's being listened to now".

There is no "actions" support for streaming - only the tracer module records that info.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
Ekwe
@ekwe
10 years ago
212 posts
brian:
Install the Event Tracer module:

https://www.jamroom.net/the-jamroom-network/networkmarket/92/event-tracer

and in it's config enable it for streams. Then you can use a jrCore_list call to show "what's being listened to now".

There is no "actions" support for streaming - only the tracer module records that info.

Hope this helps!


Can you please give me a sample call for the user stream listens tracer?

Thanks
brian
@brian
10 years ago
10,148 posts
Sure - this is off the top of my head so you may need to tweak it:

{capture name="template" assign=“row_tpl"}
{literal}
    {foreach $_items as $item}
        User {$item.user_name} just streamed {$item.audio_title}
    {/foreach}
{/literal}
{/capture}
{jrCore_list module=“jrTracer” search=“trace_module = jrAudio” limit=“10” template=$row_tpl}

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
Ekwe
@ekwe
10 years ago
212 posts
not working, got a white screen
michael
@michael
10 years ago
7,714 posts
White screen mean there is an error in the code.

* Change the code
* reset the caches
* refresh the screen.
alt=
Ekwe
@ekwe
10 years ago
212 posts
Same
paul
@paul
10 years ago
4,326 posts
It might be that there are no Tracer items to list.
Wrap the above code in the skin header and footer include calls to see if there is really an error, or just nothing to show.
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist

Tags