Print Search Content Actions Wiki Search |
Some notes on installing PhpBB3 from scratch. ContentsBasic Installation
Configure Expresso BeansThe define CFG_FORUM needs to be set to the new forum location. Naruto InstallationExpresso Beans uses the Naruto package to communicate with the forum. Some example queries include, topic listing, unread PM's, getting a user's email address and creating and posting forum topics. While this is not a direct mod to PhpBB3, it does need access to the PhpBB3 installation. For security, it is most ideal to protect the access to this so that only the EB site can call it.
<?php // enter correct data here define('NARUTO_CLASSES','/home/ebforum/libs/naruto/classes'); define('PHPBB3_DIR','/home/ebforum/public_html/phpBB3/'); define('PHPBB3_URL','http://forum.expressobeans.com/'); require_once(NARUTO_CLASSES . '/restNarutoService.php'); require_once(NARUTO_CLASSES . '/phpbb3Naruto.php'); $service = new RestNarutoService(new Phpbb3Naruto); //$service->setTransactionLog('logs/server.log'); $service->startService(); ?> Configure Expresso BeansMake sure that the automator user exists in the forum and has admin rights. Set the following values in Expresso beans eb_config.php define('NARUTO_SERVER','http://forum.expressobeans.com/natuto/server.php'); define('NARUTO_USER','automator'); define('NARUTO_AUTHKEY','userkey');
EB Modificationsfavicon.icoThis is the favorites icon that shows up in the web browser tabs when viewing the site. This has to be placed int the doc root. This is a sub-standard quirk in my opinion. Automator userExpresso Beans needs a user account to gain access to PhpBB3 with Naruto and to make automated posts. This user must have administrator rights. It does not have to be called Automator, but should not be a real account. Single Sign onFor this to work, the forum has to be in the same domain as the Expresso Beans website (i.e. expressobeans.com). Expresso Beans uses the forum to handle logons, but the forum won't redirect login users outside its space. So we need to install a special file to manage the redirects.
<?php define('COOKIE_DOMAIN', '.expressobeans.com'); define('COOKIE_LOGIN_TO', 'xlogin_to'); if (!empty($_COOKIE[COOKIE_LOGIN_TO])) { $loc = $_COOKIE[COOKIE_LOGIN_TO]; setcookie(COOKIE_LOGIN_TO, '', 10, '/', COOKIE_DOMAIN); } else { $loc = '/'; } header('Location: ' . $loc); ?> <html> <head> <title>Successfully Logged IN</title> <meta http-equiv="refresh" content="0; URL=<?=$loc?>"/> </head> <body> Redirecting to <a href="<?=$loc?>"><?=$loc?></a> </body> </html> Add eBay BBCodesThe referral link may change, so make sure it is correct
Applying the EBForum theme
|