- 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: