From a26f4eeff6edcb49ad2e7607512853ddd24374cc Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 8 Jul 2010 20:25:05 -0700 Subject: [PATCH] new nickname policy --- mod/settings.php | 2 ++ view/profile.php | 2 ++ view/settings_nick_unset.tpl | 7 ++++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index 861be7946c..1abb60fccb 100644 --- a/mod/settings.php +++ b/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'); diff --git a/view/profile.php b/view/profile.php index 54087404ad..808e2dbaab 100644 --- a/view/profile.php +++ b/view/profile.php @@ -19,7 +19,9 @@

+Your profile URL is currently '$baseurl/profile/$uid'. Setting a nickname will allow a friendly profile URL such as -$baseurl/profile/nickname -Once set, it can never be changed. Only letter, numbers, spaces and -underscore are allowed and the nickname must start with a space. +'nickname@$basepath'. +
+Once set, it can never be changed. The nickname must start with a letter; and only letters, numbers, dashes, and underscores are allowed.