Loading...
 
Skip to main content

Features / Usability


adding fields to register.tpl/php

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


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 ServicesQuestion ** Christmas Offers Now Available **


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?