I have found some errors in ACP with prefix tables.
In ./admincp/vbugs_admin.php, find:
PHP Code:
$DB_site->query("
INSERT INTO vbugs
Replace by:
PHP Code:
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "vbugs
Then, find:
PHP Code:
$DB_site->query("UPDATE vbugs SET title = '" . addslashes($title) . "', description = '" . addslashes($description) . "', vbug_statusid = '$vbug_statusid', moderate = '$moderate', adminid = '$adminid', vbug_versionid = '$vbug_versionid', vbug_severityid = '$vbug_severityid', vbug_typeid = '$vbug_typeid', lastedit = '" . TIMENOW . "', lastreplyuid = '$bbuserinfo[userid]', private = '$private' WHERE vbugs_id = $vbugs_id");
Replace by:
PHP Code:
$DB_site->query("UPDATE " . TABLE_PREFIX . "vbugs SET title = '" . addslashes($title) . "', description = '" . addslashes($description) . "', vbug_statusid = '$vbug_statusid', moderate = '$moderate', adminid = '$adminid', vbug_versionid = '$vbug_versionid', vbug_severityid = '$vbug_severityid', vbug_typeid = '$vbug_typeid', lastedit = '" . TIMENOW . "', lastreplyuid = '$bbuserinfo[userid]', private = '$private' WHERE vbugs_id = $vbugs_id");
Then, find:
PHP Code:
$bugs = $DB_site->query("
SELECT *
FROM vbugs
LIMIT " . (($page - 1) * $perpage) . ", $perpage
");
Replace by:
PHP Code:
$bugs = $DB_site->query("
SELECT *
FROM " . TABLE_PREFIX . "vbugs
LIMIT " . (($page - 1) * $perpage) . ", $perpage
");
Then, find:
PHP Code:
$versions = $DB_site->query("
SELECT *
FROM vbug_version
ORDER BY displayorder
");
Replace by:
PHP Code:
$versions = $DB_site->query("
SELECT *
FROM " . TABLE_PREFIX . "vbug_version
ORDER BY displayorder
");
Then, find:
PHP Code:
$status = $DB_site->query_first("
SELECT *
FROM vbug_status
WHERE vbug_statusid = $vbug_statusid
");
Replace by:
PHP Code:
$status = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "vbug_status
WHERE vbug_statusid = $vbug_statusid
");
Then find:
PHP Code:
$severity = $DB_site->query_first("
SELECT *
FROM vbug_severity
WHERE vbug_severityid = $vbug_severityid
");
Replace by:
PHP Code:
$severity = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "vbug_severity
WHERE vbug_severityid = $vbug_severityid
");
Then find:
PHP Code:
$type = $DB_site->query_first("
SELECT *
FROM vbug_type
WHERE vbug_typeid = $vbug_typeid
");
Replace by:
PHP Code:
$type = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "vbug_type
WHERE vbug_typeid = $vbug_typeid
");
And all works