Hello I’m trying to get the id of the author of a displayed content of k2 to use with a form made with chronoform connected to a database,
-
The id is stored in the database #_k2_items colum created_by
In the case of irticles written with joomla default editor, the code to get such info is something like:
$article =& JTable::getInstance('content'); $article->load(JRequest::getInt('id'));
$author = $article->created_by;
echo $author;
How can have the same for k2 content author?
Someone can help me?
Thanks
-
The id is stored in the database #_k2_items colum created_by
In the case of irticles written with joomla default editor, the code to get such info is something like:
$article =& JTable::getInstance('content'); $article->load(JRequest::getInt('id'));
$author = $article->created_by;
echo $author;
How can have the same for k2 content author?
Someone can help me?
Thanks