InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Extra Questions on Registration... Expand / Collapse
Author
Message
Posted 15/01/2007 20:36:49
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 17/01/2007 15:27:35
Posts: 2, Visits: 11
How do I modify the registration form to include some extra data collection at the time of registration?

We need to ask a few questions at Registration Time to collect some further demographics of our forum members. 

I had hoped that I would find a GUI means of achieving this code in VB proved this was not going to be too easy.

What is the best way to acheive custom demograhic data collection?

Post #12260
Posted 18/04/2007 03:08:04
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 08/05/2007 08:09:41
Posts: 2, Visits: 10
I'd like to know this too.
Post #12631
Posted 18/04/2007 10:37:16
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 17/11/2008 13:47:50
Posts: 266, Visits: 598
Hi Guys,
In order to make these changes firstly you would require a developer liscence for the forum, so that you can edit the classes required to collect more information from the registration.

The following are some quick pointers on what changes need to be made in order to simply collect extra data:
  • Add the relevant fields and labels to RegistrationForm.ascx, text values can be updated in the Resources.xml found in the Globalisation folder as with other text outputs in InstantForum.

  • All added controls will need to be setup and have the current culture applied as in InstantASP.InstantForum.UI (Controls\RegistrationForm.vb)

  • If you want to store the fields to the InstantForum User Record, youll need to add relevant columns, to the InstantForum_Users table, and update the if_sp_InsertUser stored procedure.

  • 'InstantASP.InstantForum\Components\User.vb' will need properties added to store the values against an instance of a user. The 'Initialize' Method will also need updating to populate those properties when an instance is instantiated and populated from a DataReader, there are existing examples of this within Initialise and should be self explanatory.

  • 'InstantASP.InstantForum\Business\User.vb' needs a small addition to pass the relevant properties to the DataProvider in the AddUser method.

  • Finally InstantASP.InstantForum.Data\DataProvider\DataProvider.vb will need updating, extra parameters will need to be added to the InsertUser method, and subsequently turned into SQL parameters and passed to the stored procedure when called. Relevant examples are again already within this method.

Hopefully these pointers will provide some help, in collecting the data and storing it within your database, however as this is something we are frequently asked about by members of the community, we are now working on a small guide and example code, highlighting how to make additions to the registration form, and how to add those data values into the manage members section of the Admin Control Panel. This should be available in the near future, and should go into more detail than the few hints and tips i've provided here.


Kindest Regards,

James Trott
Developer

Post #12633
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 12:09pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.