mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
new nickname policy
This commit is contained in:
parent
9cd9ce9c17
commit
a26f4eeff6
3 changed files with 8 additions and 3 deletions
|
@ -163,6 +163,8 @@ function settings_content(&$a) {
|
||||||
|
|
||||||
$nickname_block = replace_macros($nickname_block,array(
|
$nickname_block = replace_macros($nickname_block,array(
|
||||||
'$nickname' => $nickname,
|
'$nickname' => $nickname,
|
||||||
|
'$uid' => $_SESSION['uid'],
|
||||||
|
'$basepath' => substr($a->get_baseurl(),strpos($a->get_baseurl(),'://') + 3),
|
||||||
'$baseurl' => $a->get_baseurl()));
|
'$baseurl' => $a->get_baseurl()));
|
||||||
|
|
||||||
$o = file_get_contents('view/settings.tpl');
|
$o = file_get_contents('view/settings.tpl');
|
||||||
|
|
|
@ -19,7 +19,9 @@
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div id="profile-extra-links">
|
<div id="profile-extra-links">
|
||||||
|
|
||||||
<a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['uid']; ?>">Introductions</a>
|
<a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['uid']; ?>">Introductions</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ( (strlen($profile['address']))
|
<?php if ( (strlen($profile['address']))
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
|
|
||||||
<div id="settings-nick-wrapper" >
|
<div id="settings-nick-wrapper" >
|
||||||
<p id="settings-nickname-desc">
|
<p id="settings-nickname-desc">
|
||||||
|
Your profile URL is currently <strong>'$baseurl/profile/$uid'</strong>.
|
||||||
Setting a nickname will allow a friendly profile URL such as
|
Setting a nickname will allow a friendly profile URL such as
|
||||||
<strong>$baseurl/profile/nickname</strong>
|
<strong>'nickname@$basepath'</strong>.
|
||||||
Once set, it can never be changed. Only letter, numbers, spaces and
|
<br />
|
||||||
underscore are allowed and the nickname must start with a space.
|
Once set, it can never be changed. The nickname <strong>must</strong> start with a letter; and only letters, numbers, dashes, and underscores are allowed.
|
||||||
</p>
|
</p>
|
||||||
<label id="settings-nick-label" for="settings-nick" >URL Nickname: </label>
|
<label id="settings-nick-label" for="settings-nick" >URL Nickname: </label>
|
||||||
<input type="text" name="nick" id="settings-nick" value="$nickname" />
|
<input type="text" name="nick" id="settings-nick" value="$nickname" />
|
||||||
|
|
Loading…
Reference in a new issue