// Select default value for options
$displayoptions['pm_email_notify'][0] = "<option value='0'".($options['pm_email_notify'] == "0" ? " selected" : "").">".$locale['632']."</option>";
$displayoptions['pm_email_notify'][1] = "<option value='1'".($options['pm_email_notify'] == "1" ? " selected" : "").">".$locale['631']."</option>";
$displayoptions['pm_save_sent'][0] = "<option value='0'".($options['pm_save_sent'] == "0" ? " selected" : "").">".$locale['632']."</option>";
$displayoptions['pm_save_sent'][1] = "<option value='1'".($options['pm_save_sent'] == "1" ? " selected" : "").">".$locale['631']."</option>";
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."messages_options");
$result = dbquery("CREATE TABLE ".$db_prefix."messages_options (
user_id smallint(5) UNSIGNED NOT NULL DEFAULT '0',
pm_email_notify tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
pm_save_sent tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
pm_inbox SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL,
pm_savebox SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL,
pm_sentbox SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (user_id)
) TYPE=MyISAM;");
$result = dbquery("INSERT INTO ".$db_prefix."messages_options VALUES ('0', '0', '1', '20', '20', '20')");
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions