Forums

Join
bbPress Support ForumsInstallationCheck if User is Logged From Anywhere.

Info

Tags

Check if User is Logged From Anywhere.

  1. Hello.

    I'm trying to make a bar that stays constant in every part of my website and I want to include the login form/profile link in it, but I have to check if the user is logged in or somehow be able to use bbpress functions out of bbpress.

    Any recommendations for this?

  2. You can always load bbpress and then check, by:
    require_once( 'path/to/bb-load.php' );

    Otherwise you could check if the cookie is set and has a password parameter. You won't be able to check if it's a correct password, of course.

  3. yeah. I actually tried that, but It didn't recognize any functions. D:. Even tried including the functions, template-functions, pluggable, etc files on their own. Still nothing.

    And I tried searching for the cookie parameters, but I'm dumb and I was sleepy, couldn't do a thing.

  4. ... so did you get errors because including the files failed or because you called inexistant functions?

  5. because I called inexistant functions. The includes went on properly.

  6. Err. Sorry about the double post. Functions are recognized properly now -_- I had a dumb mistake (It's surprising what a little sleep can do for you).

    The thing is, I can't get the functions to recognize the user as being logged in. Will I have to do something similar to what people do to integrate with wp?

  7. You must log in to post.