[SOLVED] Add Group Name from GroupJive to regular Field

11 years 10 months ago - 11 years 10 months ago #201755 by ncmed
How to you pass the Group Name from GroupJive into a regular field?

Please Log in to join the conversation.

11 years 10 months ago #201760 by ncmed
I want to add the ability for a Super User to search Members and if they are apart of a group, it will display in a regular field.

Please Log in to join the conversation.

11 years 10 months ago #201773 by nant

ncmed wrote: I want to add the ability for a Super User to search Members and if they are apart of a group, it will display in a regular field.


Can't you search from GroupJive backend?

Please Log in to join the conversation.

11 years 10 months ago - 11 years 10 months ago #201803 by krileon
Easiest approach is to use CB Query Field and query GJ database tables (review your database for them, they all begin as _groupjive) and it'll output on profile the results of said query. Example as follows.

Query:
SELECT g.* FROM `#__groupjive_users` AS u LEFT JOIN `#__groupjive_groups` AS g ON g.`id` = u.`group` WHERE u.`user_id` = '[user_id]'
Mode: Internal
Output: Multiple Rows
Row:
<div>[column_name]</div>

Note a query field can't be searched.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: pepperstreet, ncmed

Please Log in to join the conversation.

11 years 10 months ago #201810 by ncmed
Nick A., I have set things up so an Administrator who I don't trust in the back-end will do a search of Users. This is broken down in to Fields with the list manager. I also have Geommunity (Google Map) set up as a secondary search option on the same page. So basically this has to be front end with a Field search as the group tab is not an option here.

Kyle, I am trying to add this to the search and noticed your "a query field can't be searched". Is there a way to create new identical field just so I have a text to display? I have created a 'cb_autogroup' on the registration that automatically creates a group name already and passes this name to the 'cb_autogroup' Field Name, but this only works for the group owner and when set up from registration or backend. When I do invites, there must be a way to add the invited to this Field once accepting of invite.

Please Log in to join the conversation.

11 years 10 months ago #201814 by krileon

Kyle, I am trying to add this to the search and noticed your "a query field can't be searched". Is there a way to create new identical field just so I have a text to display? I have created a 'cb_autogroup' on the registration that automatically creates a group name already and passes this name to the 'cb_autogroup' Field Name, but this only works for the group owner and when set up from registration or backend. When I do invites, there must be a way to add the invited to this Field once accepting of invite.

Auto join fields don't store anything to the database. You can pull this information using CB Query Field. To do it otherwise so it can be searchable you'll need to use CB Auto Actions, utilize the GJ trigger, store the value to a field and then it can be searched but in all of these cases there can be multiple values; for example a user can join 100 groups instead of just 1 and you'd need to handle the storage of all 100 to a field.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: ncmed

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.241 seconds

Facebook Twitter LinkedIn