Jr Seamless function ,order_by wildcards

johnchansa
@johnchansa
10 years ago
195 posts
I have been using the code below for listing songs by plays.It worked well.
{jrSeamless_list modules="jrAudio,jrSoundCloud" order_by="*_file_stream_count NUMERICAL_DESC"}

However,after some updates,now only audio tracks are being listed.When I make the following modification.....order_by="*_stream_count NUMERICAL_DESC"..... only the soundcloud tracks are listed.

How can this be fixed?
updated by @johnchansa: 01/13/15 04:44:55PM
michael
@michael
10 years ago
7,746 posts
That doesn't look like it ever should have worked. The wild card for queries is %.
paul
@paul
10 years ago
4,332 posts
I've just modded a template to use -

{jrSeamless_list modules="jrAudio,jrSoundCloud" order_by="*_file_stream_count NUMERICAL_DESC" pagebreak=20 template="songs_row.tpl" page=$_post.p}

and it works ok. The site is fully up to date with the latest Core and modules.

I think that in jrSeamless the wildcard only acts on the module prefix. Could that be the issue?


--
Paul Asher - JR Developer and System Import Specialist
johnchansa
@johnchansa
10 years ago
195 posts
I followed your code and still only audio tracks are being listed.
I looked at the various datastores and I noticed a difference in the naming format:
Soundcloud :soundcloud_stream_count
Audio :audio_file_stream_count
Could this be the problem?I remember seeing "soundcloud_file_stream_count" in the earlier JR5 templates.
paul
@paul
10 years ago
4,332 posts
Now that's interesting. Have just looked at the sound cloud module code and there's a listener in there to change "soundcloud_file_stream_count" to "soundcloud_stream_count" on module verify functions. Its the same with the youtube and vimeo modules as well.
Not sure when that was introduced but can see why its been done as these modules are not 'file' based.
I think it would be best if I changed the jrSeamless module to handle wildcards better. I'll put it on my todo list and hopefully get it sorted in the next couple of days.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
johnchansa
@johnchansa
10 years ago
195 posts
OK thanks....I will wait for the next JrSeamless update.
alt=
Ekwe
@ekwe
10 years ago
212 posts
Ah great, was just looking for a way to do this. Any time soon for this update :) ?

Tags