aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/settings.php2
-rw-r--r--view/profile.php2
-rw-r--r--view/settings_nick_unset.tpl7
3 files changed, 8 insertions, 3 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 861be7946..1abb60fcc 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 54087404a..808e2dbaa 100644
--- a/view/profile.php
+++ b/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']))
diff --git a/view/settings_nick_unset.tpl b/view/settings_nick_unset.tpl
index 0ea99d68b..903768b59 100644
--- a/view/settings_nick_unset.tpl
+++ b/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" />