From 6e78b8fb472dc5ff8b586911d5ad06cb12aaea4e Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 13 May 2009 01:02:16 +0000 Subject: added a new plugin that allows users to set an extensive list of (future) parameters and not have to worry about upgrades --- tidypics_settings/manifest.xml | 10 ++++++++++ tidypics_settings/readme.txt | 27 +++++++++++++++++++++++++++ tidypics_settings/start.php | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 tidypics_settings/manifest.xml create mode 100644 tidypics_settings/readme.txt create mode 100644 tidypics_settings/start.php diff --git a/tidypics_settings/manifest.xml b/tidypics_settings/manifest.xml new file mode 100644 index 000000000..3ee22d192 --- /dev/null +++ b/tidypics_settings/manifest.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/tidypics_settings/readme.txt b/tidypics_settings/readme.txt new file mode 100644 index 000000000..2f6ff9cca --- /dev/null +++ b/tidypics_settings/readme.txt @@ -0,0 +1,27 @@ +What is this? +============================= +tidypics_settings is a plugin + + +What does it do? +============================= +It allows you to override settings in tidypics like the size of images or whether images +can be downloaded or not. By changing those settings in this plugin and NOT in the +tidypics plugin, you can upgrade to new versions without worrying about losing your +custom settings. + + +How do I install it? +============================= +1. Copy the tidypics_settings directory to your Elgg mod directory. You should now have +a directory path like this: /mod/tidypics_settings + +2. Under that directory, you should have 2 files: this readme and a start.php file. Edit +this start.php file to change any settings that you want to change (uncomment the setting +and then change its value). + +3. Confirm that this plugin appears below tidypics on the plugin list in Tools Administration. +It does not have to be directly below. Just as long as it is loaded afterwards. + +4. Enable the plugin under Tools Administration in your Elgg install. If you get a misconfigured +plugin error message, you've done something dumb. diff --git a/tidypics_settings/start.php b/tidypics_settings/start.php new file mode 100644 index 000000000..6332050a8 --- /dev/null +++ b/tidypics_settings/start.php @@ -0,0 +1,35 @@ +tidypics)) { + error_log('tidypics_settings: error - not loaded after tidypics plugin!!!'); + } + + +///////////////////////////////////////////////////////////////////// +// Image sizes - Tidypics makes 3 views of an image: +// Large - displayed when viewing the image alone +// Small - displayed on an album page +// Thumb - used for the activity log +// There is also the original image that is available for download +// $CONFIG->tidypics->image_large_width = 600; +// $CONFIG->tidypics->image_large_height = 600; + +// $CONFIG->tidypics->image_small_width = 153; +// $CONFIG->tidypics->image_small_height = 153; + +// $CONFIG->tidypics->image_thumb_width = 60; +// $CONFIG->tidypics->image_thumb_height = 60; + + + + + +?> \ No newline at end of file -- cgit v1.2.3