[Elgg 1.5-1.12 & 2.X - 4.X: Tidypics] v1.5.1

Release Notes

The newest version of the Tidypics Photo Gallery. It has been updated for Elgg 1.5.

1.5.1 changes

  • fixed permissions override bug (thanks for those who verified the issue)
  • added "create album" button for widgets
  • changed default minimum filesize for image resizing to 2.5 MB (temporary until this code is rewritten) 

1.5 updates

  • improved css for new theme
  • ties in with activity river (only for album creation)
  • notifications for new album creation
  • grabs sitewide default access levels

Other changes

Rewrote a lot of core code - especially the page_handlers
More consistent menus
Fixed access bug on images that was making them private
Fixed group access bug that was prevent group members from adding/changing to albums
Many more bug fixes
Turkish language added (thanks to VeniVidiVinco)
German language file fixed (thanks to alfalive for that and bug fixes)


Other Improvements still to do

To upgrade:

  1. disable current plugin
  2. delete tidypics directory
  3. upload the code
  4. enable plugin

 This version has a hard coded limit on filesize inherited from previous versions. As pointed out in the comments, you can edit line 62 of tidypics/actions/upload.php to change this limit. The largest filesize will be determined by your server setup so you cannot just change it to a huge value and expect it to work. The current limit in this code is ~ 2.5 MB.

The next version will have a rewritten uploader that should be more robust and offer more feedback to the administrator on configuration options. We will also be adding in some hooks to allow for quotas.

  • Same database entry as on our test install.

    The code that gets run is the view in /views/default/annotation/annotate.php:


     $performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
     $object = get_entity($vars['item']->object_guid);
     $url = $object->getURL();
     $subtype = get_subtype_from_id($object->subtype);

     $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
     $string = sprintf(elgg_echo("river:posted:generic"),$url) . " ";
     $string .= elgg_echo("{$subtype}:river:annotate") . " <a href=\"" . $object->getURL() . "\">" . $object->title . "</a>";


    <?php echo $string; ?>

    If you are not seeing the link, it could be that the title of the image is not being set or Elgg is having difficulty pulling the object out of the database.

    Stick this code after $string .= elgg_echo("{....

    <begin code>

     if (!$object)
        error_log('unable to get image object');
      error_log('image url is ' . $object->getURL());
      error_log('image title is ' . $object->title);

    <end code>

    Then check your error log after viewing the activity.


  • @747 - thanks for looking into this. It sounds like an Elgg bug. We actually have no control over the link because it is coming from a core file. I'll look into what would fix that in the core and post a bug report on it.

  • I find that most of my users just upload albums and photos but do not give them titles. When there isn't a title, river activity is shown as "<User> has posted a comment on the image" and then there is no link or anything.  Looking at the source, there is an <a href></a> tag with a link to the image, but nothing in between (presumably because there is no title).

    Where can I go to edit this behavior so that it says "this image" instead of the (non-existant) title of the image?  Ditto with albums?

    I tried editing the annotate.php files found in views/default/river/object but they seem to have no effect whatsoever.  Even if I rename or delete these files, the river stuff still shows up the same?  I'm pretty lost here...

  • @SAABotage - will look into this. Thanks.

  • @Tidypics Team - thanks I anxiously await a solution.

  • hi

    For some reason now when i upload images i get the green box saying your images have been saved but then thats it no image?

  • You're probably trying to upload an image that is too large for your server configuration

  • hi i just activated this plugi and am getting this error

    • Deprecated in 1.7: extend_view() was deprecated by elgg_extend_view()!

    • Deprecated in 1.7: extend_view() was deprecated by elgg_extend_view()!

  • @Oluwamuyiwa: you are using a very outdated version of the Tidypics plugin which is not supposed for the recent versions of Elgg. Try the latest version (http://community.elgg.org/plugins/1194049/1.8.1beta12/elgg-1819-tidypics).


  • Category: Photos and Images
  • License: GNU General Public License (GPL) version 2
  • Updated: 2022-10-10
  • Downloads: 144942
  • Recommendations: 231

Other Projects

View iionly's plugins