Adding Custom User Profile Code Help - Joomla! Forum - community, help and support
hi people
i have been trying figure out doing wrong here. followed tutorial @ http://www.inmotionhosting.com/support/ ... parameters create own custom user profile. checked followed steps , did things accuratly still coming error below clues
parse error: syntax error, unexpected t_constant_encapsed_string, expecting ')' in c:\xampp\htdocs\sbscotland\plugins\user\profilesbs\profilesbs.php on line 176
below extract file line 176 being bold , underlined:
// check manipulating valid form.
$name = $form->getname();
if (!in_array($name, array('com_admin.profile', 'com_users.user', 'com_users.profile', 'com_users.registration')))
{
return true;
}
// add registration fields form.
jform::addformpath(dirname(__file__) . '/profiles');
$form->loadfile('profile', false);
$fields = array(
'companyname'
'tradingname'
'vat'
'companynumber'
'address1',
'address2',
'city',
'region',
'country',
'postal_code',
'phone',
'website',
'favoritebook',
'aboutme',
'dob',
);
i have been trying figure out doing wrong here. followed tutorial @ http://www.inmotionhosting.com/support/ ... parameters create own custom user profile. checked followed steps , did things accuratly still coming error below clues
parse error: syntax error, unexpected t_constant_encapsed_string, expecting ')' in c:\xampp\htdocs\sbscotland\plugins\user\profilesbs\profilesbs.php on line 176
below extract file line 176 being bold , underlined:
// check manipulating valid form.
$name = $form->getname();
if (!in_array($name, array('com_admin.profile', 'com_users.user', 'com_users.profile', 'com_users.registration')))
{
return true;
}
// add registration fields form.
jform::addformpath(dirname(__file__) . '/profiles');
$form->loadfile('profile', false);
$fields = array(
'companyname'
'tradingname'
'vat'
'companynumber'
'address1',
'address2',
'city',
'region',
'country',
'postal_code',
'phone',
'website',
'favoritebook',
'aboutme',
'dob',
);
you're missing commas between first 5 array values.
Comments
Post a Comment