Dazed
Dazed
@dazed
11 years ago
1,022 posts
Douglas - How is the easiest way to change the slider on index to pull quotas vs artist id? The skin config want to pull by featured artist and I would prefer featured quotas.

Thanks!
updated by @dazed: 03/31/14 04:53:02AM
douglas
@douglas
11 years ago
2,797 posts
Instead of putting Artist ID's in the Featured Artists field of the skin config, add your quotas, separated by a comma, and in your header.tpl file, find this:

                                    { if isset($_conf.jrProJam_profile_ids) && strlen($_conf.jrProJam_profile_ids) > 0}
                                        { jrCore_list module="jrProfile" order_by="_created desc" limit="10" search1="_profile_id in `$_conf.jrProJam_profile_ids`" search2="profile_active = 1" template="index_featured_slider.tpl"}

and change it to this:

                                    { if isset($_conf.jrProJam_profile_ids) && strlen($_conf.jrProJam_profile_ids) > 0}
                                        { jrCore_list module="jrProfile" order_by="_created desc" limit="10" quota_id=$_conf.jrProJam_profile_ids search2="profile_active = 1" template="index_featured_slider.tpl"}

I just changed the search1 to quota_id and removed everything but the skin config variable.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Thanks Douglas!
Dazed
Dazed
@dazed
11 years ago
1,022 posts
ohhh in JR5 what is the code to force an image? I do not use that across the site but would like it in this piece of code.

Thanks!
douglas
@douglas
11 years ago
2,797 posts
You can use an if statement before your jrCore_list function:

{ if isset($_conf.jrProJam_require_images) && $_conf.jrProJam_require_images == 'on'}

and then in your jrCore_list function add require_image="profile_image". Note that you would have to change profile_image to whatever module your listing, ie. if it was a video listing it would be require_image="video_image" etc...


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos