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.
Responses (1)
  • Accepted Answer

    Friday, February 14 2014, 06:15 PM - #Permalink
    0
    it has nothing to do with CS.
    first thing that comes to mind is: you probably need to load some file first, before calling CFactory.
    additionally, for what you describe, the getUser() method will need probably an argument, say the user ID.. otherwise, whose user will it be pulling the info from?
    The reply is currently minimized Show
Your Reply