bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

PHP call for bbPress root

(3 posts)
  • Started 1 year ago by startribe
  • Latest reply from startribe
  • This topic is not a support question
  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

    Posted 1 year ago #
  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

    Posted 1 year ago #
  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

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.