OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



User registration [RESOLVED]

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

Forum rules
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 subforum.

User registration [RESOLVED]

Postby svillanueva » Wed Feb 27, 2008 5:11 am

Hello,

we would like to change a bit the registration page to check by default both checkbox, the "as a reader" one and "as an author" one (instead of only "as a reader"). I've take a look at the register.tpl and there are variables called $registerAsReviewer, $registerAsReader, $registerAsAuthor that determines whether the checkbox has to be checked by default or not. I've been searching but I can't find where those variables are initialized or where they change their value...




Thanks!

Sergi Villanueva.
svillanueva
 
Posts: 74
Joined: Fri Jan 18, 2008 4:20 am
Location: Barcelona

Re: User registration

Postby asmecher » Thu Feb 28, 2008 11:42 am

Hi Sergi,

You can initialize these variables in classes/user/form/RegistrationForm.inc.php. For example, there is a line of code in the initData function that initializes the Reader checkbox so that it's checked by default:
Code: Select all
$this->setData('registerAsReader', 1);
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9049
Joined: Wed Aug 10, 2005 12:56 pm

Re: User registration

Postby svillanueva » Fri Feb 29, 2008 2:09 am

Ok, thank you Alec!

Sergi Villanueva.
svillanueva
 
Posts: 74
Joined: Fri Jan 18, 2008 4:20 am
Location: Barcelona


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 7 guests