aboutsummaryrefslogtreecommitdiff
path: root/tidypics_settings
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-13 01:02:16 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-13 01:02:16 +0000
commit6e78b8fb472dc5ff8b586911d5ad06cb12aaea4e (patch)
treeba8933f6619db4c3f58f59523dfa112cf7a5b6fe /tidypics_settings
parenta80882a24895f9e2fd7447ca46d089d94d217c46 (diff)
downloadelgg-6e78b8fb472dc5ff8b586911d5ad06cb12aaea4e.tar.gz
elgg-6e78b8fb472dc5ff8b586911d5ad06cb12aaea4e.tar.bz2
added a new plugin that allows users to set an extensive list of (future) parameters and not have to worry about upgrades
Diffstat (limited to 'tidypics_settings')
-rw-r--r--tidypics_settings/manifest.xml10
-rw-r--r--tidypics_settings/readme.txt27
-rw-r--r--tidypics_settings/start.php35
3 files changed, 72 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plugin_manifest>
+ <field key="author" value="Gabriel Monge-Franco and the TidyPics team." />
+ <field key="version" value="1.5.1" />
+ <field key="description" value="Tidypics Settings Plugin" />
+ <field key="website" value="http://code.google.com/p/tidypics/" />
+ <field key="copyright" value="2008-2009 Gabriel Monge-Franco" />
+ <field key="licence" value="GNU General Public License version 3" />
+ <field key="elgg_version" value="2009022701" />
+</plugin_manifest>
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 @@
+<?php
+ /**
+ * Elgg tidypics_settings plugin
+ *
+ * Only uncomment and change settings that you want to change.
+ *
+ */
+
+ // setup tidypics settings object
+ global $CONFIG;
+ if (!isset($CONFIG->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