solved Profile Ranking

infinityssm
infinityssm
@makande
10 years ago
53 posts
Hello, In Jamroom4 I was able to use the ranking function to list artist positions locally, nationally and worldwide.

How would I duplicate this function in Jamroom5. I would like each artist to be ranked by total votes or total songs played in a local area for example.

ie, Artist A is ranked #1 locally ( artist has the most votes in NY).

Similar to the Charts functionality I guess.

Is this Possible?

Thanks
updated by @makande: 09/20/14 09:42:33PM
paul
@paul
10 years ago
4,331 posts
First of all, you'll need to know where your profiles are located. The simplest way would be to create a custom form field for the profile update view and get them to enter their location.
Alternatively, checkout the jrGeo module or SteveX's Google maps module to see if they can automatically create a profile location field(s) from the users' IP address.
When you then have a location field, you can then use it in the appropriate jrCore_list function to filter the searches accordingly.


--
Paul Asher - JR Developer and System Import Specialist
infinityssm
infinityssm
@makande
10 years ago
53 posts
These tasks were done already. Now how do I get the information needed. This feature is viewable only to the artist who owns the profile. It would look like the following;

Artist Rankings
Local - 1
National - 10
Worldwide - 80

Any ideas?

Thanks
paul
@paul
10 years ago
4,331 posts
Were you using the 'band_location' field in JR4 to do this.
There is no equivalent field by default in JR5. You'll need to create one as described above.


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
10 years ago
4,331 posts
Just thought - Did you import your JR4 site to JR5? If so, take a look at your profile datastore to see if the location info made it through. If so, you may be able to use that.


--
Paul Asher - JR Developer and System Import Specialist
MySong
MySong
@mysong
10 years ago
155 posts
paul:
If so, take a look at your profile datastore to see if the location info made it through.

How do you view 'profile datestore'? For other modules it is available in their tool settings but this option does not exist in JRprofile.

Thanks
updated by @mysong: 08/20/14 09:52:19AM
MySong
MySong
@mysong
10 years ago
155 posts
site.com/profile/dashboard/browser does not let you see all the available fields like the other module datestore browsers allow.
paul
@paul
10 years ago
4,331 posts
ACP=>Tools=>Developer Tools=>Tools=>Database Admin=>select jr_jrprofile_item_key
Click on the _item_id in the table header to order by it, then scroll through the profiles looking for profile_location


--
Paul Asher - JR Developer and System Import Specialist
MySong
MySong
@mysong
10 years ago
155 posts
Thanks got the field I was looking for.