solved Timeline for certian profile Quotas

gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Hi Guys

Is it possible to filter the timeline for only posts from profiles within a certain quota?

For instance $_conf.gmsite_business_quota => "8" holds the quota ID, is it possible to filter using that?

Tried a few ways but no luck yet.

Thanks
updated by @garymoncrieff: 01/20/15 12:58:01PM
paul
@paul
11 years ago
4,335 posts
Add a search option into the {jrCore_list . . .} call -

{jrCore_list module="jrAction" search="profile_quota_id = 8" etc etc}

hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Hi Paul

I had tried that with this code and it didn't work.

{jrCore_list module="jrAction" search="profile_quota_id = 8" template="business_timeline.tpl"}

the template is just the jrAction's item_index.tpl copied and renamed.
brian
@brian
11 years ago
10,149 posts
Just use quota_id:

quota_id="8"

That should do it.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Cant seem to that to work either, still loading the full timeline and not just Business profile entries.
updated by @garymoncrieff: 12/15/14 11:47:35PM
michael
@michael
11 years ago
7,791 posts
you tried:
{jrCore_list module="jrAction" quota_id="8" template="business_timeline.tpl"}
and it loaded action items from profiles other than 8 ?
gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Yes I have tried that, would it be related that the only business profile during testing is a sub profile of the admin account?

Results
http://tinypic.com/r/x0pe6w/8

Code
http://tinypic.com/r/17vf69/8
brian
@brian
11 years ago
10,149 posts
If you look inside your jr_jraction_item_key table (which holds all the action items) you should see each entry has a _profile_id key. When you pass in a quota_id param, the Profile module "sees" that and creates a special sub-select to only include _profile_id entries that match your parameter. I'm pretty certain it is working correctly, but I will test with the Action module to see if something is causing it to not work there.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,149 posts
OK just checked this out and I am wrong - looks like profile_id parameter support is only enabled IF the module being search is jrProfile. Not sure why I have set it that way, but I will check it out and see if I can update it to support all modules - that should then work here.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,149 posts
I've got this fixed up now in User Profiles version 1.2.0 - update and let me know if that is works for you now.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Still not working on my end, I sent you admin details in a private note.
brian
@brian
11 years ago
10,149 posts
This has been fixed up in the template on your site - let me know if you see any additional issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags