The release of version 1.0.3 addresses some issues with navigation and phpBB integration.
When upgrading to 1.0.3 from a previous version of OnePress, you will need to go into your /wp-content/themes/onepress/ directory and remove nav.inc.php and create a file in the same directory called settings.inc.php, which will need to have its permissions set to be writeable (chmod to 666.) After creating, head over to the OnePress settings in your admin and “Save Changes” (this will generate settings.inc.php contents for your site.)
For developers, if you have created a OnePress ready phpBB styles, you will need to make some changes. Previously, it was necessary to include nav.inc.php but that has changed some. You will want to place the following code at the top of your phpBB style’s /template/overall_header.html file:
<!-- PHP -->
// ==================================
// Load the OnePress settings file =
// ==================================
$root_path = dirname(dirname(dirname(__FILE__)));
// Determine path of WordPress installation
global $config; // get config for op_path user option
$extra_path = strlen($config['op_path']) > 0 ? $config['op_path'] : '';
$extra_path = preg_replace('/^/?(.*?[^/$])/*$/','$1/',$extra_path); // make sure path starts with no slash and ends with one slash
if(file_exists($root_path.'/'.$extra_path.'wp-content/themes/onepress/settings.inc.php'))
include($root_path.'/'.$extra_path.'wp-content/themes/onepress/settings.inc.php');
<!-- ENDPHP -->
In the spot where you would like your navigation to be output, go ahead and use:
<!-- PHP -->echo $op_navigation;<!-- ENDPHP -->
Release Notes
- If user was required to be logged in to comment but was not, the div holding comments was not properly closed.
- When logging in from phpBB, WordPress code that is use no longer loads plug-ins. Some plug-ins were not playing nicely with this load process.
- Automatically handle navigation issues that arise from using static page for front page. Fixed “double home” problem.
- Added notifications in layout selector and widget editing that explain which layouts to use when static page is set as front page.
- Removal of nav.inc.php.
- Addition of settings.inc.php. This is to serve as a flat file accessible from OnePress modules. Variables are set in PHP for echo’ing in phpBB styles, etc.
- Fixes for database queries that were using “wp_” rather than “$wpdb->”


