2015-11-18 09:10:33
2015-11-17 22:40:35
2015-11-17 22:39:48
5166
Creating Accounts from within another Account
@Friendica Developers@Friendica Support@UX Watchdogs
Since my work on the rework of the contact page I began to think about stuff related to community forums and private groups.
One of the things which came to my mind was the idea of making the creation of forums easier.
You can have a look at my actual afford on https://github.com/rabuzarus/friendica/tree/1311_new_account
To explain it in a short way:
As always I'm asking for input
But there are some other points where I need some input/help
Since my work on the rework of the contact page I began to think about stuff related to community forums and private groups.
One of the things which came to my mind was the idea of making the creation of forums easier.
You can have a look at my actual afford on https://github.com/rabuzarus/friendica/tree/1311_new_account
To explain it in a short way:
- The "Manage" option is set to ON except
block_extended_register
is set to true (This mean the manage link would appear even if there is only on manageable identity) - At the Manage page is a new link "Create Identity"
- The page to create a new "identity" is similar to the register page. But instead of the fields for email & password the user can select the type of the new identity (Normal Account, Soap Box, Community Forum and so on)
- After submission of the required data it creates a new user with the same email and the same password of the already existent user (both user need to have the same email address and the same password to make it possible that one user can easily switch to the other)
- At the end of this process the user gets directed to the new identity automatically
As always I'm asking for input
- bugs
- security risks
- bad coding style
- naming of variables (are they understandable and logical?)
- things I missed
But there are some other points where I need some input/help
- I'm not satisfied with my the description text
- I'm not really satisfied how the new_account page is looking
- I think for newcomers it is very hard to understand the different terms "Identity", "Page", "User" and "Account". I haven't fully looked at it but I guess there are different terms for this at different places. Maybe we should think about this
- What is the translation of mid? (gid = global-id, cid = contact-id, mid = ? )
Michael Vogel
Michael Vogel
Michael Vogel
Rabuzarus
Files that I have changed:
- /mod/new_account.php (new file) - function new_account_post() and function new_account_content()
- /view/templates/new_account.tpl (new file)
- /include/identity - new function identity_switch () (code is from /mod/manage.php)
- /include/user.php - new function get_pagetypes() (Array of page-flags similar to get_features() ) + changing function create_user () (password check + sql create user respects page-flags)
- /mod/settings - delete some
... mehr anzeigenFiles that I have changed: