Hi,
I installed AVATAR extension, running with XTMEMBERS.
Members of my website can upload their picture,
but I would like to add the possibility for them to upload their firm logo.
So I tried to create a new avatar field :
I created new field, extending the database in system/modules/avatar/config/database.sql adding a new entry :
Code:
CREATE TABLE `tl_member` (
`avatar` varchar(255) NULL default '',
`avatarjob` varchar(255) NULL default '',
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
then, extending the DCA, and adding a translation :
Code:
$GLOBALS['TL_DCA']['tl_member']['fields']['avatarjob'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_member']['avatarjob'],
'exclude' => true,
'inputType' => 'avatarjob',
'eval' => array('filename'=>'member_%s', 'feEditable'=>true, 'feGroup'=>'helpdesk')
);
And also, added a lines in xtmembers/dca/tl_members.php to display my new field :
Code:
if (array_key_exists("avatarjob", $GLOBALS['TL_DCA']['tl_member']['fields']))
{
$GLOBALS['TL_DCA']['tl_member']['fields']['avatarjob']['eval']['feViewable'] = true;
}
Checkbox field appears well in the BE, but not the upload menu.
I activated checkbox to display/edit it in FE (also clearing the cache, etc) but won't appear in FE...
Thanks for your help
Bookmarks