Installation
If you install MOphpBB in PHP-Nuke environment, please refer to PHP-Nuke Installation section instead of this section.
Step 0:
Assume phpBB2 is located in your web site "forum" directory, users visit your forum from "http://www.yoursite.com/forum/" on his/her PC web browser.
Step 1:
Please backup your database. This step is not mandatory for MOphpBB installation. However, it provides convenience when you want to restore the system in case of any unhappy.
Step 2:
Please backup following files. This step is not mandatory for MOphpBB installation. However, it provides convenience when you want to restore the system in case of any unhappy.
* http://www.yoursite.com/forum/includes/bbcode.php
* http://www.yoursite.com/forum/common.php
Step 3:
Extract the mophpbb zip file on your PC. You will get a new "mophpbb" directory.
Step 4:
FTP the "mo" directory within "mophpbb" to "http://www.yoursite.com/forum/". (You get "http://www.yoursite.com/forum/mo/*".)
Step 5: (Skip this step if you use Demo Package, because this step is for BBcode feature. BBcode is only in Full Featured/Lite Package.)
OPEN
"http://www.yoursite.com/forum/includes/bbcode.php"
FIND
global $template;
$tpl_filename = $template->make_filename('bbcode.tpl');
$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));
REPLACE WITH
global $template, $bbcode_tpl_file;
if ( !isset($bbcode_tpl_file) )
{
$bbcode_tpl_file = 'bbcode.tpl';
}
$tpl_filename = $template->make_filename($bbcode_tpl_file);
$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));
Step 6:
OPEN
"http://www.yoursite.com/forum/common.php"
FIND
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
REPLACE WITH
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") && !defined("MOPHPBB") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
Step 7:
Users can now access your forum on his/her mobile/cellular phone web browser from following links:
* "http://www.yoursite.com/forum/mo/index.php?type=wap" for WAP access;
* "http://www.yoursite.com/forum/mo/index.php?type=xhtml" for xHTML access;
* "http://www.yoursite.com/forum/mo/index.php?type=html" for HTML access.
Users can also view topic list from all categories and forums from following links:
* "http://www.yoursite.com/forum/mo/index2.php?type=wap" for WAP access;
* "http://www.yoursite.com/forum/mo/index2.php?type=xhtml" for xHTML access;
* "http://www.yoursite.com/forum/mo/index2.php?type=html" for HTML access.
Step 8: (optional)
You can also setup some sub-domain/redirection to help users access these new interfaces, such as redirect "http://wap.yoursite.com/" to "http://www.yoursite.com/forum/mo/index.php?type=wap".
Back to Top
Configuration
Step 0:
Assume phpBB2 is located in your web site "forum" directory, users visit your forum from "http://www.yoursite.com/forum/" on his/her PC web browser. (Assume PHP-Nuke is located in your web site root directory, users visit your site from "http://www.yoursite.com/" on his/her PC web browser.)
Step 1:
Configure GMT/UTC date/time format to display post date/time.
OPEN
"http://www.yoursite.com/forum/mo/var/cfg.php" ("http://www.yoursite.com/mo/var/cfg.php" for PHP-Nuke)
FIND
$mo_date_format = 'M d, Y';
You can update the above value to your favorable format.
Step 2:
Enable registration feature.
MOphpBB provides a register feature -- users can register to phpBB through MOphpBB interfaces. While, the solution skips "Registration Agreement Terms", "Under 13 Years Of Age", "Register Visual Confirmation", "Email Address Confirmation", and etc. So I believe not every web administrator like this function, at least the way I provide it. If you really want to enable this function, you should understand the behind issues.
This feature is only in Full Featured Package.
OPEN
"http://www.yoursite.com/forum/mo/var/cfg.php" ("http://www.yoursite.com/mo/var/cfg.php" for PHP-Nuke)
FIND
$mo_enable_register = 0;
REPLACE WITH
$mo_enable_register = 1;
Step 3:
Enable Mobile Hit Counter/Visit Number feature.
This feature is only in Full Featured Package. If you do not want to use this feature, you can skip this step.
[ SQL QUERY ]
INSERT INTO phpbb_config (config_name, config_value) VALUES ('mobile_hit_counter', '0');
Replace phpbb_ with your table prefix. Replace '0' with your wised starting value.
This feature is available only when WURFL is installed (refer to WURFL Installation section) and enabled ("$mo_enable_wurfl = 1" in "mo/var/cfg.php" file).