35
Regarding the blank admin section, I made this modification to admin_header.php, which has fixed it:
Change:
$xoopsModule = XoopsModule::getByDirname("photovote");
To:
$xoopsModule = XoopsModule::getByDirname("books");
As for the default prefix, I checked out a couple other modules, and the standard format seems to be this:
$query = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix("books_items")." valid='1' ORDER BY RAND() LIMIT 1"));
The above might need tweaking, as I mentioned, I'm not too familiar with sql... also, you might have to grab the globals, like:
global $xoopsConfig, $xoopsDB, $xoopsUser;
Brad