Quote by: DirkOpen your lib-custom.php, search for "Sample Custom Member Functions", start reading ...
bye, Dirk
i did this on one website ...
following the instructions in lib-custom.php
(btw - i found no instructions on new fields in (users) table - so we added some fields)
but we got stuck at
Text Formatted Code
/* Called from users.php - when user is displaying a member profile.
* This function can now return any extra fields that need to be shown.
* Output is then replaced in {customfields} -- This variable needs to be added
* to your templates
* Template: path_layout/users/profile/profile.thtml
*/
function CUSTOM_userDisplay($uid)
{
global $_CONF, $_TABLES;
$retval = '';
$var = "Value from custom table";
$retval .= '<tr>
<td align="right"><b>Custom Fields:</b></td>
<td>' . $var .'</td>
</tr>';
return $retval;
}
this path is not valid in any case
Template:
path_layout/users/profile/profile.thtml
profile dir does not exist so i used
path_layout/users/profile.thtml
but ... the thing does not retrieve the data from table
it is written in table, couse i checked in phpmyadmin
so ... how do i get
Value from custom table
?