Thread: vBRadio v1.0
View Single Post
  #324  
Old 08-17-2006, 01:40 AM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error on line 111... Should read

Currently reads
PHP Code:
"; 
Should read
PHP Code:
"); 
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!");


Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01756 seconds
  • Memory Usage 1,813KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete