Very nice hack, works great. For those that have their forum as subdomain thereis no need in iframes really and you can have it in your php page with other script. Blank pages etc are because of global.php, as someone pointed out. The file gets included into main index page before execution and therefore can't find includes from admin folder. You can easily fix this. Open your global.php file, at the top add variable with absolute path to your forums folder, for example:
$ahome = '/usr/www/website.com/forums';
then find and replace:
require('.admin/config.php');
with
require($ahome.'.admin/config.php');
$dbclassname="./admin/db_dbservertype.php";
with
$dbclassname=$ahome."./admin/db_dbservertype.php";
require('.admin/functions.php');
with
require($ahome.'.admin/functions.php');
require('.admin/sessions.php');
with
require($ahome.'.admin/sessions.php');
works flowlessly and you can have your boardstat.php anywhere you want, tested on 2.30, but version doesn't really metter. In boardstat.php change your
require("forums/global.php");
to whatever path of your global.php is, for most people it will be the same, for those with subdomains might differ, but shouldn't be a problem. You can't require script from different server, but I guess you could work out a solution without iframes. Just an example, on index.php request, you could call up a script, simmilar to boardstat.php from a different server, which will return boardstat values, and you just put them in, very easy.
|