You are viewing the PKP Support Forum | PKP Home Wiki

problem with register user

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

problem with register user

Postby cffneto » Mon Aug 25, 2008 11:35 am

i disable the option that user can register as reader, but the option author dont be checked. i see the file ojs/template/user/register.tpl and there checkbox must be checked, but dont be. what i have to do?

Posts: 37
Joined: Wed Jul 04, 2007 9:22 pm

Re: problem with register user

Postby jmacgreg » Mon Aug 25, 2008 4:23 pm

Hi cffneto,

I'm not entirely sure what you want to accomplish: do you want the Author checkbox to be checked by default? I believe that the piece of code you are referring to (<input type="checkbox" name="registerAsReviewer" id="registerAsReviewer" value="1"{if $registerAsReviewer} checked="checked"{/if} />) will only check the box if the user is actively trying to register *as an author* -- that is, from a page that is only available to authors, ie. a submission page. If you want the checkbox to be checked by default, try removing the Smarty if statement. You'll have to keep track of that change, of course.

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: problem with register user

Postby mbauerCOM » Thu Nov 13, 2014 3:23 pm

I would like to make the Author option checked by default when a new user registers. How do I go about doing that? Using OJS

I don't understand what "remove the Smarty if" statement means.

Thank you so much!
Posts: 40
Joined: Mon Sep 08, 2014 7:53 am

Re: problem with register user

Postby asmecher » Thu Nov 13, 2014 4:33 pm

Hi mbauerCOM,

Have a look at the Smarty documentation for "if" statements: http://www.smarty.net/docsv2/en/languag ... ion.if.tpl

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest