From 39ea3e44e1d4baa39753eee99b00b0e7902efe58 Mon Sep 17 00:00:00 2001 From: Laird Date: Sat, 26 Jun 2021 15:33:50 +1000 Subject: [PATCH] Fix #309: Restructure the plugin's files (#314) Fix #309. Create "upload" and "scripts" subdirectories; move files into those subdirectories as appropriate. Update README.md correspondingly. Create scripts/README.md with brief, appropriate content. --- README.md | 6 +++++- scripts/README.md | 3 +++ tyl-converter.php => scripts/tyl-converter.php | 0 {images => upload/images}/thankyoulike/tyl_add.png | Bin {images => upload/images}/thankyoulike/tyl_del.png | Bin .../english/admin/config_thankyoulike.lang.php | 0 .../inc}/languages/english/thankyoulike.lang.php | 0 {inc => upload/inc}/plugins/thankyoulike.php | 0 {jscripts => upload/jscripts}/thankyoulike.js | 0 {jscripts => upload/jscripts}/thankyoulike.min.js | 0 thankyoulike.php => upload/thankyoulike.php | 0 tylsearch.php => upload/tylsearch.php | 0 12 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 scripts/README.md rename tyl-converter.php => scripts/tyl-converter.php (100%) rename {images => upload/images}/thankyoulike/tyl_add.png (100%) rename {images => upload/images}/thankyoulike/tyl_del.png (100%) rename {inc => upload/inc}/languages/english/admin/config_thankyoulike.lang.php (100%) rename {inc => upload/inc}/languages/english/thankyoulike.lang.php (100%) rename {inc => upload/inc}/plugins/thankyoulike.php (100%) rename {jscripts => upload/jscripts}/thankyoulike.js (100%) rename {jscripts => upload/jscripts}/thankyoulike.min.js (100%) rename thankyoulike.php => upload/thankyoulike.php (100%) rename tylsearch.php => upload/tylsearch.php (100%) diff --git a/README.md b/README.md index 627328e..7ea05b1 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ For more information, see the plugin's: 2. *Copy files*. - Extract the files in that archive to a temporary location, and then copy them into the root of your MyBB installation. That is to say that "tylsearch.php" should be copied to your MyBB root, "jscripts/thankyoulike.js" should be copied to your MyBB root's "jscripts/" directory, etc. + Extract the files in that archive to a temporary location, and then copy everything in the "upload" directory into the root of your MyBB installation (note that in earlier versions, there is no "upload" directory, and the files and directories to be uploaded are in the root extracted directory). That is to say that "tylsearch.php" should be copied to your MyBB root, "jscripts/thankyoulike.js" should be copied to your MyBB root's "jscripts/" directory, etc. 3. *Install via the ACP*. @@ -117,6 +117,10 @@ N.B. If MyAlerts is integrated *and* you don't want to lose any existing thanks/ Re-enter your settings for the plugin including any per-usergroup settings and any changes you had made to the plugin's stylesheet and templates (this is why it is important to have made a note of them before uninstalling the plugin). +## Migrating from other thanks/likes plugins + +A conversion script, "tyl-converter.php", is included in the "scripts" directory for this purpose. For directions on its use, see the comments at the top of that file. + ## FAQ **How do I completely uninstall the Thank You/Like System plugin and remove all of its data from the database?** diff --git a/scripts/README.md b/scripts/README.md new file mode 100644 index 0000000..8262e26 --- /dev/null +++ b/scripts/README.md @@ -0,0 +1,3 @@ +# Thank You/Like System scripts + +The tyl-converter.php script facilitates migration to the Thank You / Like System plugin by converting thanks/likes from other thanks/likes plugins. For instructions on its use, see the comment block at the top of that file. diff --git a/tyl-converter.php b/scripts/tyl-converter.php similarity index 100% rename from tyl-converter.php rename to scripts/tyl-converter.php diff --git a/images/thankyoulike/tyl_add.png b/upload/images/thankyoulike/tyl_add.png similarity index 100% rename from images/thankyoulike/tyl_add.png rename to upload/images/thankyoulike/tyl_add.png diff --git a/images/thankyoulike/tyl_del.png b/upload/images/thankyoulike/tyl_del.png similarity index 100% rename from images/thankyoulike/tyl_del.png rename to upload/images/thankyoulike/tyl_del.png diff --git a/inc/languages/english/admin/config_thankyoulike.lang.php b/upload/inc/languages/english/admin/config_thankyoulike.lang.php similarity index 100% rename from inc/languages/english/admin/config_thankyoulike.lang.php rename to upload/inc/languages/english/admin/config_thankyoulike.lang.php diff --git a/inc/languages/english/thankyoulike.lang.php b/upload/inc/languages/english/thankyoulike.lang.php similarity index 100% rename from inc/languages/english/thankyoulike.lang.php rename to upload/inc/languages/english/thankyoulike.lang.php diff --git a/inc/plugins/thankyoulike.php b/upload/inc/plugins/thankyoulike.php similarity index 100% rename from inc/plugins/thankyoulike.php rename to upload/inc/plugins/thankyoulike.php diff --git a/jscripts/thankyoulike.js b/upload/jscripts/thankyoulike.js similarity index 100% rename from jscripts/thankyoulike.js rename to upload/jscripts/thankyoulike.js diff --git a/jscripts/thankyoulike.min.js b/upload/jscripts/thankyoulike.min.js similarity index 100% rename from jscripts/thankyoulike.min.js rename to upload/jscripts/thankyoulike.min.js diff --git a/thankyoulike.php b/upload/thankyoulike.php similarity index 100% rename from thankyoulike.php rename to upload/thankyoulike.php diff --git a/tylsearch.php b/upload/tylsearch.php similarity index 100% rename from tylsearch.php rename to upload/tylsearch.php