like_status For Audio Tracks Not Showing

alt=
Ekwe
@ekwe
10 years ago
212 posts
I have used {$like_status} $item.like_status etc for this. And it is not showing the status of the user. How do I display it to the user in a text format. Thanks
updated by @ekwe: 10/29/14 05:21:52PM
michael
@michael
10 years ago
7,746 posts
Same problem. You need to give more info about what your wanting to do if you want help solving the issue.

Give this a read:

"How to ask for Help"
https://www.jamroom.net/the-jamroom-network/documentation/problems/529/how-to-ask-for-help
alt=
Ekwe
@ekwe
10 years ago
212 posts
sorry this is what i'm trying to do.

 {if $like_status == "liked"}
  
Liked  
  {else}

<image> Do you like this track?
{/if}
michael
@michael
10 years ago
7,746 posts
Use the {debug} function to see if $like_status exists in your template or not. If that variable is not there, then you will always land in the {else} section

"{debug}"
http://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug
alt=
Ekwe
@ekwe
10 years ago
212 posts
michael:
Use the {debug} function to see if $like_status exists in your template or not. If that variable is not there, then you will always land in the {else} section

"{debug}"
https://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug

I did use debug, and used it from there. Still not working
updated by @ekwe: 09/20/14 10:15:28PM
paul
@paul
10 years ago
4,332 posts
Where is your $like_status coming from? Its not part of the jrLike datastore as standard. Are you creating it as a custom variable in your template, or as a custom field in the datastore?


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
10 years ago
4,332 posts
Just checked the code - $like_status is passed to the template that creates the button. So is it that template you are modifying?
Otherwise $like_status doesn't exist in other templates.


--
Paul Asher - JR Developer and System Import Specialist

Tags