Not necessary, user email is stored in _users, where you can use the user_id to match the ID column.How would this code need to be modified to copy the email of the profile owner into a new field in jos_comprofiler?
Email, Username, Password, Name are all stored in _users. Only Name is brought to CB table via firstname, middlename, and lastname columns. The ID/user_id columns in _comprofiler will match the ID column in _users.I need to send email notification to profile-owners and I have no clue as where to find this email. I assume that it is encrypted somewhere and need to be extracted somehow.
Please Log in to join the conversation.
Please Log in to join the conversation.
Query doesn't look right; please see below.So would the following query work to copy the email of the user from the jos_users table to the jos_comprofiler in a field called cb_copied_email?
UPDATE `#__comprofiler` SET `cb_copied_email` = '[email]' WHERE `id` = [user_id]
If you're executing from CB Queries or PHP through CBs SQL functions then leave as #__. The substitutions you're using will also only work if being done from CB Queries or if in PHP you've ran the query through the substitution replacement function.Are the table names going to work as-is or should they be replaced by their actual names in the query? (in other words, should the "#__" prefix be replaced by "jos_"?)
CB Query Field displays the RESULT of a query, this means it needs to be a SELECT query. Update queries and of the like are not valid. You need to use CB Queries; huge difference between the two.If I use plug_cbqueryfield, will the field value be updated if the user changes is email or not? (in other words, does plug_cbqueryfield display the remote field or does it copy it?)
Please Log in to join the conversation.
Notice: Undefined property: moscomprofilerUser::$livePath in /var/www/mywebsite.com/components/com_comprofiler/plugin/user/plug_cbqueryfield/admin.cbqueryfield.php on line 80
Notice: Undefined property: moscomprofilerUser::$xml in /var/www/mywebsite.com/components/com_comprofiler/plugin/user/plug_cbqueryfield/admin.cbqueryfield.php on line 84
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/mywebsite.com/components/com_comprofiler/plugin/user/plug_cbqueryfield/admin.cbqueryfield.php:84 Stack trace: #0 /var/www/mywebsite.com/components/com_comprofiler/plugin/user/plug_cbqueryfield/admin.cbqueryfield.php(84): SimpleXMLElement->__construct('') #1 /var/www/mywebsite.com/components/com_comprofiler/plugin/user/plug_cbqueryfield/admin.cbqueryfield.php(44): cbqueryfieldAdmin->showPlugin(Object(moscomprofilerUser), Object(stdClass)) #2 /var/www/mywebsite.com/administrator/components/com_comprofiler/controller/controller.plugin.php(278): cbqueryfieldAdmin->editPluginView(Object(moscomprofilerPlugin), 'com_comprofiler', 'editPlugin', 516, '', Object(CBSimpleXMLElement), 'editPlugin', Object(cbParamsBase)) #3 /var/www/mywebsite.com/administrator/components/com_comprofiler/controller/controller.plugin.php(179): CBController_plugin->editPluginView(Object(moscomprofilerPlugin), 'com_comprofiler', 'ed in /var/www/mywebsite.com/components/com_comprofiler/plugin/user/plug_cbqueryfield/admin.cbqueryfield.php on line 84
Please Log in to join the conversation.
Fixed with 1.0.3, minor issue that won't affect the plugins usage.Here is the error message I get when I click on the CB Query Field plugin:
Please Log in to join the conversation.
Please Log in to join the conversation.