From e88b1c9c081f43a87a9ac091393301699d4e69b7 Mon Sep 17 00:00:00 2001 From: Aaron Maturen Date: Sun, 20 May 2012 11:11:57 -0400 Subject: [PATCH] added user config page --- config/config.php | 18 +++++++++++++ hooks/search.php | 49 +++++++++++++++++++++--------------- inline_keywords.rsp | Bin 13637 -> 0 bytes inline_keywords.yaml | 2 +- languages/en.php | 19 ++++++++++++++ pages/add_keywords.php | 2 +- pages/setup.php | 53 +++++++++++++++++++++++++++++++++++++++ pages/setup.template.php | 32 +++++++++++++++++++++++ 8 files changed, 153 insertions(+), 22 deletions(-) create mode 100644 config/config.php delete mode 100644 inline_keywords.rsp create mode 100644 pages/setup.php create mode 100644 pages/setup.template.php diff --git a/config/config.php b/config/config.php new file mode 100644 index 0000000..a7dbf46 --- /dev/null +++ b/config/config.php @@ -0,0 +1,18 @@ + Manage Plugins and then clicking on Options for the +# sample plugin once it has been activated. + +# $sample_pets_owned = array(2); // Indices to the list of pets type giving types owned + // 0=Cat, 1=Bird, 2=Dog, 3=Fish, 4=Horse, 5=Lizard, 6=Monkey +# $sample_favorite_pet_type = 2; // Index in the list of pet types giving type of favorite pet +# $sample_favorite_pet_name = ""; // Typed in text giving the name of the favorite pet +# $sample_favorite_pet_living = -1; // Boolean specifying whether favorite pet is alive or not + +$inline_keywords_usertype = 'a'; +$inline_keywords_background_colour = 'hotPink'; +$inline_keywords_use_jQuery_ui = True; +$inline_keywords_use_legacy_jQuery = True; \ No newline at end of file diff --git a/hooks/search.php b/hooks/search.php index 0cdb9c9..31395dc 100644 --- a/hooks/search.php +++ b/hooks/search.php @@ -1,43 +1,52 @@ -
-
-

-

+ global $lang, $inline_keywords_usertype; + if(checkperm($inline_keywords_usertype)) + { + ?> +
+
+

+

-
- - "> - "> - "> -
-
-
- + + "> + "> + "> + +
+
+