diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-09-09 00:58:37 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-09-09 00:58:37 +0000 |
commit | 5ccb3887f61af7b670f0fafe077401529c141700 (patch) | |
tree | 9c5279c63cdc38b8fd1ec7d42e444d641e8b9460 /views/default/tidypics/admin/thumbnails.php | |
parent | ce396a3cf4cce3e74b79bb4c4512066404034c47 (diff) | |
download | elgg-5ccb3887f61af7b670f0fafe077401529c141700.tar.gz elgg-5ccb3887f61af7b670f0fafe077401529c141700.tar.bz2 |
added ability to create thumbnails for images that previously failed
Diffstat (limited to 'views/default/tidypics/admin/thumbnails.php')
-rw-r--r-- | views/default/tidypics/admin/thumbnails.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/views/default/tidypics/admin/thumbnails.php b/views/default/tidypics/admin/thumbnails.php new file mode 100644 index 000000000..0af59090e --- /dev/null +++ b/views/default/tidypics/admin/thumbnails.php @@ -0,0 +1,33 @@ +<br />
+<h3>Overview</h3>
+<p>
+This page allows you to create thumbnails for images when the thumbnail creation failed during upload.
+You may experience problems with thumbnail creation if your image library in not configured properly or
+if there is not enough memory for the GD library to load and resize an image. If your users have
+experienced problems with thumbnail creation and you have modified your setup, you can try to redo the
+thumbnails. Find the unique identifier of the photo (it is the number near the end of the url when viewing
+a photo) and enter it below.
+</p>
+<h3>Thumbnail Creation</h3>
+<p>
+<b><?php echo elgg_echo('tidypics:settings:im_id'); ?></b>:
+<input name="image_id" type="text" />
+<input type="submit" value="Submit" onclick="TestThumbnailCreation();" />
+</p>
+<div id="im_results"></div>
+<script type="text/javascript">
+function TestThumbnailCreation()
+{
+ var image_id = $('input[name=image_id]').val();
+ $("#im_results").html("");
+ $.ajax({
+ type: "GET",
+ url: "<?php echo $CONFIG->wwwroot . 'mod/tidypics/actions/create_thumbnails.php'; ?>",
+ data: {guid: image_id},
+ cache: false,
+ success: function(html){
+ $("#im_results").html(html);
+ }
+ });
+}
+</script>
\ No newline at end of file |