Page 1 of 1

Local path for different directory?

PostPosted: 04. March 2012 20:50
by Xee
I am running phpBB3 and WordPress in the same installation of XAMPP. I installed a plugin in Wordpress to automatically create a topic in my forum of any new posts in WordPress. However, this plugin asks for the local path of the phpBB installation but no matter what I enter into the field it cannot find the forum (WordPress is in the "wpbfo" directory and the forum is in the "forum" directory). If it helps, here is the code from the plugin regarding asking for the local path:

Code: Select all
<tr valign="top">
    <th scope="row"><label><?php _e("phpBB local path:", 'mt_trans_domain' ); ?></label></th>
    <td><input type="text" name="wp2bb_phpbbpath" value="<?php echo $opt_phpbbpath_val; ?>" size="60">
    <?php
        if (file_exists($opt_phpbbpath_val . '/config.php')) echo ('<br/>PhpBB found');
        else echo ('<br><strong>PhpBB NOT FOUND!</strong>');
     ?>
    </td>
    <td>Local path of your phpbb installation<br/>(probably <?php
          $wpl=substr(__FILE__,0,stripos(__FILE__, '/wp-content'));
          $bbl= substr($wpl,0,stripos($wpl,strrchr($wpl,'/'))) . '<em>/myforum</em>';
          echo ('<strong>' . $bbl . '</strong>');
         ?>)</td>
  </tr>


And here is how it looks like in the plugin settings page:

Image

Re: Local path for different directory?

PostPosted: 06. March 2012 04:20
by JonB
try giving it an absolute path (it does say LOCAL path)

i.e. something like 'c://xampp/htdocs/forum' you might need to experiment with forward backward slashes and the matter of escaped slashes.

Just my guess

Good Luck
8)