Loading...
 
Development

Development


Custom registration fields

posts: 1

I'm interested in using TikiWiki for a project, but I need to know whether I can create mandatory custom fields on the TikiWiki user registration page. I don't need TikiWiki to actually do anything with this information except make it visible to the administrator (and possibly other users).

Thanks.


posts: 3

I want to create a group based on user registration. So I have modified tiki-registration to include a new field (don't want to use tracker, b'cos of some issues), then modified the tiki-register.php.

Below are the changes I did
1) tiki-register.tpl (added a new field before password field...1.10.beta1)

{tr}Group{/tr}: add_group($_REQUEST%22group%22,$_REQUEST%22group%22,$_REQUEST%22group%22,,,,,,);

When i tested this, getting an error saying I am trying to insert NULL values into group name where I am passing the group name from user inputed field on registration page.

Do I need to do any more changes to be able pass value of 'group' from registration page ?


posts: 3

Reporting as code I entered was removed.

Image
Copy to clipboard
text


1) tiki-register.tpl
{tr}group{/tr}: add_group($_REQUEST%22group%22,$_REQUEST%22group%22,$_REQUEST%22group%22,,,,,,);

When i tested this, getting an error saying I am trying to insert NULL values into group name where I am passing the group name from user inputed field on registration page.

Do I need to do any more changes to be able pass value of 'group' from registration page ?