eXoOutsider
04-09-2014, 03:32 PM
Some of our code has stopped working out of the blue, I'm wondering if a syntax change has been made or something?
Hook: member_complete
if ($userinfo['usergroupid'] == '42')
{
$prepared_bypass = $vbulletin->db->query_first("SELECT field54 FROM userfield WHERE userid='" . $userinfo[userid] . "'");
if ($prepared_bypass['field54'] == 'grey')
{
$prepared['rank'] = '<img src="/forums/images/elite_user_ranks/userbar-elite-grey.png" alt="NextGenUpdate Elite Member" border="0" />';
}
if ($prepared_bypass['field54'] == 'red')
{
$prepared['rank'] = '<img src="/forums/images/elite_user_ranks/userbar-elite-red.png" alt="NextGenUpdate Elite Member" border="0" />';
}
}
It's meant to update their user ranks on the profile pages but it's just not doing it. Got an equivalent version for threads and that is working.
Hook: member_complete
if ($userinfo['usergroupid'] == '42')
{
$prepared_bypass = $vbulletin->db->query_first("SELECT field54 FROM userfield WHERE userid='" . $userinfo[userid] . "'");
if ($prepared_bypass['field54'] == 'grey')
{
$prepared['rank'] = '<img src="/forums/images/elite_user_ranks/userbar-elite-grey.png" alt="NextGenUpdate Elite Member" border="0" />';
}
if ($prepared_bypass['field54'] == 'red')
{
$prepared['rank'] = '<img src="/forums/images/elite_user_ranks/userbar-elite-red.png" alt="NextGenUpdate Elite Member" border="0" />';
}
}
It's meant to update their user ranks on the profile pages but it's just not doing it. Got an equivalent version for threads and that is working.