2005-02-21, 02:25 AM
Pages: 1 2
2005-02-22, 12:26 AM
I believe I've now found the cause of this error.
The installation instructions have been updated, but if you've already installed the mod, here's the fix.
Open member.php and find this block of code:
Replace it with this block instead:
Although there was only a fault with one line of code, I rewrote most of it to save an extra query to the database which wasn't needed.
Thanks for bringing this to my attention, and please do post back if you have any further problems.
The installation instructions have been updated, but if you've already installed the mod, here's the fix.
Open member.php and find this block of code:
// Get admin notes
if($mybbuser['gid'] == 4)
{
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='$uid'");
while($user = $db->fetch_array($query))
{
$notes = stripslashes($user['notes']);
if($notes == "")
{
$notes = "No admin notes on this user.";
}
eval("\\$adminnotes = \\"".$templates->get("member_profile_notes")."\\";");
}
}
// End admin notes
Replace it with this block instead:
// Get admin notes
if($mybb['usergroup'] == 4)
{
if(!empty($memprofile['notes']))
{
$notes = stripslashes($memprofile['notes']);
}
else
{
$notes = 'There are currently no admin notes on this user.';
}
eval("\\$adminnotes = \\"".$templates->get("member_profile_notes")."\\";");
}
// End admin notes
Although there was only a fault with one line of code, I rewrote most of it to save an extra query to the database which wasn't needed.
Thanks for bringing this to my attention, and please do post back if you have any further problems.
2005-02-22, 04:54 PM
lol, aperently i already had this (with exeption of the extra query save)
i really should write down, what things i mod
i really should write down, what things i mod
Pages: 1 2