Nella versione 1.0.4 inseriamo quindi il seguente codice a livello installazione:
Codice PHP:
$SQL = array();
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_description VARCHAR(255) NOT NULL DEFAULT ''";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_lastbidder INT UNSIGNED NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_biddername VARCHAR(255) NOT NULL DEFAULT ''";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_startvalue DOUBLE NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_lastbidvalue DOUBLE NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_endvalue DOUBLE NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_xshipping1 INT UNSIGNED NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_xshipping2 INT UNSIGNED NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_xshipping3 INT UNSIGNED NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_price1 DOUBLE NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_price2 DOUBLE NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_price3 DOUBLE NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_xpayment1 INT UNSIGNED NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_xpayment2 INT UNSIGNED NOT NULL DEFAULT '0'";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread ADD vtp_xpayment3 INT UNSIGNED NOT NULL DEFAULT '0'";
run_sqls($SQL);
Codice PHP:
$SQL = array();
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_description";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_lastbidder";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_biddername";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_startvalue";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_lastbidvalue";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_endvalue";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_xshipping1";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_xshipping2";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_xshipping3";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_price1";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_price2";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_price3";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_xpayment1";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_xpayment2";
$SQL[] = "ALTER TABLE " . TABLE_PREFIX . "thread DROP vtp_xpayment3";
run_sqls($SQL);
Plugin threaddata_start:
Codice PHP:
$this->validfields['vtp_description'] = array(TYPE_STR, REQ_NO);
$this->validfields['vtp_lastbidder'] = array(TYPE_INT, REQ_NO);
$this->validfields['vtp_biddername'] = array(TYPE_STR, REQ_NO);
$this->validfields['vtp_startvalue'] = array(TYPE_NUM, REQ_NO);
$this->validfields['vtp_lastbidvalue'] = array(TYPE_NUM, REQ_NO);
$this->validfields['vtp_endvalue'] = array(TYPE_NUM, REQ_NO);
$this->validfields['vtp_xshipping1'] = array(TYPE_INT, REQ_NO);
$this->validfields['vtp_xshipping2'] = array(TYPE_INT, REQ_NO);
$this->validfields['vtp_xshipping3'] = array(TYPE_INT, REQ_NO);
$this->validfields['vtp_price1'] = array(TYPE_NUM, REQ_NO);
$this->validfields['vtp_price2'] = array(TYPE_NUM, REQ_NO);
$this->validfields['vtp_price3'] = array(TYPE_NUM, REQ_NO);
$this->validfields['vtp_xpayment1'] = array(TYPE_INT, REQ_NO);
$this->validfields['vtp_xpayment2'] = array(TYPE_INT, REQ_NO);
$this->validfields['vtp_xpayment3'] = array(TYPE_INT, REQ_NO);
Messaggio vBulletin