A great bit of work, but the install file is not easy reading!
One of the confusing parts that will cause problems i have added below.
ii) admin/includes/classes/box.php
Add function, somewhere at the bottom of the file:
"
function simpleBox($contents){
return $this->tableBlock($contents);
}
"
This is for users who get this error
Fatal error: Call to undefined method box::simpleBox() but have followed the install file and have added the function.
All you ned to do is to include it in the main function, so instead of adding it after all other code, like this
function menuBox($heading, $contents) {
$this->table_data_parameters = 'class="menuBoxHeading"';
if (isset($heading[0]['link'])) {
$this->table_data_parameters .= ' onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . $heading[0]['link'] . '\'"';
$heading[0]['text'] = ' <a href="' . $heading[0]['link'] . '" class="menuBoxHeadingLink">' . $heading[0]['text'] . '</a> ';
} else {
$heading[0]['text'] = ' ' . $heading[0]['text'] . ' ';
}
$this->heading = $this->tableBlock($heading);
$this->table_data_parameters = 'class="menuBoxContent"';
$this->contents = $this->tableBlock($contents);
return $this->heading . $this->contents;
}
}
function simpleBox($contents){
return $this->tableBlock($contents);
}
?>
Change it to this
function menuBox($heading, $contents) {
$this->table_data_parameters = 'class="menuBoxHeading"';
if (isset($heading[0]['link'])) {
$this->table_data_parameters .= ' onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . $heading[0]['link'] . '\'"';
$heading[0]['text'] = ' <a href="' . $heading[0]['link'] . '" class="menuBoxHeadingLink">' . $heading[0]['text'] . '</a> ';
} else {
$heading[0]['text'] = ' ' . $heading[0]['text'] . ' ';
}
$this->heading = $this->tableBlock($heading);
$this->table_data_parameters = 'class="menuBoxContent"';
$this->contents = $this->tableBlock($contents);
return $this->heading . $this->contents;
}
function simpleBox($contents){
return $this->tableBlock($contents);
}
}
?>
This will sort out your problem :- )
Edited by FIMBLE, 28 February 2010, 01:33.