Skip to Content Skip to Menu

How to get CB activity to display cb_fields after registration.

  • imaaxx
  • imaaxx
  • OFFLINE
  • Posts: 126
  • Thanks: 11
  • Karma: 2
10 years 7 months ago #242859 by imaaxx
Hello,

Thanks for your help so far, i have the CB fields i want tracked and they are now showing when they are updated in the activity area.

But what i really wanted is to have all the custom fields display after someone is registered. New users that register on the site it only says "Newuser" has joined site. Can this be done?

So it looks like this:

"Newuser" has joined.
Name:
Lastname:
City:
Country:
Custom field1:
Custom field2:
etc.


Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242873 by krileon
You'll need to edit profile activity model which handles the output of activity for registrations, profile updates, etc.. and add for it to output additional information.

components/com_comprofiler/plugin/user/plug_cbactivity/models/profile.php


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.

  • imaaxx
  • imaaxx
  • OFFLINE
  • Posts: 126
  • Thanks: 11
  • Karma: 2
10 years 7 months ago #242879 by imaaxx
Hello,

Ok so i can see this file but i am sorry i have no idea what to add and where to add it. I am not a coder so this is a little above my skills. Can you provide an example of where to edit and what to add for say the city and county? and an example of how to add a custom text field that we have created.

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago - 10 years 7 months ago #242883 by krileon
You maybe able to just modify onAfterUserRegistration within components/com_comprofiler/plugin/user/plug_cbactivity/plugin.cbactivity.php instead.

You'll need to set a activity message then add your substitutions to it (it'll automatically parse out substitutions). Example as follows.

Code:
$activity->set( 'message', 'Username: [username]' );

You'd add the above under the other "set" usages in that function.

It's also possible to disable the internal handling of that trigger and use CB Auto Actions to add custom activity however you like on the after registration trigger using the CB Activity action. This method would require no coding and just simple setup of an action if you prefer.


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

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

  • imaaxx
  • imaaxx
  • OFFLINE
  • Posts: 126
  • Thanks: 11
  • Karma: 2
10 years 7 months ago #242891 by imaaxx
Hello,

Yes i would prefer the second method you have mentioned can you please point me to the documentation on how to achieve this?

I have begun to read some of the documents provided with the auto actions plugin but i cant seem to find the one that would do what i want. Im a bit lost as to how to configure this.

Thanks for all your support.

Alan

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242899 by krileon
Our tutorials page below has some CB Auto Action examples.

www.joomlapolis.com/support/tutorials/107-use-cases

Specifically for your usage though the below should get you started.

Type: CB Activity
Trigger: onAfterUserRegistration
Access: Everybody
Owner: [user_id]
Type: profile
Sub-Type: registration
Title: has joined [sitename_linked]
Message:
Code:
Username: [username] Name: [name]
Icon: bookmark

You can add whatever substitutions or text you like to the message. Title and various other parameters also support substitutions. Please see the below tutorial for further substitution usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


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: imaaxx

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

Moderators: beatnantkrileon
Powered by Kunena Forum