Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I don't know what's better, but either way it should be implemented in a way that provides the same result as if you were using the CB API. I see this code was used to insert the activities:
$title=addslashes($act->title);
$db= &JFactory::getDBO();
$sql="INSERT INTO #__comprofiler_plugin_activity (`user_id`, user, `type`, `subtype`, `item`, `from`, `to`, `title`, `icon`,`date`) VALUES ('{$actor}','{$target}','jreviews','{$subtype}',NULL,NULL,NULL,'{$title}','pencil',now())";
$db->setQuery($sql);
$db->query();
I don't know if there's a 'content' column in the CB activities table and it wasn't included if the 'item' column represents the content of the activity. Maybe it was easier to do this than figure out how to run the CB API triggers, but again whichever way is used if the CB API has an option to post the content separately then that's how it should be done if you also want this result.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.