add $DatabasePrefix = $Context->Configuration['DATABASE_TABLE_PREFIX']; somewhere in the beginning of default.php
and replace $UserSearchDrop = "drop table if exists `LUM_UserSearch`";to $UserSearchDrop = "drop table if exists `".$DatabasePrefix."UserSearch`";and $UserSearchCreate = "CREATE TABLE `LUM_UserSearch` (to $UserSearchCreate = "CREATE TABLE `".$DatabasePrefix."UserSearch` ( is only for the forum with diferent prefix
Comments
if (!AppendToConfigurationFile($Configuration['APPLICATION_PATH'].'conf/database.php', $Structure)) $Errors = 1;
should be replace withif (!AppendToConfigurationFile($Configuration['DATABASE_PATH'], $Structure)) $Errors = 1;
Or the extension won't be able to save its settings if the conf/database.php have been moved.
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/xxx/public_html/extensions/SavedSearches/default.php on line 43
add
$DatabasePrefix = $Context->Configuration['DATABASE_TABLE_PREFIX'];
somewhere in the beginning of default.php
and replace
$UserSearchDrop = "drop table if exists `LUM_UserSearch`";
to$UserSearchDrop = "drop table if exists `".$DatabasePrefix."UserSearch`";
and$UserSearchCreate = "CREATE TABLE `LUM_UserSearch` (
to$UserSearchCreate = "CREATE TABLE `".$DatabasePrefix."UserSearch` (
is only for the forum with diferent prefix
sorry for my english