OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



User default account

Are you a Director, Presenter, Reviewer or Conference Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael

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.

User default account

Postby waluyo » Wed Mar 14, 2012 4:55 pm

I am a new user in OCS, now I am trying to use for a conference.

I would like to set the default of the user account when they register selection as follows:
- Send me a confirmation email including my username and password
- Author: Able to submit items to the conference

currently the default selection
- Send me a confirmation email including my username and password
- Reader: Notified by email on publication of presentations

Regards,
waluyo
waluyo
 
Posts: 64
Joined: Wed Mar 14, 2012 4:46 pm
Location: UTHM - Malaysia

Re: User default account

Postby waluyo » Thu Mar 15, 2012 10:15 pm

When I open the page source in the browser I can see this, controlled by checked="checked"

<input type="checkbox" name="createAsReader" id="createAsReader" value="1" checked="checked" />
<label for="createAsReader">Reader</label>: Notified by email on publication of presentations.<br />
<input type="checkbox" name="createAsAuthor" id="createAsAuthor" value="1" />
<label for="createAsAuthor">Author</label>: Able to submit items to the conference.<br />

Is that possible to change to:

<input type="checkbox" name="createAsReader" id="createAsReader" value="1" />
<label for="createAsReader">Reader</label>: Notified by email on publication of presentations.<br />
<input type="checkbox" name="createAsAuthor" id="createAsAuthor" value="1" checked="checked" />
<label for="createAsAuthor">Author</label>: Able to submit items to the conference.<br />

If yes, how can I find the file to modify? in which folder?
Please someone who knows how to change this default setting.

Thank you,
waluyo
waluyo
 
Posts: 64
Joined: Wed Mar 14, 2012 4:46 pm
Location: UTHM - Malaysia

Re: User default account

Postby waluyo » Sun May 13, 2012 12:31 am

I can get what I want (author option default is checked) by modifying
/templates/user/createAccount.tpl
in line 205
from
Code: Select all
<input type="checkbox" name="createAsAuthor" id="createAsAuthor" value="1"{if $createAsAuthor} checked="checked"{/if} />

to
Code: Select all
<input type="checkbox" name="createAsAuthor" id="createAsAuthor" value="1" checked="checked" />

I tested to create new account, it looks ok.

If the way that I modified here is not good, please let me know.

Regards, waluyo
waluyo
 
Posts: 64
Joined: Wed Mar 14, 2012 4:46 pm
Location: UTHM - Malaysia


Return to OCS Conference Support and Discussion

Who is online

Users browsing this forum: No registered users and 0 guests