Author: Karsten Hachmeister
If you follow this tutorial you will be able to add a login to your Typo3 site and show some content only to users which are logged in.
Check your installation if the file 'fe_admin_fe_users.tmpl' exists in the directory 'media/scripts'. If not copy it from 'typo3/ext/feuser_admin/pi/' to that directory.
Also ensure that you have enabled the 'Front End User Admin' extension in the extension manager.
Create one page for the login form (Login) and another for the user create form (Create Login). You need also a SysFolder for the users and usergroups (Frontend User).
In the SysFolder 'Frontend User' create a new 'Website usergroup' entry and give it a name. Pay attention to the number of the group. To create a 'Website usergroup' click at the symbol from the SysFolder 'Frontend User' choose 'New' and then select 'Website usergroup'.
Create a new template in the page 'Login' and insert in the Constants field the following TypoScript code:
plugin.feadmin.fe_users {
file.templateFile = media/scripts/fe_admin_fe_users.tmpl
email = name@domain.com
emailName = Your Name
pid = frontend_number
usergroupOverride = group_number
}
Exchange 'name@domain.com' with your email address and 'Your Name' with your name. If an user creates a new account you get an email. Further exchange 'frontend_number' with the pid of the page 'Frontend User', so all user will be created in that page. At last exchange 'group_number' with the number of the 'Website usergroup' you created above.
Additionally put the following line in the Constants field:
styles.content.loginform.pid = frontend_number
Exchange 'frontend_number' with the pid of the page 'Frontend User' here, too.
In the page 'Login' create a content-element 'login', like this one:
And in the page 'Create Login' create a content-element 'insert plugin' like this:
Now you are ready and you can use the 'Access' field in the Pageheader and in the Pagecontent. Choose there your 'Website usergroup' and only users which are logged in as this usergroup can see that content.
If you have further questions to this tutorial, please ask them in the forum.
For a working example look here.