Loading...
 
Features / Usability

Features / Usability


where is the class?

posts: 39

I found this in tiki-registration.php//

$userlib->add_user($_REQUEST%22name%22,$_REQUEST%22pass%22,$_REQUEST%22email%22,'',$_REQUEST%22useraddr%22,$_REQUEST%22phoneno%22);

where can i found the class for this method?

its in tikilib.php. its

function add_user($user, $pass, $email, $useraddr, $phoneno) {
global $wikiHomePage;

if (user_exists($user))
return false;


$query = "insert into `users_users`(`login`,`password`,`email`,`useradd`,`phoneno`)
values(?, ?, ?, ?, ?)";
$result = $this->query($query, array($user,$pass,$email,$useraddr,$phoneno) );
$action = "user $user added";
$t = date("U");
$query = "insert into `tiki_actionlog`(`action`,`pageName`,`lastModif`,`user`,`ip`,`comment`) values(?,?,?,?,?,?)";
$result = $this->query($query,array($action,$wikiHomePage,(int) $t,'admin',$_SERVER%22REMOTE_ADDR%22,''));
return true;
}


but this is not working properly why..?

thanks in advance,
sharma

posts: 2881 United Kingdom

Hi

In terms of tiki programming adding fields like that is bad. Much better to store it like the users real name in User Preferences.

anyway, in your adduser you have some exta '' wink

arrow Have you checked out the user trackers for storing extra information available in Tiki 1.9 ?

Damian


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