Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.
Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher
What to do if you have a technical problem with OJS:
1. Search the forum
. You can do this from the Advanced Search Page
or from our Google Custom Search
, which will search the entire PKP site. If you are encountering an error, we especially recommend
searching the forum for said error.
2. Check the FAQ
to see if your question or error has already been resolved.
3. Post a question
, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion
subforum; if you have a development question, try the OJS Development
Is it possible to customize the user registration template by adding an additional field? We would like to add an additional field below Affiliation for Department as well as add some additional instructions. If this is possible, can you tell me where the template is located?
- Posts: 4
- Joined: Thu Jan 16, 2014 2:01 pm
The templates for user registration are located in templates/user/register.tpl. Adding a field requires more than just adding the field to the template, though. You'll need to modify the PHP form class in classes/user/form/RegistrationForm.inc.php and add the necessary bits and pieces to readInputData() and possibly any form validation checks if you want the field to be required or not. Finally, you'll need to add some get() and set() methods to the classes/user/User.inc.php and UserDAO classes to make those fields accessible if you want to use that data in other places.
Give it a try and see how far you get.
- Site Admin
- Posts: 790
- Joined: Tue Jan 10, 2006 6:20 am
Return to OJS Technical Support
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests