0
Hi.
I need to insert a column that pulls data from JomSocial on this site.
This data is not collected by the component or plugin, but it is there, on the users table.
I copied the files to the template directory, and I was able to split name and ID in separate columns.
Now I need a new column that pulls a specific field from JomSocial, and that field is static, related to the user.
According to their API, the syntax to display the data I need is:
$cuser = CFactory::getUser();
$data = $cuser->getInfo('FIELD_COMPANY');
echo $data;
I tried to use that, but got an error, which possibly means that CS is not able to access the user tables for some reason (probably related to CS).
Thank you for the help.
I need to insert a column that pulls data from JomSocial on this site.
This data is not collected by the component or plugin, but it is there, on the users table.
I copied the files to the template directory, and I was able to split name and ID in separate columns.
Now I need a new column that pulls a specific field from JomSocial, and that field is static, related to the user.
According to their API, the syntax to display the data I need is:
$cuser = CFactory::getUser();
$data = $cuser->getInfo('FIELD_COMPANY');
echo $data;
I tried to use that, but got an error, which possibly means that CS is not able to access the user tables for some reason (probably related to CS).
Thank you for the help.
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »