This code worked for me in 3.0.7 but broke when I upgraded to 3.5
PHP Code:
<?
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
// i assigned the avatar url to the variable $user_av and check to see if it's empty.
$user_av = fetch_avatar_url($bbuserinfo['userid']);
if($user_av!='')
$user_av="/forums/" . $user_av; //replace "/forum/" with your virtual path to your forum pages.
print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>");
//if the avatar url is not empty, display it
if($user_av!='')
print("<img src=\"" . $user_av . "\" vspace=4>");
} else {
?>
The forms that are displayed to login still work. The problem is it doesn't detect when someone is logged in anymore.
What changed from 3.0.7 to 3.5 that broke this and what do I need to do to fix it?