tubedogg remember the issue with this hack when a forum is closed the non-vb pages have all this gibberish displayed when the forums were closed ? and how you gave me a fix for that ? well for some reason it no longer works and nothing really changed
your fix before allowed me to close my forum and the last10 topics hack on non-vB pages would just display closed for maintenance message..
but now it just calls and displays my vB forums entire closed forum message page... screen cap below
the fix you gave me was to add the code in bold below to last10.php file
PHP Code:
$boarddown1 = mysql_query("SELECT value FROM setting WHERE varname='bbactive'");
$boarddown = mysql_result($boarddown1,0,0);
if ($boarddown == "0") { echo("Sorry the forums are down for maintenance"); exit; }
just under
PHP Code:
// let's get connected
require("last10config.php");
require("$path/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword) or die("Can't open connection to MySQL");
mysql_select_db($dbname) or die("Can't select database");
but for some strange reason that doesn't work anymore ?????
any help is appreciated since my server is being moved and i need to close my forums a day before hand but my normal non-vb sites have this hack being called