From 3a3806bc1d431f97f3de2da9267292fa69cb5fbb Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sat, 30 Aug 2008 15:12:27 +0200 Subject: [PATCH] Account help --- PciIds/Html/Help.pm | 8 ++++--- help/account | 57 +++++++++++++++++++++++++++++++++++++++++++++ help/list | 10 ++++---- static/screen.css | 3 ++- 4 files changed, 69 insertions(+), 9 deletions(-) create mode 100644 help/account diff --git a/PciIds/Html/Help.pm b/PciIds/Html/Help.pm index 803d922..8c65bad 100644 --- a/PciIds/Html/Help.pm +++ b/PciIds/Html/Help.pm @@ -21,10 +21,12 @@ sub getHelp( $$ ) { print "

$head (".$addr->pretty().")

\n"; genMenu( $req, $addr, $args, $auth, undef ); genPath( $req, $addr, 1 ); - my $url = '/read'.$req->uri().buildExcept( 'help', $args ).'?help='; - print "\n" if( $helpname ne 'index' ); + my $url = setAddrPrefix( $req->uri(), 'read' ).buildExcept( 'help', $args ).'?help='; + delete $args->{'help'}; + my %repls = ( 'HELP_URL' => $url, 'AC_URL' => setAddrPrefix( $req->uri(), 'mods' ).buildExcept( 'action', $args ).'?action=' ); + print "\n" if( $helpname ne 'index' ); while( defined( my $line = ) ) { - $line =~ s/\$CUR_LINK\$/$url/g; + $line =~ s/\$(\w+_URL)\$/$repls{$1}/g; print $line; } close HELP; diff --git a/help/account b/help/account new file mode 100644 index 0000000..e3946b0 --- /dev/null +++ b/help/account @@ -0,0 +1,57 @@ +Your account +

+If you want to edit something or just receive notifications about changes, you need an account. +If you want to only view and browse information here, you do not need one. +

+The account contains your email address and password. +If you want, you can provide a login name and xmpp address as well. +

+Email and xmpp addresses will be used to send you notifications about changes (if you request them). +Email address can be used to reset your password, if you forget it. +Neither your email nor your xmpp address will be showed to anybody but you and admins. +

+Login name is used for your convenience during login (you can log in by either email or login name) and +it is showed with discussion submits you wrote. + +

Obtaining an account

+

+It is possible you account has been created already. +It is created if you submit something using email. +And we created accounts for all submits imported from previous version of this site. +In that case, you need to reset your password (because exists no password for you). +

+If you do not have an account, go to Register item in menu (you can find it, when you visit Log in page) and fill your email address. +A message containing confirmation link will be sent to it. +After you follow the link and fill in the rest, your account is ready for use. + +

Reseting password

+

+If your account was created automatically or you forget your password, you need to reset it. +Enter your email address into the reset password page. +A message with confirmation link will be sent to you. +When you follow it, you will be provided with a form where you can change the password. + +

Logging in

+

+When you want to edit some information here or alter your own settings, you need to be logged in. +Fill the form on the log in page. +You can provide either your email address or your login name, they both work. +

+After successful login, you can see a page with your last login (so you can check nobody is misusing your account). +

+You can log out again by log out menu item. +You will be logged out automatically if you do not do anything in a long time (approx. 30 minutes) or close your browser. + +

Actions requiring login

+ + +

Accounts with additional rights

+

+There are accounts with additional rights, like deleting whole items or approving history comments. +If you have one, you probably know it already. +If you think you should have one, contact owners of this site. diff --git a/help/list b/help/list index b09d02c..03acde6 100644 --- a/help/list +++ b/help/list @@ -6,7 +6,7 @@ The IDs are organized into a tree.

Page is divided into parts: