can not add a field with the description in the account type
for example - about company
I can not add this field to company account type, because we can't see it there
can not add a field with the description in the account type
for example - about company
I can not add this field to company account type, because we can't see it there
Hello Vitalii,
After added new field you should build account types where you want to see this field. The same as categories building fields.
Viktor,
Flynax technical department,
Best wishes.
Yes i know this! BUT
this field is not visible there
For example in your demo:
In account type Buyer or Company no field About me
Hello Vitalii,
You need open file /admin/controllers/account_types.inc.php and check row ~874
It must have following code and change it if your file have another changes.
Thank you, Curtis.
@Flynax Company
look like i dont have it
Hi Vitali,
OK. I see that you see in another place (it's related with copyright text in top). In your screen you can see the code foreach ($relations as $rKey =>$rValue) ...
You need to scroll page after it and check necessesary code after this foreach, check my previous post.
Thank you, Curtis.
@Flynax Company
i have this:
/* get form fields for current type */
$relations = $rlBuilder -> getFormRelations( $type_info['ID'], 'account_fields' );
$rlSmarty -> assign_by_ref( 'relations', $relations );
foreach ( $relations as $rKey => $rValue )
{
$no_groups[] = $relations[$rKey]['Key'];
$f_fields = $relations[$rKey]['Fields'];
if ( $relations[$rKey]['Group_ID'] )
{
foreach ( $f_fields as $fKey => $fValue )
{
$no_fields[] = $f_fields[$fKey]['Key'];
}
}
else
{
$no_fields[] = $relations[$rKey]['Fields']['Key'];
}
}
$exclude_types = "WHERE `Status` <> 'trash' AND `Type` NOT IN ('textarea', 'file', 'image', 'accept') ";
$fields = $rlDb->fetch(array('ID', 'Key', 'Type', 'Status'), null, $exclude_types, null, 'account_fields');
$fields = $rlLang->replaceLangKeys($fields, 'account_fields', array('name'), RL_LANG_CODE, 'admin');
// hide already using fields
if ( !empty( $no_fields ) )
{
foreach ($fields as $fKey => $fVal)
{
if ( false !== array_search( $fields[$fKey]['Key'], $no_fields ) )
{
$fields[$fKey]['hidden'] = true;
}
}
}
$rlSmarty -> assign_by_ref( 'fields', $fields );
}
}
$rlHook -> load('apPhpAccountTypesBottom');
}
Hello Vitalii,
OK, please create a ticket with your problem and our staff will check it.
Thank you, Curtis.
@Flynax Company