]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
instructions
authorEvan Prodromou <evan@prodromou.name>
Wed, 11 Jun 2008 16:33:08 +0000 (12:33 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 11 Jun 2008 16:33:08 +0000 (12:33 -0400)
darcs-hash:20080611163308-84dde-c918f04fe6bba3dd382b822ef59cb70a57bb9504.gz

actions/avatar.php
actions/login.php
actions/password.php
actions/profilesettings.php
actions/register.php
doc/TODO

index ffd003f749c4ba0cf4c592a0ec82ca2f1c0eb584..720a02f6e65e84056a76606b573f1d58fabd96a3 100644 (file)
@@ -26,7 +26,15 @@ class AvatarAction extends SettingsAction {
        function show_form($msg=NULL, $success=false) {
                common_show_header(_t('Avatar'));
                $this->settings_menu();
-               $this->message($msg, $success);
+               if ($msg) {
+                       $this->message($msg, $success);
+               } else {
+                       common_element('div', 'instructions', 
+                                                  _t('You can upload a new "avatar" (user picture) here. ' .
+                                                         'You can\'t edit the picture after you upload it, so you should ' .
+                                                         'edit it in your desktop image-manipulation software first. ' .
+                                                         'Everything works best if your picture is more or less square. '));
+               }
 
                $user = common_current_user();
                $profile = $user->getProfile();
index 3a93c466facd4ffe6b5707d01033cd4c81f2b6fc..1a69bd9c402442035ce58d09312670d53ce2501c 100644 (file)
@@ -63,6 +63,11 @@ class LoginAction extends Action {
                common_show_header(_t('Login'));
                if ($error) {
                        common_element('div', array('class' => 'error'), $error);
+               } else {
+                       common_element('div', 'instructions', 
+                                                  _t('Login with your username and password. ' .
+                                                         'Don\'t have a username yet? Choose register above. ' .
+                                                         '(Forgot your password? No way to get it back... yet. It\'s on the TODO list!)'));
                }
                common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'login',
index 8f770a969d57c75ff4220724dd63e6dfaa4c49c6..fe19f5f71dfdec0ec58383f4d74ffbda32d81e1f 100644 (file)
@@ -26,7 +26,12 @@ class PasswordAction extends SettingsAction {
        function show_form($msg=NULL, $success=false) {
                common_show_header(_t('Change password'));
                $this->settings_menu();
-               $this->message($msg, $success);
+               if ($msg) {
+                       $this->message($msg, $success);
+               } else {
+                       common_element('div', 'instructions', 
+                                                  _t('You can change your password here. Choose a good one!'));
+               }
                common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'password',
                                                                                   'action' =>
index c4c3ae0fc4410b1c856d642208744fd1d05d2c00..e94d846bdfa2dbae175551d81d68c9910643e827 100644 (file)
@@ -28,7 +28,14 @@ class ProfilesettingsAction extends SettingsAction {
                $profile = $user->getProfile();
                common_show_header(_t('Profile settings'));
                $this->settings_menu();
-               $this->message($msg, $success);
+               if ($msg) {
+                       $this->message($msg, $success);
+               } else {
+                       common_element('div', 'instructions', 
+                                                  _t('You can update your personal profile info here so people know more about you. ' .
+                                                         'Nickname must be 1-64 lowercase letters or numbers -- no punctuation or spaces. ' .
+                                                         'Full name, bio, and location can be whatever you want. Email address should be valid.'));
+               }
                common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'profilesettings',
                                                                                   'action' =>
index d41eb9490eb6c79361649c6e5297661d245cf477..e192d52965de59c67add6239785e49b68b698eef 100644 (file)
@@ -121,6 +121,11 @@ class RegisterAction extends Action {
                common_show_header(_t('Register'));
                if ($error) {
                        common_element('div', 'error', $error);
+               } else {
+                       common_element('div', 'instructions', 
+                                                  _t('You can create a new account with the following form. ' .
+                                                         'Your user name must be 1-64 characters, only lowercase letters or numbers. ' .
+                                                         'Passwords have to match, and your email address should be valid.'));
                }
                common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'login',
index 426b598ff2fb0c7eeda5d01b4d621c1f38512e91..b133b3bfa7a371d569c7c8410501f1109f2774d7 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
 + FOAF document for user
 + license in RSS feeds
 + TOS checkbox on register
-- registration instructions
-- login instructions
-- profile settings instructions
-- avatar instructions
-- password change instructions
++ registration instructions
++ login instructions
++ profile settings instructions
++ avatar instructions
++ password change instructions
 + fix spacing on notices
 + fix spacing in profile
 - limit entry in textarea to 140 chars