Announcement

Collapse
No announcement yet.

login on non-vb page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • login on non-vb page

    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?
    Xbox Live teams.com

  • #2
    Please ask for help at www.vbulletin.org for help with custom coding.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X