2012-01-23, 03:03 PM
Hi folks,
I'm using a plugin called Email about new members to (you guessed it) alert an administrator whenever a new user registers. I've setup a custom profile field that users must complete in order to use the forum that is a multiple-choice check box.
How can I call the value of this field to use in my email alert to the administrator?
The plugin works like this:
I guessed the code to call fid4 but it doesn't return anything.
Any help would be greatly appreciated!
I'm using a plugin called Email about new members to (you guessed it) alert an administrator whenever a new user registers. I've setup a custom profile field that users must complete in order to use the forum that is a multiple-choice check box.
How can I call the value of this field to use in my email alert to the administrator?
The plugin works like this:
$query = $db->simple_select("users", "username, email, regip", "uid=".intval($user_info['uid'])."");
$emaildata = $db->fetch_array($query);
my_mail(
$mybb->settings['emailonreg_email'],
"New registration at \"".$mybb->settings['bbname']."\"",
"A new member has registered at \"".$mybb->settings['bbname']."\".\n
\n
Information:\n
User-ID: ".$user_info['uid']."\n
Username: ".$emaildata['username']."\n
Email address: ".$emaildata['email']."\n
Supported Products: ".$user_info['fid4']
);
I guessed the code to call fid4 but it doesn't return anything.
Any help would be greatly appreciated!