Menu link to display all users media

5 months 2 weeks ago #316283 by krileon
Replied by krileon on topic Menu link to display all users media

1) can we add a gallery field to a groupjive category only ? and use this approach

I guess if you modify the template files and call CB Gallery API to output one in a GJ category or try acting on category display triggers with CB Auto Actions and a CB Gallery action.

2) can we add some fields to a gallery ? to a group ? for instance a counter field and some other ones (text and numbers)

I suppose if you modify the template files you could or try acting on CB Gallery triggers depending on where you want to display those fields.

Would this be doable and easier than using Galery ?

Sounds like it, yes. Attending event doesn't display anything on profile so you'd need to implement that.

If yes, can we change some language strings in a single group category for our needs with auto actions ?

No, language strings are not category specific.

Could we in this case, display the dropdown list of all events a user is participating somewhere ? and display the event description of the chosen event ?

Probably doable with CB Query Field by querying the_groupjive_plugin_events_attendance table, but you'll also need to join the _groupjive_plugin_events for the event details.


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.

Please Log in to join the conversation.

5 months 2 weeks ago - 5 months 1 week ago #316300 by activha
Replied by activha on topic Menu link to display all users media
Ok we'll go the GJ events way.

Probably doable with CB Query Field by querying the_groupjive_plugin_events_attendance table, but you'll also need to join the _groupjive_plugin_events for the event details.


CB Query Field do not record anything in CB tables, correct ? So what field can we use to record something retrieved by CB query ? is this a code field ?

I used Query drop down single select with following query :
SELECT e.* FROM `yq0g1_groupjive_plugin_events` AS e JOIN `yq0g1_groupjive_plugin_events_attendance` AS a ON a.`user_id` = '[user_id]]' AND a.`event` = e.`id`
value column = id
option column = event

This does output a drop down list to choose from but does not display any value when the returned value is html. Can you tell me what is wrong ? Do I have to change the displayed profile layout from [value] to something else ?

For instance if the query result is standard text, all is fine but if the query result is structured as
test marketing event<br />
<img alt="" height="335" id="" src="images/activha-cercle-ville-small.jpg" style="" title="" width="500" />
or with youtube embedded iframe then no value is displayed in the CB Query

Concerning GroupJive :
Is there any CB substitutions that we can use with GJ ?
For instance getting the events details and dates for an event attended by a user, or the groups joined ?
Could be very useful throughout joomla ;-)

I also opened another post concerning the ability to add custom fields to GJ events but you can reply here if you want to suppress it.

Thanks
Jean

Please Log in to join the conversation.

5 months 1 week ago #316306 by krileon
Replied by krileon on topic Menu link to display all users media

CB Query Field do not record anything in CB tables, correct ? So what field can we use to record something retrieved by CB query ? is this a code field ?

Query and Code fields do not store anything. They just display the results of your custom SQL or PHP. Why do you need to store anything? As I understood you just need to display their event attendance on profile so you don't need storage.

This does output a drop down list to choose from but does not display any value when the returned value is html. Can you tell me what is wrong ? Do I have to change the displayed profile layout from [value] to something else ?

You're using the wrong fieldtype. You need a plain Query field which displays the results of your SQL.

Is there any CB substitutions that we can use with GJ ?
For instance getting the events details and dates for an event attended by a user, or the groups joined ?

No, use the results of your query for that. If you need the groups details you'll have to do a join of the groups table as well.


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.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.399 seconds

Facebook Twitter LinkedIn