Installation:
This theme requires some additional installation steps other then extracting the files in a theme folder.
In order to fully utilize this theme, please follow the steps:
1. Extract these files to your /themes folder
2. Add this code to the end of your mainfile.php:
//Code Added for showing and hiding blocks!!
if ($userinfo[theme] == "Trashbin") {
require_once("themes/Trashbin/block_show_hide.php");
}
//End Code added
3. In mainfile.php, change all occurences (it should be 5) of:
themesidebox($title, $content);
into:
//Code Change - added $bid
themesidebox($title, $content, $bid);
//End Code Change
Change the render_blocks function into:
function render_blocks($side, $blockfile, $title, $content, $bid, $url) {
if ($url == "") {
if ($blockfile == "") {
if ($side == "c") {
themecenterbox($title, $content);
} else {
themesidebox($title, $content, $bid);
}
} else {
if ($side == "c") {
blockfileinc($title, $blockfile, 1);
} else {
blockfileinc($title, $blockfile, -1, $bid);
}
}
} else {
if ($side == "c") {
headlines($bid,1);
} else {
headlines($bid);
}
}
}
And change the blockfileinc function into:
function blockfileinc($title, $blockfile, $side=0, $bid=-1) {
$blockfiletitle = $title;
$file = @file("blocks/$blockfile");
if (!$file) {
$content = _BLOCKPROBLEM;
} else {
include("blocks/$blockfile");
}
if ($content == "") {
$content = _BLOCKPROBLEM2;
}
if ($side == 1) {
themecenterbox($blockfiletitle, $content);
} else {
themesidebox($blockfiletitle, $content, $bid);
}
}
4. In the themes.php file of all the other themes, change the following line:
function themesidebox($title, $content) {
into:
function themesidebox($title, $content, $bid = -1) {
If this step is not done, the other themes will give errors!!!! |