hi can somebody help me i have got this code from doing this tut but when i install this app it don't add the database please help me here also i think i need to build the phrases can anyone tell me what file i need to include and function to call in 3.5.0 think it's build_languages() don't know if it's changed
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="imghost" title="Image Hosting final" description="Image Hosting" version="2.1 beta 2" active="1">
<codes>
<code version="2.1 beta 2">
<installcode><![CDATA[$db->query('CREATE TABLE '. TABLE_PREFIX .'image_host (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
userid INT NOT NULL,
img_file VARCHAR(225) NOT NULL,
img_name VARCHAR(255) NOT NULL,
file_size INT NOT NULL,
img_width INT NOT NULL,
img_height INT NOT NULL
)TYPE=MyISAM;');
$db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghost INT( 10 ) UNSIGNED NOT NULL ;");
$db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghostset INT( 10 ) UNSIGNED NOT NULL ;");
$db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghost_width INT( 10 ) DEFAULT '100' NOT NULL ;");
$db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghost_height INT( 10 ) DEFAULT '100' NOT NULL ;");
$db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghost_files INT( 10 ) DEFAULT '100' NOT NULL ;");]]></installcode>