Forums

Join
bbPress Support ForumsTroubleshootingPHP call for bbPress root

Info

PHP call for bbPress root

  1. I am trying to use a call to navigate to the root directory in order to call on an include that is located in a directory outside of the bbPress directory.

    Is there anyone out there who could help me with a BB PHP command that will bounce me back to the root directory. I tried...
    <?php include('../../etc/etc'); ?> with out results.

    So, any suggestions or ideas would be greatly appreciated.

    All the Best,
    Orion

  2. I would just use the full path on the server:

    <?php include
    ('var/usr/www/yourdirectory/whatever.file'); ?>

    That should work shouldn't it?

    Referencing this post

    Trent

  3. Hmmm... I am going to have to dig into this a bit later. It looks like it is going to take some work. I am actually trying to integrate product advertisements that I have set up in wordpress to be pulled into my forum template. Not exactly sure how to do it. At first I imagined that I would create another directory in the root that both WP and bbP could share from, but I will have to check into this later.

    It would be awesome if WP and bbPress could share includes seamlessly.

    Anyhow, I have to get back to building the actual forum before I get caught up and miss our goal.

    If any other ideas or etc. come up, please share.

    Thanks Trent!

    Orion

  4. You must log in to post.