Browse Source

new nickname policy

pull/1/head
Mike Macgirvin 11 years ago
parent
commit
a26f4eeff6
  1. 2
      mod/settings.php
  2. 2
      view/profile.php
  3. 7
      view/settings_nick_unset.tpl

2
mod/settings.php

@ -163,6 +163,8 @@ function settings_content(&$a) {
$nickname_block = replace_macros($nickname_block,array(
'$nickname' => $nickname,
'$uid' => $_SESSION['uid'],
'$basepath' => substr($a->get_baseurl(),strpos($a->get_baseurl(),'://') + 3),
'$baseurl' => $a->get_baseurl()));
$o = file_get_contents('view/settings.tpl');

2
view/profile.php

@ -19,7 +19,9 @@
<?php } ?>
<div id="profile-extra-links">
<a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['uid']; ?>">Introductions</a>
</div>
<?php if ( (strlen($profile['address']))

7
view/settings_nick_unset.tpl

@ -1,10 +1,11 @@
<div id="settings-nick-wrapper" >
<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
<strong>$baseurl/profile/nickname</strong>
Once set, it can never be changed. Only letter, numbers, spaces and
underscore are allowed and the nickname must start with a space.
<strong>'nickname@$basepath'</strong>.
<br />
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>
<label id="settings-nick-label" for="settings-nick" >URL Nickname: </label>
<input type="text" name="nick" id="settings-nick" value="$nickname" />

Loading…
Cancel
Save