bbPress

Simple, Fast, Elegant

bbPress support forums » Requests and Feedback

Calling functions outside

(2 posts)
  • Started 2 months ago by kannued
  • Latest reply from chrishajer

Tags:

  1. kannued
    Member

    I want to login function on a straight html page that is outside of the bbpress .9 standalone. Once the person logsin, then they are moved to the front-page.

    I used this in the html page

    <?php login_form(); ?>

    and of course I get an error, Fatal error: Call to undefined function login_form()

    In straight html, I would code the full url. How can I call this function from outside of its directory? What is the full function path?

    Posted 2 months ago #
  2. If you include bb-load.php in that file, you will have access to bbpress functions. Why not do something like this in that page:

    require_once(/full/path/to/bbpress/bb-load.php)

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.