an attempt to fix the new_channel validation situation

This commit is contained in:
Mario Vavti
2018-05-18 21:30:07 +02:00
parent 5a6141faa2
commit 7f7e049397
3 changed files with 80 additions and 32 deletions

View File

@@ -137,16 +137,19 @@ class New_channel extends \Zotlabs\Web\Controller {
}
}
$name_help = (($default_role)
$name_help = '<span id="name_help_loading" style="display:none">' . t('Loading') . '</span><span id="name_help_text">';
$name_help .= (($default_role)
? t('Your real name is recommended.')
: t('Examples: "Bob Jameson", "Lisa and her Horses", "Soccer", "Aviation Group"')
);
$nick_help = t('This will be used to create a unique network address (like an email address).');
);
$name_help .= '</span>';
$nick_help = '<span id="nick_help_loading" style="display:none">' . t('Loading') . '</span><span id="nick_help_text">';
$nick_help .= t('This will be used to create a unique network address (like an email address).');
if(! get_config('system','unicode_usernames')) {
$nick_help .= ' ' . t('Allowed characters are a-z 0-9, - and _');
}
$nick_help .= '<span>';
$privacy_role = ((x($_REQUEST,'permissions_role')) ? $_REQUEST['permissions_role'] : "" );