adding fields to register.tpl/php Posted by Rick Sapir / Tiki for Smarties 28 Nov 2004 15:44 UTC 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
Posted by sylvie greverend 29 Nov 2004 21:15 UTC 1) you can use the user defined fields. http://tikiwiki.org/tiki-index.php?page=UserPreferencesAdmin 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 sylvie
Posted by Damian Parker 29 Nov 2004 22:55 UTC 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 **
Posted by Rick Sapir / Tiki for Smarties 30 Nov 2004 14:08 UTC OK, I guess I can simply copy stuff from tiki-user_information.php right? Thanks, -R
Posted by Rick Sapir / Tiki for Smarties 02 Dec 2004 01:00 UTC 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?