On the user registration, OJS not automatically in the default theme allows new users enrolled as new author roles.
Although this can be done by the user itself when they edit their profile by selecting the author, alot of our clients need the registration form to allow the user to register as author without needing their action to set up their own role.
In this tutorial we will explain two methods where new users can assign their roles to the author roles. First one is manual by the user to assign to the author and second one is automatically assigned author roles to every user registration.
After the user registers on your OJS, by default the system will make the user role only as a reader, in this article, we will share tips so that each user who registers has 2 options, namely author and reader.
First – Manual method
Make sure you enable self registration on the roles
- Login as Journal Manager on your Journal
- Access this menu : user – profile – pick user- roles
then add a check in the author box
Method two – Automatic
Precaution: this process needs code modification of the OJS code.
You better save your current OJS installation before continuing these steps.
Edit RegistrationForm.inc.php
This file located on :
your_ojs_installation/lib/pkp/classes/user/form
Find and open RegistrationForm.inc.php file.
Find a function named as RegistrationForm on that file.
On the line 277 Change ROLE_ID_READER to ROLE_ID_AUTHOR :
Save the changes
Then you can try to test new user registration to your journal or OJS system.