OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Adding a field in registration

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

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. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

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 OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Adding a field in registration

Postby dinesh » Tue Jul 03, 2007 1:33 pm

Hi,

I tried adding a new field "Payment details" in registration form, in line with the "Special requests" item. i created variable names paymentDetails, similar to specialRequests. The files i tried are:

1.templates/registration/userRegistrationForm.tpl,
2.classes/Registration/Registration.inc.php
3.classes/registration/forms/UserRegistrationForm.inc.php
4.classes/registration/form/RegistrationForm.inc.php
5.classes/registration/registrationDAO.inc.php

But when tried, some DB error came, which said SQL syntax is wrong. Am I becoming too much adventurous? I have taken back up of all files and has rolled back. But, would like to know any decent method available? I donot know MySQL or php.

-thanks and regards,

Dinesh
dinesh
 
Posts: 23
Joined: Tue Jun 05, 2007 12:02 pm
Location: Bangalore

Postby asmecher » Tue Jul 03, 2007 1:43 pm

Hi Dinesh,

The error is almost certainly a mistake in the changes to the RegistrationDAO. Double-check your modifications there and also ensure that the new field has been added to your database, not just the OJS code. Some knowledge of SQL is necessary for this kind of change -- but it should be a fairly quick change if you can get help from somebody on hand.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8347
Joined: Wed Aug 10, 2005 12:56 pm

Postby dinesh » Wed Jul 04, 2007 10:14 am

Hi Alec,

Thanks very much for the prompt help. I did that with the help of a MySQL expert.

It is now working.

regards,

Dinesh
dinesh
 
Posts: 23
Joined: Tue Jun 05, 2007 12:02 pm
Location: Bangalore


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests