Quote:
Originally Posted by maelfius
I am also seeing the vbulletin SQL_DB::escape_string_like errors. A Fix for this would be greatly appreciated.
Unless most of the functions that are defined in vbulletin_wowhead.php (that are duplicated by the vbulletin plugin) are commented out, you get duplicate defined functions. With the functions commented, SQL_DB::escape_string_like errors occur.
This appears to indicate the use of EQDKP hack and the use of the vbulletin mod are mutually exclusive.
|
The error is most likely because the database class object in EqDKP and Vbulletin share the same name ($db). to work around this, i unset the $db variable and reference the vbulletin DB exclusivly , $vbulletin->db->
Since i do not care about eqdkp data, I had to some how force eqdkp to go into the vbulletin class to pull the data from the database. Since most likely your EqDKP installation and your vbulletin installation will be in different directories (i.e. /forums and /eqdkp ), i have to change the php script local path (via chdir) to the vbulletin directroy, run all of the stuff i need to, then change back to EqDKP.
Currently i have on line 25,
Perhaps i should have this before the init.php include from vbulletin.
Please try removing line 25 and placing the following;
before line 13.
PHP Code:
$olddir = getcwd();
$eqdkp_db = $db; // Save EqDKPs database object
unset($db); // delete current EqDKP object
before line 180 (before chdir($olddir); )
PHP Code:
unset($db); // Delete current Vbulletin Object (we are done with it)
$db = $eqdkp_db; // Copy EqDKP object back to default
unset($eqdkp_db); // Unset copy of EqDKP Object
chdir($olddir);
I really can't think of a work around other than re-writing EqDKP and intergrating it within Vbulletin. Not something i think i am prepared to do at this time.