Hi Bob..
Am back with the same problem. Again, if I add the code you are suggesting
$user =& JFactory::getUser();
$_POST['title'] = JRequest::getString('site_title', 'Progress Tracker for ', 'post');
$_POST['title'] .= $user->name;
I am getting an error message - two in fact - maybe they make sense to you -
Parse error: syntax error, unexpected '<' in /home/mysite/public_html/peakFit/components/com_chronocontact/libraries/customcode.php(64) : eval()'d code on line 8
and then after the dialogue "Next.... " (on the SUCCESS page) am getting...
Warning: implode() [function.implode]: Invalid arguments passed in /home/mysite/public_html/peakFit/libraries/joomla/database/database/mysql.php on line 540
>> If I leave this out, the form (both parts 1 & 2) functions perfectly; though the document/article title remains without the vital USER NAME.
At the moment the final code generating the article details is as follows:
... </table>
";
?>
<?php
$_POST['sectionid'] = '3';
$_POST['catid'] = '12';
$_POST['id'] = '';
$_POST['state'] = '1';
$_POST['created'] = date("Y-m-d H:i:s");
$user =& JFactory::getUser();
$_POST['title'] = JRequest::getString('site_title', 'Progress Tracker for ', 'post');
$_POST['title'] .= $user->name;
$user =& JFactory::getUser(); if ( $user->id ) {
$_POST['created_by'] = $user->id;
} $_POST['created_by_alias'] =
JRequest::getString('name', 'Me', 'post');
?>
Any pointers would be greatly appreciated.
If you go here... you can see what I am trying to do... but need the NAMES to identify each new 'member'
http://www.artatwork.com.au/peakFit/index.php?option=com_content&view=category&id=12&Itemid=20Thanks in advance, Simon