Loading...
 
Features / Usability

Features / Usability


adding fields to register.tpl/php

posts: 3665 United States

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

Email:
Country:
Real Name:
HomePage:
Displayed time zone:

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

Thanks


posts: 2881 United Kingdom

Hi,

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.

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


posts: 3665 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?