How to register new users as authors automatically on OJS ? » Open Journal Theme

How to register new users as authors automatically on OJS ?

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

  1. Login as Journal Manager on your  Journal
  2. 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.

Leave a Comment

Your email address will not be published. Required fields are marked *

Open Journal Theme

Professional Publishing system services OJS, OMP, Dspace, Eprints

Need More Services  or Question?

Openjournaltheme.com started in 2016 by a passionate team that focused to provide affordable OJS, OMP,  OPS,  Dspace, Eprints products and services. Our mission to help publishers to be more focus on their content research rather than tackled by many technical OJS issues.

Under the legal company name :
Inovasi Informatik Sinergi Inc.

Secure Payment :

All the clients financial account data is stored in the respective third-party site (such as Paypal, Wise and Direct Payment).
Your financial account is guaranteed protected. We never keep any of the clients’ financial data.
https://openjournaltheme.com/how-to-register-new-users-as-authors-automatically-on-ojs
openjournaltheme.com
crawl=CC-MAIN-2021-43
167982
application/http; msgtype=response
sha1:XBLINKJJ7IDS3I5CY5BKWIVCX77YR32P
<urn:uuid:dcf387a0-0072-49a9-bae7-59842323ea54>
2021-10-23T08:55:18Z
94.237.72.210
text/html
sha1:5PK35JYEFSQMFAUI5ZT35HQKGR4R75DY
<urn:uuid:5418e7fd-a7f7-407e-af90-0f76977a20d7>
https://openjournaltheme.com/how-to-register-new-users-as-authors-automatically-on-ojs
response
<urn:uuid:5990715a-4e5d-477c-9452-994583bb2bb5>
isPartOf: CC-MAIN-2021-43
publisher: Common Crawl
description: Wide crawl of the web for October 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-180
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/