Compare commits
2 Commits
2a1027d087
...
743a1acb9b
| Author | SHA1 | Date | |
|---|---|---|---|
| 743a1acb9b | |||
| 2c4fc2d300 |
@@ -66,11 +66,15 @@ function htmlposts_activate()
|
||||
'disporder' => 100,
|
||||
'isdefault' => 0
|
||||
);
|
||||
$gid = $db->insert_query("settinggroups", $insertarray);
|
||||
$db->insert_query("settinggroups", $insertarray);
|
||||
$gid = $db->insert_id();
|
||||
|
||||
if (!$gid || !is_numeric($gid)) {
|
||||
die("Failed to create settings group. $gid is not valid.");
|
||||
}
|
||||
|
||||
// add settings
|
||||
$setting = array(
|
||||
"sid" => NULL,
|
||||
"name" => "htmlposts_groups",
|
||||
"title" => "Allowed Groups",
|
||||
"description" => "Enter the group IDs that can use HTML in posts. (separated by a comma, can be blank to allow all)",
|
||||
@@ -83,7 +87,6 @@ function htmlposts_activate()
|
||||
$db->insert_query("settings", $setting);
|
||||
|
||||
$setting = array(
|
||||
"sid" => NULL,
|
||||
"name" => "htmlposts_uids",
|
||||
"title" => "Allowed Users",
|
||||
"description" => "Enter the user IDs of the users that can use HTML in posts. (separated by a comma, leave blank to disable this feature)<br />Note: overrides groups setting.",
|
||||
@@ -96,7 +99,6 @@ function htmlposts_activate()
|
||||
$db->insert_query("settings", $setting);
|
||||
|
||||
$setting = array(
|
||||
"sid" => NULL,
|
||||
"name" => "htmlposts_forums",
|
||||
"title" => "Affected Forums",
|
||||
"description" => "Enter the forum IDs that are affected by this plugin. (separated by a comma, can be blank if you want to affect all forums)",
|
||||
|
||||
Reference in New Issue
Block a user