Skip to Content Skip to Menu

Get the user data from the DB of CB

  • entumas
  • entumas
  • OFFLINE
  • Posts: 36
  • Thanks: 0
  • Karma: 0
8 years 4 months ago #281217 by entumas
Get the user data from the DB of CB was created by entumas
Hi! :cheer:

I'm working on a website that works with user registration, this I am doing a couple of contact forms with ChronoForms. I want to make a very simple contact form, which only has the text message field. I want the form get user data directly from the database.

In ChronoForms documentation I found information on how to get data from users of Joomla, but not of CB.
Code:
<?php $user = \JFactory::getUser(); $form -> data['user_id'] = $user -> id; $form -> data['user_name'] = $user -> name; $form -> data['user_email'] = $user -> email; ?>

How I can get user data directly from the DB of Community Buider?

Thanks!

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
  • entumas
  • entumas
  • OFFLINE
  • Posts: 36
  • Thanks: 0
  • Karma: 0
8 years 4 months ago #281384 by entumas
Replied by entumas on topic Get the user data from the DB of CB
I've been reading all the documentation section of tutorials and nothing works for me.
I finally found a solution on an external page.

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

  • highonryan
  • highonryan
  • OFFLINE
  • Posts: 60
  • Thanks: 14
  • Karma: 2
8 years 1 week ago #285704 by highonryan
Replied by highonryan on topic Get the user data from the DB of CB
Would you mind sharing the solution. I am trying to figure this out myself.

Thanks.

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

Moderators: beatnantkrileon
Powered by Kunena Forum