Skip to:
Content
Pages
Categories
Search
Top
Bottom

PHP call for bbPress root


  • startribe
    Member

    @startribe

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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


    startribe
    Member

    @startribe

    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

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.