Auto Create Groupjive Categories

13 years 11 months ago #129053 by sunjeev
Auto Create Groupjive Categories was created by sunjeev
Joomla 1.5.15
cb 1.2.1
cb subs 1.3
GroupJive 1.8RC

I have set up the GroupJive integration plugin to sucessfuly create a group based on a text field cb_companyname in a previously created Groupjive Category.

Q. I want to auto create a GroupJive category on plan subscription the category name should take the value from cb_companyname which the user fills on registration. At the same time i want to also create a group within this cb_companyname category that takes the value from a hidden field cb_gjdefaultgroup, this field value will be something like 'Our Staff'. I also want the category image the same as the users avatar.

Q.Furthermore I want to ensure that the user can only create groups within his company category. Because the add group page is javascript i cannot find a hyperlink to the relevent category, I was thinking to add a substitution link in the cb content module.

I also want this new category/group to be invite only.

My Objective is to allow this user to create groups within his own category.

Post edited by: sunjeev, at: 2010/04/02 19:40

Post edited by: sunjeev, at: 2010/04/02 19:51

Please Log in to join the conversation.

13 years 11 months ago #129256 by krileon
Replied by krileon on topic Re:Auto Create Groupjive Categories
Currently GroupJive 1.8 does not support category owners (is available in 2.0) so am unsure how you intended to distinguish a category to a specific user (believe there is still an owner column in database, but is unused?).

You'd need to use SQl Actions to perform an insert query (might be good to perform a select and use an IF statement query to insert OR update encase category already exists for said user).

I recommend examining the GJ Database in order to understand how to structure your query.


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.174 seconds

Facebook Twitter LinkedIn