Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Groupjive plugins

  • AlanJones
  • AlanJones
  • OFFLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 2
9 years 10 months ago #258003 by AlanJones
Groupjive plugins was created by AlanJones
Hi, I'm trying to figure out take a user photogallery plugin I've made for CB profiles and display it in groupjive groups. I'm having a difficult time trying to wrap my head how to go about doing this. I've looked in the wall plugin int_cbgroupjivewall_270, but can't seem to find where it's displaying the tab. Any help would be greatly appreciated.

Own Your Own Community!

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #258008 by krileon
Replied by krileon on topic Groupjive plugins
The wall integration is a pretty complex starting point. Review the Abouts integration for a simple display tab. The gj_onBeforeGroupTab trigger is fired on group tab rendering. The getAbout function is called when that trigger fires, which renders the about content.


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 or Create an account to join the conversation.

  • AlanJones
  • AlanJones
  • OFFLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 2
9 years 10 months ago #258017 by AlanJones
Replied by AlanJones on topic Groupjive plugins
Ahh it's MUCH easier to see what's going on in that plugin. Thanks Krileon this should be enough to get me going.

Own Your Own Community!

Please Log in or Create an account to join the conversation.

  • AlanJones
  • AlanJones
  • OFFLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 2
9 years 10 months ago - 9 years 10 months ago #258022 by AlanJones
Replied by AlanJones on topic Groupjive plugins
One more question..

This section of the getAbout function -

cbgjClass::getTemplate( 'cbgroupjiveabout' );
if ( class_exists( 'HTML_cbgroupjiveabout' ) ) {
return HTML_cbgroupjiveabout::showAbout( $aboutContent, $tabs, $group, $category, $user, $plugin );
} else {
return $this->showAbout( $aboutContent, $tabs, $group, $category, $user, $plugin );
}

what exactly is cbgjClass::getTemplate( 'cbgroupjiveabout' ); doing and do I have to define a template for my photogallery integration I'm working on somewhere? Or is this created automatically? As of right now I am not seeing any tab being display I see my integration in the GJ backend.

Edit: Nevermind, I figured out why it wasn't display. I was copying over the getParams from the about integration. I just removed that and it's working now.

Own Your Own Community!
Last edit: 9 years 10 months ago by AlanJones.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago - 9 years 10 months ago #258097 by krileon
Replied by krileon on topic Groupjive plugins
The getTemplate function loads the PHP file associated with the string given. Example as follows.

Template: category
Loads: components/com_comprofiler/plugin/user/plug_cbgroupjive/templates/default/category.php

Most of our plugins have a similar getTemplate function to load their frontend templates.

The template files are not created automatically and you need to create them. For next release of GJ those template files will be created on install for the integrations and it'll no longer use the hardcoded template code, but instead just use the loaded template file.


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.
Last edit: 9 years 10 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum