Hello All.
First, I want to apologize because I already have this post recorded in the How to session. I will erase from there if it is necessary. I think also that this session is the correct one because until now my problem seems to be more like a real bug.
My question is related to the Admin Config area: how can I get the value of a field related to the record that is being edited in the Admin view? Basically I need to get the information related to the user that created the record so I can do a search on CB and than I will perform some changes in the user's profile. I am writing the code in the OnSave box.
I tried $MyRow but it is not working for me.
The code I have been using is:
<?php
$localdb =& JFactory::getDBO();
$field1 = $row->cf_user_id;
$localquery = "UPDATE `#__comprofiler` SET `cb_pontos` = `cb_pontos`+50 WHERE `user_id` = '".$field1."';";
$localdb->setQuery($localquery);
$localdb->query();
?>
If it helps, the version of my CC is 1.2.
Thanks again!
First, I want to apologize because I already have this post recorded in the How to session. I will erase from there if it is necessary. I think also that this session is the correct one because until now my problem seems to be more like a real bug.
My question is related to the Admin Config area: how can I get the value of a field related to the record that is being edited in the Admin view? Basically I need to get the information related to the user that created the record so I can do a search on CB and than I will perform some changes in the user's profile. I am writing the code in the OnSave box.
I tried $MyRow but it is not working for me.
The code I have been using is:
<?php
$localdb =& JFactory::getDBO();
$field1 = $row->cf_user_id;
$localquery = "UPDATE `#__comprofiler` SET `cb_pontos` = `cb_pontos`+50 WHERE `user_id` = '".$field1."';";
$localdb->setQuery($localquery);
$localdb->query();
?>
If it helps, the version of my CC is 1.2.
Thanks again!