Forum Activity for @maxcinsay

maxcinsay
@maxcinsay
01/14/14 02:17:57PM
60 posts

Duplicate results in Mozilla Firefox when paginating


Jamroom Developers

Here is another link that links all the 16 songs Im using for testing
http://dev5.r2rlive.com/all_songs_test/p=1
maxcinsay
@maxcinsay
01/14/14 02:15:42PM
60 posts

Duplicate results in Mozilla Firefox when paginating


Jamroom Developers

Hello, Im was testing pagination when I noticed that I was getting a duplicate on the results. Below a link to test the results containing only:
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" order_by="audio_file_stream_count numerical_desc" quota_id="4" template="top_songs.tpl" pagebreak="10" page=$_post.p}

This is how I find the duplicate, test on Mozilla:
http://dev5.r2rlive.com/top_songs_pagination/p=1
http://dev5.r2rlive.com/top_songs_pagination/p=2

If you see the song #10 in the first page is the #1 in the second page, this only happens in Mozilla Firefox and I'm sure the song has not been summited twice. The song that should be #11 is called 'Song 7' and it never gets listed.

Is this a bug? or is my command line incorrect?


updated by @maxcinsay: 02/17/14 12:15:12AM
maxcinsay
@maxcinsay
12/30/13 09:02:04AM
60 posts

Listing songs and artists per genre


Jamroom Developers

I was able to get it working but for that I had to do my own jrLoad functions that inserts results with ajax. Im passing the variable of the genre to the function and then create the {jrCore_list call.

I could not use the pager since it will break the persistent player on the website.

This is a example:
var moreSongsTest = function(urlz,nextPage,totalPages,genreSelected) {
console.log(genreSelected);
var response;
$.ajax({ type: "GET",
url: urlz+nextPage+'&genre='+genreSelected,
async: false,
cache:false,
datatype:"html",
success : function(data)
{

response= $(data).find('li.song_container');
console.log(response);
nextPage = parseInt(nextPage) + 1;
if(nextPage == totalPages+1) {
$('.replace_linkGenre').html(' You reached the end of the list, No more songs');
} else {
$('.replace_linkGenre').html('More songs');
}



}
});
$('#new_songsTest').append(response);
}
maxcinsay
@maxcinsay
12/26/13 03:19:06PM
60 posts

Listing songs and artists per genre


Jamroom Developers

Thanks, what you are saying works. That what I have been doing.

My situation arises when I want to display more results, lets say I show 10 songs in the 'Country' category and then I want to show 10 more and so on until the end of the songs. When doing the pagination I dont have the variable of the genre passed to {jrCore....} and therefore it just sends more results without taking the genre in consideration.

Here is the example:
This is the page where you can pick a genre:
http://dev5.r2rlive.com/artists/

And here is the page showing the results for that genre, the genre is passed in the url and them prepared as you mentioned before:
http://dev5.r2rlive.com/artists/songs_Country

I want to be able to show all the music and artists in the genre with pagination.

In the home page you can see what Im trying to accomplish when clicking more songs:
http://dev5.r2rlive.com/
maxcinsay
@maxcinsay
12/26/13 02:25:46PM
60 posts

Listing songs and artists per genre


Jamroom Developers

When I request the songs or artists in a genre, how can I do pagination? I have below the commands to request the list of results and they work fine, but when I try to use pagination it will return results from outside the genre defined.

How can I pass the variable of the genre to make the pagination possible?

Songs:
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" search = "audio_genre = {$genre_to_show|replace:'songs_':''}" order_by="audio_file_stream_count numerical_desc" quota_id="4" template="new_songs_details.tpl" pagebreak="10" page=$_post.p assign="TOP_TEN_CHARTS"}

Artists:
{jrCore_list module="jrProfile" order_by="profile_name asc" search1="profile_active = 1"
search2="profile_genre = {$genre_to_show|replace:'songs_':''}"
template="artist_list_details.tpl" require_image="profile_image" assign="ALL_ARTIST"
pagebreak="10" page=$_post.p}

Thanks for the help!

updated by @maxcinsay: 02/03/14 09:28:42PM
maxcinsay
@maxcinsay
12/26/13 11:02:51AM
60 posts

Top songs not working


Jamroom Developers

Thanks @brian! it worked once I added the numerical_desc.

This is the final code:
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="365" order_by="audio_file_stream_count numerical_desc" quota_id="4" template="side_charts_row_infinite.tpl" pagebreak="50" page=$_post.p assign="TOP_TEN_CHARTS"}

For other users, I use quota 4 because thats the quota for the singers on my website, make sure you have the right one for your project
maxcinsay
@maxcinsay
12/26/13 10:34:45AM
60 posts

Top songs not working


Jamroom Developers

Hello,
Im developing a custom skin based on jrElastic.

Im using this to list the top songs and it doesn't work:
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="365" order_by="audio_file_stream_count desc" quota_id="4" template="side_charts_row_infinite.tpl" pagebreak="50" page=$_post.p assign="TOP_TEN_CHARTS"}

So I have only 16 test songs for this theme and the result shows how many times each song has been played, this is what I get:
Song 1 - 9 plays,
Song 2 - 7,
Song 3 - 6,
Song 4 - 5,
Song 5 - 5,
Song 6 - 5,
Song 7 - 3,
Song 8 - 2,
Song 9 - 2,
Song 10 - 11, (Here is where I can visualize the problem, the songs below this point have more 'plays' than the ones on the top)
Song 11 -11,
Song 12 - 11,
Song 13 - 11,
Song 14 - 10,
Song 15 - 10,
Song 16 - 10

It happens also when I change the days for the chart_days.

Could you help me figure this one out? Thank you
Screen Shot 2013-12-05 at 12.33.00.png Screen Shot 2013-12-05 at 12.33.00.png - 174KB

updated by @maxcinsay: 02/03/14 04:58:50PM
maxcinsay
@maxcinsay
12/10/13 10:55:42AM
60 posts

Increase stream count as result of event


Design and Skin Customization

Thank you Brian, one more time, saving me a headache ;)
maxcinsay
@maxcinsay
12/10/13 10:13:24AM
60 posts

Increase stream count as result of event


Design and Skin Customization

Hello Brian,
I first get the url for the song and then place it as source of the custom player.

Here is how I get the url for the song:
{$jamroom_url}/{$murl}audio/stream/audio_file/{$item._item_id}/key=1/{$item.audio_file_name}

I can see the amount of times the song has streamed in the front end here: http://dev5.r2rlive.com/ but it wont update (the number after the song name)(btw this website is just for smartphones right now)
maxcinsay
@maxcinsay
12/10/13 09:56:04AM
60 posts

Increase stream count as result of event


Design and Skin Customization

Hello, I have been working on adapting a player to the website, so far it works fine but since Im not using the player that comes with JR5 the stream count is not updating.

I want increase the stream count when the user clicks on the play button or when the song is over, do you offer a way to tap easily into the database or some other way to do this?


updated by @maxcinsay: 01/09/14 08:55:02PM
  4