From 94d7cdbc021d8754c98efcad9abb5dab89454e8b Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 31 Dec 2009 13:22:47 -0800 Subject: [PATCH] ComicPress options changes Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-debug.php | 4 +-- comicpress-options.php | 12 ++++----- functions.php | 6 ++++- options/configoptions.php | 44 ++++++++++++++++++++++++++++++++ options/generaloptions.php | 30 ++++++++++++++++++++++ options/membersoptions.php | 52 -------------------------------------- 6 files changed, 86 insertions(+), 62 deletions(-) create mode 100644 options/configoptions.php delete mode 100644 options/membersoptions.php diff --git a/comicpress-debug.php b/comicpress-debug.php index f725bf1..97026c5 100644 --- a/comicpress-debug.php +++ b/comicpress-debug.php @@ -15,14 +15,14 @@ function comicpress_notice_debug() { if ($comiccat == $blogcat) { $error[] = array('header', __('Primary Comic and Blog categories are not configured properly.','comicpress')); $error[] = __('ComicPress requires 2 categories to be added to the ','comicpress') . '' . __('post categories.','comicpress') . '' . - __(' It is necessary to have 2 more categories in addition to the uncategorized category, a Blog and Comic primary categories. These two additional categories will be the root categories that seperate the difference between the comic and blog posts. When you post a new comic you will be posting it into the comic category or heirarchal children of the comic category. When posting a new blog post you need to set it into the blog category or child of the blog category. Uncategorized will act as a blog post category (do not rename uncategorized). You can configure the categories to set as the primary blog and comic category from within the comicpress-config.php file or use ComicPress Manager - ComicPress Config','comicpress'); + __(' It is necessary to have 2 more categories in addition to the uncategorized category, a Blog and Comic primary categories. These two additional categories will be the root categories that seperate the difference between the comic and blog posts. When you post a new comic you will be posting it into the comic category or heirarchal children of the comic category. When posting a new blog post you need to set it into the blog category or child of the blog category. Uncategorized will act as a blog post category (do not rename uncategorized). You can configure the categories to set as the primary blog and comic category from within the ComicPress Manager plugin.','comicpress'); } if (empty($error)) { // Check Comics Folder if (!is_dir(ABSPATH . '/' . $comic_folder)) { $error[] = array('header', __('Comics Folder is not configured and is unable to be found.','comicpress')); - $error[] = __('ComicPress stores the files it uses inside a specific directory and that directory is set within the comicpress-config.php or you can configure it from within ComicPress Manager. When this error is present it means that the theme is unable to find the appropriate directory to read the comics from.','comicpress'); + $error[] = __('ComicPress stores the files it uses inside a specific directory and that directory is set from within ComicPress Manager. When this error is present it means that the theme is unable to find the appropriate directory to read the comics from.','comicpress'); } } diff --git a/comicpress-options.php b/comicpress-options.php index f2df937..6b18846 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -58,8 +58,10 @@ function comicpress_admin() { ) as $key) { $comicpress_options[$key] = (bool)( $_REQUEST[$key] == 1 ? true : false ); } + foreach (array( - 'graphicnav_directory' + 'graphicnav_directory', + 'members_post_category' ) as $key) { $comicpress_options[$key] = wp_filter_nohtml_kses($_REQUEST[$key]); } @@ -178,11 +180,6 @@ function comicpress_admin() { update_option('comicpress_options',$comicpress_options); } - if ($_REQUEST['action'] == 'comicpress_save_members') { - $comicpress_options['members_post_category'] = wp_filter_nohtml_kses($_REQUEST['members_post_category']); - $tab = 'members'; - update_option('comicpress_options',$comicpress_options); - } if ($tab) { ?>

@@ -211,7 +208,8 @@ function comicpress_admin() {
-
+
+ showhide"> + +
+ + +
+ + + + + + + + + + + +
+ + ]*)>#', ' + +
+ +
+ +
+
+
+ + +
+
+
+
+ +
+ + diff --git a/options/generaloptions.php b/options/generaloptions.php index 7492170..0f433e6 100644 --- a/options/generaloptions.php +++ b/options/generaloptions.php @@ -171,6 +171,36 @@ + + + + + + + + + + + + + +
+ + ]*)>#', ' + +
+

Dashboard -> Users -> Authors & Users and flag the user you want to be a member with the option at the bottom.','comicpress'); ?>

+

+

+

+

+
+ diff --git a/options/membersoptions.php b/options/membersoptions.php deleted file mode 100644 index 09cd679..0000000 --- a/options/membersoptions.php +++ /dev/null @@ -1,52 +0,0 @@ -
- -
- - -
- -
- - - - - - - - - - - - -
- - ]*)>#', ' - -
-

Dashboard -> Users -> Authors & Users and flag the user you want to be a member with the option at the bottom.','comicpress'); ?>

-

-

-

-

-
- - - -
-
-
- - -
-
-
-
- - - -