FAQ.txt 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. White screen when uploading images
  2. ==================================
  3. Tidypics tries to calculate the maximum size of an image that your server will support. If it
  4. guesses incorrectly and someone uploads a photo that is too large, the script may crash when
  5. resizing the image if you are using GD. The easiest way to test this is to set display_errors
  6. to 1 in your .htaccess file and upload large images. If this causes a problem, a php memory error
  7. should display on the screen. You can increased your php memory limit. A better option is to use
  8. imagick if your server supports it (again see the docs directory).
  9. If it is not a memory issue, you should see some other error appear. Once you have fixed the error,
  10. change display_error back to 0.
  11. Question mark images appear
  12. ===========================
  13. If you see question mark images when you look at your albums, this means the resizing of the images
  14. failed. This could be due to the memory limits as described above. There are other causes. Tidypics
  15. tries to detect these problems and write the cause to the error log. You should check your server
  16. error log right after an upload that results in a question mark for these error messages. The messages
  17. will begin with "Tidypics warning:". It is possible if you have turned off php warnings that you will
  18. not see these warnings.
  19. Another possible cause is using command line ImageMagick when your server does not
  20. support it or specifying the wrong path to the ImageMagick executables.
  21. Unable to save settings
  22. =======================
  23. If you are unable to settings, Apache may be configured to block pages that use
  24. file paths as Tidypics does when setting the location of the ImageMagick executable.
  25. In this case, leave that field blank.
  26. Latest photos and latest albums widgets on index page
  27. =====================================================
  28. You can either use the Widget Manager plugin to add these widgets to the index page or in case you
  29. don't use this plugin you can also add them with customizing the Custom Index plugin index page. For
  30. adding the widgets with the Custom Index you need to add the following code to the file
  31. mod/custom_index/views/default/page/layouts/custom_index.php:
  32. <pre><code>// Tidypics latest photos
  33. if (elgg_is_active_plugin('tidypics')) {
  34. $latest_photos = tp_get_latest_photos(6);
  35. $latest_images .= elgg_view('output/url', array('href' => "/photos/siteimagesall",
  36. 'text' => elgg_echo('link:view:all'),
  37. 'is_trusted' => true,
  38. ));
  39. echo elgg_view_module('featured', elgg_echo("tidypics:mostrecent"), $latest_photos, $mod_params);
  40. }</code></pre>
  41. <pre><code>// Tidypics latest albums
  42. if (elgg_is_active_plugin('tidypics')) {
  43. $latest_albums = tp_get_latest_albums(6);
  44. $latest_albums .= elgg_view('output/url', array('href' => "/photos/all",
  45. 'text' => elgg_echo('link:view:all'),
  46. 'is_trusted' => true,
  47. ));
  48. echo elgg_view_module('featured', elgg_echo("tidypics:albums_mostrecent"), $latest_albums, $mod_params);
  49. }</code></pre>
  50. Where to add these lines depends on where you want the widgets to appear on your index page. You can also adjust
  51. the number of photos or albums respectively that will shown in the widgets by changing the parameter of
  52. tp_get_latest_photos() and tp_get_latest_albums() to the desired number.