bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

Check if User is Logged From Anywhere.

(6 posts)
  • Started 1 year ago by benbeltran
  • Latest reply from benbeltran
  • This topic is resolved

No tags yet.

  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?

    Posted 1 year ago #
  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.

    Posted 1 year ago #
  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.

    Posted 1 year ago #
  4. ... so did you get errors because including the files failed or because you called inexistant functions?

    Posted 1 year ago #
  5. because I called inexistant functions. The includes went on properly.

    Posted 1 year ago #
  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?

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.