The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
battle hack needs to be fixed
i have a battle system given to me that was coded on a vb board with no table prefix. My vb is set up with table prefix: vb_ so the code breaks when i try to install it
is there anyone able to rewrite the code with the table prefix? I can send you all the files for it so you have something to work with |
#2
|
||||
|
||||
Append this code to the table name/s in your script:
PHP Code:
|
#3
|
|||
|
|||
in what script?
|
#4
|
||||
|
||||
At the custom script that it gives you the error. Find the queries with the db tables and append tot hem the code I posted. That should fix it as it covers all the custom prefixes a db might have.
|
#5
|
|||
|
|||
oh thanks i'll try that
--------------- Added [DATE]1284490180[/DATE] at [TIME]1284490180[/TIME] --------------- this is what happens when i try to install the product Database error in vBulletin 3.8.6: Invalid SQL: CREATE TABLE IF NOT EXISTS vb_`dbh_victims` ( `id` INT( 10 ) NOT NULL AUTO_INCREMENT , `username` VARCHAR( 50 ) NOT NULL , `beat` VARCHAR( 50 ) NOT NULL , `cscore` INT( 10 ) NOT NULL , `oscore` INT( 10 ) NOT NULL, UNIQUE (`id`) ); MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`dbh_victims` ( `id` INT( 10 ) NOT NULL AUTO_INCREMENT , `username` VARCHAR( 5' at line 1 Error Number : 1064 Request Date : Tuesday, September 14th 2010 @ 02:48:13 PM Error Date : Tuesday, September 14th 2010 @ 02:48:13 PM Script : http://lyricalbattlegroundz.net/foru...=productimport Referrer : http://lyricalbattlegroundz.net/foru...?do=productadd IP Address : 207.6.236.65 Username : Simz' Classname : vB_Database MySQL Version : 5.0.91-community |
#6
|
||||
|
||||
Quote:
From the code you posted it looks like the quotes are not entered right at the db name. This part here: Code:
CREATE TABLE IF NOT EXISTS vb_`dbh_victims` ( Code:
CREATE TABLE IF NOT EXISTS `vb_dbh_victims`( Code:
$vbulletin->db->query_write("CREATE TABLE IF NOT EXISTS `" . TABLE_PREFIX . "dbh_victims` ( `id` INT( 10 ) NOT NULL AUTO_INCREMENT , `username` VARCHAR( 50 ) NOT NULL , `beat` VARCHAR( 50 ) NOT NULL , `cscore` INT( 10 ) NOT NULL , `oscore` INT( 10 ) NOT NULL, UNIQUE (`id`) ); |
#7
|
||||
|
||||
Hi Simmons. I am following up on this. Did you manage to resolve the issue now?
|
#8
|
|||
|
|||
dont help this guy out, this was my battle hack he stole from my server, and expected you all to help him finish it.
all he had to do was install the database for it, as I didnt have it ready for installation. I know this post is nearly 5 years old, so I hope he wasnt able to get help lol. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|