Skip to:
Content
Pages
Categories
Search
Top
Bottom

BBPress Login to protect my own pages?

  • Hi,

    its possible to protect other own .php sites with the BBPress Login?

    Like this:

    Here is the forum

    ./page/bbpress

    To protected pages:

    ./page2/index.php

    ./page3/index.php

    sry for bad english

Viewing 8 replies - 1 through 8 (of 8 total)
  • @chrishajer

    Participant

    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.

    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 :-(

    @nightgunner5

    Member

    <?php require_once 'path/to/bb-load.php'; bb_auth( 'logged-in' ); ?>

    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?

    has nobody a proposition?

    @nightgunner5

    Member

    Oh, typo. Here’s the correct one:

    <?php require_once 'path/to/bb-load.php'; bb_auth( 'logged_in' ); ?>

    ben l. you are my hero. its work. thank you very much…

    one more question:

    what is the code to authorized only specified user groups?

    thanks for help

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar