Quote:
Originally Posted by rootnik
Anyway to add custom profile fields to the buddies_listbit template?
|
Add this below
Code:
// ===========================================================================================
// Additional information from database (Edit by: Lucas)
// ===========================================================================================
PHP Code:
$custom = $db->query_first("
SELECT *
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $inuser[userid] . "
");
And then place $custom['fieldX'] in the buddies_listbit template where you want the custom field to display (replace the X with the field number)
There is probably a better way to do this, this is just the solution I came up with myself.