Hi,
I'm working with J1.7/CFv4. I want to publish a form where information from the Community Builder DB is being displayed based on who is logged in.
I want to use DB Record Loader (DBRL) to load the data. I have setup the DBRL to load all data from the CB table (jos_comprofiler) and put the data in a Model (CBUser) to use in the form. To load only the data for the user who is logged in I use the following code at the WHERE statement:
To test the form if the correct data will be displayed, at the "On record found" part, I've put a custom code:
To display if nothing is found I use the custom code "On empty Result":
And have put the 'stopper'-part
When I log in to the website and run the form nothing is displayed. I think I have done something wrong at the WHERE statement.
Who has some notes how to solve this. Thanks :-)
Robin
I'm working with J1.7/CFv4. I want to publish a form where information from the Community Builder DB is being displayed based on who is logged in.
I want to use DB Record Loader (DBRL) to load the data. I have setup the DBRL to load all data from the CB table (jos_comprofiler) and put the data in a Model (CBUser) to use in the form. To load only the data for the user who is logged in I use the following code at the WHERE statement:
user_id = "<?php JFactory::getUser()->id; ?>"
To test the form if the correct data will be displayed, at the "On record found" part, I've put a custom code:
<?php $details = $form->data['CBUser'];?>
Your CB-ID: <?php <?php echo $details['user_id']; ?>
To display if nothing is found I use the custom code "On empty Result":
<p>No user found.</p>
And have put the 'stopper'-part
When I log in to the website and run the form nothing is displayed. I think I have done something wrong at the WHERE statement.
Who has some notes how to solve this. Thanks :-)
Robin