Info
- 6 posts
- 2 voices
- Started 4 years ago by benbeltran
- Latest reply from benbeltran
- This topic is resolved
Check if User is Logged From Anywhere.
-
- Posted 4 years ago #
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 4 years ago #
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 4 years ago #
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 4 years ago #
... so did you get errors because including the files failed or because you called inexistant functions?
-
- Posted 4 years ago #
because I called inexistant functions. The includes went on properly.
-
- Posted 4 years ago #
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?
-
You must log in to post.