Forums

vBulletin header login area with WordPress (4 posts)

  1. DivaythFyr
    Member
    Posted 1 year ago #

    I'm trying to add a vBulletin login box to my WordPress blog. So far have been using the script by Fatalx:

    http://wordpress.org/support/topic/vbulletin-login-in-sidebar?replies=12

    Overall I have it so it works perfectly, the only issue is that the "Welcome back, username" doesn't show up in the header when logged in. It does show up in the index, sidebar and other places just fine though.

    global $vbulletin;
    if ($vbulletin->userinfo['userid']!=0) {
    
    $username= $vbulletin->userinfo['username'];
    echo ("<p>Welcome back, $username!</p>");
    }

    The code is not finding the "if ($vbulletin->userinfo['userid']!=0)" so it switches to the login field despite already being logged in.

    Is there anyway to get this to work in the header? I appreciate any help.

  2. DivaythFyr
    Member
    Posted 1 year ago #

    Perhaps it's something to do with the loop not being in the header or such?

    The site is: http://bunchofanime.com/

  3. DivaythFyr
    Member
    Posted 1 year ago #

    Well it's been four days and I'm still stumped. There should be a simple explanation, but I do not know what it could be. I really would appreciate some help... I've seen it done before so I know it's very possible.

  4. Hara Kim
    Member
    Posted 5 months ago #

    Have you figured this out I am interested as well in using the vbulletin header within wordpress.

Topic Closed

This topic has been closed to new replies.

About this Topic