Some template questions..

m2antrax
@m2antrax
10 years ago
8 posts
Ok so im working on a template (customizing default one) and i had a few questions on how to do some things.

1. How can i get the default image of the current member loged in?
i will need the template code for this..

2. how can i add the numbers to top songs.
example Top songs
1. top song name
2. top song name

so i need to add the 1, 2,3,4 infront of each item.. like a loop.. i will need the template code also.


http://portadamusical.com

thanks
updated by @m2antrax: 10/18/14 03:03:46PM
douglas
@douglas
10 years ago
2,790 posts
1. This will depend on what template your trying to add the image to and the reason your wanting to.

2. Not 100% sure without checking, but I think the variable you'll want to add to your row template is $item.audio_rank.

You can stick a debug in your row template and get a list of available variables.

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

Hope this helps! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
paul
@paul
10 years ago
4,326 posts
Actually, I think its $item.list_rank :-)
Its a generic variable for all listings


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
10 years ago
7,714 posts
m2antrax:1. How can i get the default image of the current member loged in?

If you want anything of the user looking at the screen, its found in the $_user array.


You might try:
{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$_user._profile_id size="large" class="img_scale" alt="Your Image" title=$hover width=false height=false}

Tags