KevNJ |
08-17-2006 02:40 AM |
Error on line 111... Should read
Currently reads
Should read
Then I get this error.
PHP Code:
Database error in vBulletin 3.6.0:
Invalid SQL:
INSERT INTO jelsoft_phrase VALUES (-1, 'radio_cat_added', 'Radio Category Added', 'error' ,'vbulletin', 'Kevin', , '1.0.0');
MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Wednesday, August 16th 2006 @ 08:32:28 PM
Script : http://www.jerseyparties.com/forums/admincp/install_vbradio.php?do=steptwo
Referrer : http://www.jerseyparties.com/forums/admincp/install_vbradio.php?do=stepone
IP Address :
Username :
Classname : vb_database
Quote:
Originally Posted by SecondV
Quite a few changes in vB's database structure. Note, i've not tested this, but in 'install_vbradio.php' replace all of step 2 with:
PHP Code:
if ($_POST['do'] == "steptwo")
{
$install_phrases = array(
'radio_cat_added' => 'Radio Category Added',
'radio_cat_edited' => 'Radio Category Edited',
'radio_cat_deleted' => 'Radio Category Deleted',
'radio_cat_ndeleted' => 'Radio Category Not Deleted',
'radio_channel_added' => 'Radio Channel Added',
'radio_channel_edited' => 'Radio Channel Edited',
'radio_channel_deleted' => 'Radio Channel Deleted',
'radio_channel_ndeleted' => 'Radio Channel Not Deleted'
);
foreach ($install_phrases AS $p_varname => $p_text)
{
$DB->query_write("
INSERT INTO " . TABLE_PREFIX . "phrase VALUES (-1, '$p_varname', '$p_text', 'error' ,'vbulletin', '" . $db->escape_string($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '1.0.0')
");
}
$DB->query_write("
CREATE TABLE " . TABLE_PREFIX . "radio (
rid int(11) NOT NULL auto_increment,
r_iscat varchar(5) NOT NULL default 'no',
r_name varchar(255) NOT NULL,
r_location varchar(255) NOT NULL,
r_forcat int(15) NOT NULL default '0',
PRIMARY KEY (rid)
)
");
$DB->query_write("
INSERT INTO " . TABLE_PREFIX . "radio (rid, r_iscat, r_name, r_location, r_forcat)
VALUES (1, 'yes', 'Alternative Rock', '', 0), (12, 'no', 'KNAC', 'http://release.theplatform.com/content.select?pid=_Vx9pkxpFxxCRGWMQ2FKCqW70iuLi6Mn&UserName=knaclive', 1), (9, 'no', 'A.I.R. Radio', 'http://130.49.24.169:1015/listen.pls', 1), (7, 'no', 'Idobi', 'http://www.idobi.com/radio/iradio.rm', 1), (8, 'no', 'American Radio Network', 'http://www.myamericanradio.net/audio/heavymetalhigh/preload.asx', 1)
";
print_form_header('', '');
print_table_header("vBRadio 1.0 Installation");
print_description_row("Database modifications complete. DELETE 'install_vbradio.php' AND 'vbradio.xml' FROM 'admincp' DIRECTORY NOW!");
}
|
|