Features / Usability

Features / Usability

adding fields to register.tpl/php

posts: 3660 United States

How can I add the following fields to the register.tpl/php:

Real Name:
Displayed time zone:

Basically, I want users to be able to complete this information when they initially register.


posts: 1092

1) you can use the user defined fields.

2) in 1.9 you can use a tracker too. I have no experience about that. But I know mose uses this functionality. The login page uses the plugin tracker. The registered group uses a tracker (admin -> groups -> edit registered -> tracker) ...

Good luck

posts: 2881 United Kingdom


I would actually modify the template itself, since the fields you want to show are the current tiki preference options.

This would also need some code in the .php side to stuff those fields back into the database.

TikiWiki Development/Hosting/Support Services ** Christmas Offers Now Available **

posts: 3660 United States

OK, I've tried adding the fields to my tiki-register.php and tpl files. I thought I got everything, but now I get this error:

Warning: mysql error: Column 'user' cannot be null in query:
insert into `tiki_user_preferences`(`user`,`prefName`,`value`) values(?, ?, ?)
in /home/virtual/site261/fst/var/www/html/lib/tikidblib.php on line 133

Fatal error: Call to a member function on a non-object in /home/virtual/site261/fst/var/www/html/lib/tikidblib.php on line 151

Can anyone help?