new nickname policy
This commit is contained in:
		| @@ -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'); | ||||
|   | ||||
| @@ -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']))  | ||||
|   | ||||
| @@ -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" /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user