[]
oceanwest said:Anyway to have a default for forums w/o a custom instruction? [/]
If you apply oceanwest's tweak, then it's a simple addition to that:
<br />$tbclose<br />UBBTPRINT;<br />if (file_exists("$thispath/includes/info_$Board.php")) { //UBBTREMARK<br />// If there are forum instructions, include them here<br />echo <<<UBBTPRINT<br /><br />$tbopen<br /><tr><br /><td class="lighttable" align="center"><br />UBBTPRINT;<br />@include "$thispath/includes/info_$Board.php"; //UBBTREMARK<br /><br />echo <<<UBBTPRINT<br /></td><br /></tr><br />$tbclose<br /><br /><br />UBBTPRINT;<br />} else if (file_exists("$thispath/includes/info_default.php")) { //UBBTREMARK<br />// If there are no forum instructions, but a default exists, then include it<br />echo <<<UBBTPRINT<br /><br />$tbopen<br /><tr><br /><td class="lighttable" align="center"><br />UBBTPRINT;<br />@include "$thispath/includes/info_default.php"; //UBBTREMARK<br /><br />echo <<<UBBTPRINT<br /></td><br /></tr><br />$tbclose<br /><br /><br />UBBTPRINT;<br /><br />}<br />echo <<<UBBTPRINT<br />
So this will include the board instructions if it exists, otherwise it checks for default instructions (
info_default.php) and will include that if it exists. If neither exist, then nothing gets included and no artifacts left behind (thanks oceanwest!)
You'll need to create the info_default.php file manually on your server.