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?


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting