Info
- 9 posts
- 3 voices
- Started 2 years ago by m291
- Latest reply from m291
- This topic is not resolved
BBPress Login to protect my own pages?
-
- Posted 2 years ago #
Hi,
its possible to protect other own .php sites with the BBPress Login?
Like this:
Here is the forum
./page/bbpressTo protected pages:
./page2/index.php
./page3/index.phpsry for bad english
-
- Posted 2 years ago #
I think it's possible. You'd have to include bbPress in your other pages and then use bbPress functions to see if the user is logged in and has permission to view the page. I think it's outside the scope of the help you will find at this forum, but it's certainly possible.
-
- Posted 2 years ago #
i think, i need only a little code like " if user_session has id then show page".
does anybody can help me please? i have used the search, but i found only integrations with other login-systems or wp systems. but not for my problem :-(
-
- Posted 2 years ago #
<?php require_once 'path/to/bb-load.php'; bb_auth( 'logged-in' ); ?> -
- Posted 2 years ago #
i have try it, but i get an error:
Warning: Invalid argument supplied for foreach() in /test/forum/bb-includes/backpress/class.wp-auth.php on line 145
Warning: Cannot modify header information - headers already sent by (output started at /test/forum/bb-includes/backpress/class.wp-auth.php:145) in /test/forum/bb-includes/functions.bb-pluggable.php on line 232
any ideas?
-
- Posted 2 years ago #
has nobody a proposition?
-
- Posted 2 years ago #
Oh, typo. Here's the correct one:
<?php require_once 'path/to/bb-load.php'; bb_auth( 'logged_in' ); ?> -
- Posted 2 years ago #
ben l. you are my hero. its work. thank you very much...
-
- Posted 2 years ago #
one more question:
what is the code to authorized only specified user groups?
thanks for help
-
You must log in to post.