[Elgg 1.5-1.12 & 2.X: Tidypics] v1.8.0 rc1

Release Notes

Updated for Elgg 1.8

Thanks to Brett for significant contributions. Make sure you run the upgrade script.

This is a release candidate which means there is not going to be any significant development before the final 1.8 release. Changes will be bug fixes.

Please make useful bug reports (report browser information if browser related, report server information if server related).

  • @Vextah: the inconsistent handling of watermarks (original image not watermarked) is an issue I've not yet fixed in my version of Tidypics (https://community.elgg.org/plugins/1194049/1.8.1beta15/elgg-1819-tidypics) yet but it's on my Todo list (to be dealt with when I have time). It's not a trivial issue as there are possible consequences either way you solve it (e.g.: watermark the original image results in the unmodified image no longer available for possible future tasks or keeping additionally an unmodified copy resulting in larger disc space requirements).

    For the time being you could turn off the display of the full size image (i.e. the unmodified / not watermarked image) by modifying mod/tidypics/views/default/icon/object/image.php. In this file you find the following lines:

    $url = isset($vars['href']) ? $vars['href'] : $entity->getURL();
    if (isset($vars['href'])) {
        $url = $vars['href'];
    }

    Comment out these lines and add a

    $url = false;

    below.

    This should make the large images "unclickable". Additionally, you would have to turn off the slideshow feature in the Tidypics plugin settings because the original full size images are used in slideshows.

  • Is there any folder permission that I need to take care of? I have installed it, creation of album and uploading of images went smooth. However, thumbnail did not show and link to the image was broken.

  • Hi

     Could this plugin add youtube videos?

  • Thanks for your awesome work. I want to upgrade my elgg 1.8.16 to 1.8.19 and tidypics 1.8.1beta2 to 1.8.0 rc1. My question is about my images: can I upgrade 1.8.1beta2 to 1.8.0rc1 and keep all my albums and images created and uploaded previously? Thanks for answering.

  • @botoson: Tidypics is for photos only and not for videos. But there are video plugins available for Elgg, too. Just make a search in the plugin section. Possible candidates:

    @Jorge: as the version number already indicates... Tidypics 1.8.0rc1 is OLDER than 1.8.1beta2!!! Therefore, it doesn't make sense to DOWNGRADE as you will have MORE BUGS instead of less bugs. Additionally, Tidypics 1.8.0rc1 will most likely not work on recent versions of Elgg anymore at all.

    Latest release of Tidypics is 1.8.1beta15 available at https://community.elgg.org/plugins/1194049/1.8.1beta15/elgg-1819-tidypics.

  • Thank you iionly. I thought that was a difference between  the name with "beta" and without "beta"... I will proceed then with 1.8.1beta15! Thank you!

  • Thanks for this plugin. It works great.

  • Hi,

    Can we set any album photo as a avatar (Profile Picture) using this plugin?

    Thanks in advance.

  • this plugin doesn´t work for me in elgg 1.8.1.9

    show no graphics, it is all the time empty

    also i use the easy theme for the site, may be it has to do with this???

    please help,

    thanks in advance


     

  • @petrabonn: use my newer version of Tidypics (https://community.elgg.org/plugins/1194049/1.8.1beta16/elgg-1819-tidypics) as this version here does not work on recent versions of Elgg anymore. Additionally, I've fixed quite a number of other bugs, too.

  • I am trying to use this plugin on my site at www.myGallerySpace.com and when I upload a photo, it doesnt show up... instead I have an image of a square with a question mark in it. can someone help me?

     

  • @Shawn: this version of Tidypics here is outdated. Try the newer version available at https://community.elgg.org/plugins/1194049/1.8.1beta16/elgg-1819-tidypics.

  • There is a issue with UPPERCASE extension file upload. ie (image.JPG)

    is there any patch for that ?

  • @Ehsan Works for me on the latest release regardless if jpg or JPG. Which version of Tidypics are you using? If not the latest release, does an update fixt the issue?

  • Hi,

    Elgg version: 1.12

    Tidypics version : 1.10.8

    Works fine with files smaller than 1.8M but with bigger pictures the last step page doesn't load and files aren't saved. Does someone know about this issue?

    Edit: Looking to previous posts it seems that in fact its the .jpg .JPG issue.

    Well after trying to rename them... Seems that it's not an extension probem but a size file.

  • @Fred My guess is that post_max_size is set too small on your Elgg installation to allow for processing of larger images. Increase post_max_size in Elgg's .htaccess file. Also check on the Tidypics settings page on the server info tab if the value set for post_max_size in .htaccess is correctly used. For larger images you might also get a problem with memory_limit if you use the GD php extension as image library for creation of thumbnails in Tidypics. To a certain extend the memory issue can be solved by increasing memory_limit in .htaccess. But of course the memory might still be too small for very, very large images (not necessarily by filesize but by image resolution in the first place). In case of memory issues using one of the other image library options instead of GD php extension is the only possible soiution (if they are available on the server).

  • Hi masters!
    Today i fix bug with encoding, 

    // OLD FILE 

    <?php
    /**
     * Full view of an album
     *
     * @uses $vars['entity'] TidypicsAlbum
     *
     * @author Cash Costello
     * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
     */

    $album = elgg_extract('entity', $vars);
    $owner = $album->getOwnerEntity();

    $owner_icon = elgg_view_entity_icon($owner, 'tiny');

    $metadata = elgg_view_menu('entity', array(
        'entity' => $album,
        'handler' => 'photos',
        'sort_by' => 'priority',
        'class' => 'elgg-menu-hz',
    ));

    $owner_link = elgg_view('output/url', array(
        'href' => "photos/owner/$owner->username",
        'text' => $owner->name,
        'is_trusted' => true,
    ));
    $author_text = elgg_echo('byline', array($owner_link));
    $date = elgg_view_friendly_time($album->time_created);
    $categories = elgg_view('output/categories', $vars);

    $subtitle = "$author_text $date $categories";

    $params = array(
        'entity' => $album,
        'title' => false,
        'metadata' => $metadata,
        'subtitle' => $subtitle,
        'tags' => elgg_view('output/tags', array('tags' => $album->tags)),
    );
    $params = $params + $vars;
    $summary = elgg_view('object/elements/summary', $params);

    $body = '';
    if ($album->description) {
        $body = elgg_view('output/longtext', array(
            'value' => $album->description,
            'class' => 'mbm',
        ));
    }

    $body .= $album->viewImages();

    $body .= elgg_view_comments($album);
    echo elgg_view('object/elements/full', array(
        'entity' => $album,
        'icon' => $owner_icon,
        'summary' => $summary,
        'body' => $body,
    ));
    // END OLD FILE 
     

    // FIXED FILE //

     

    <?php
    /**
     * Full view of an album
     *
     * @uses $vars['entity'] TidypicsAlbum
     *
     * @author Cash Costello
     * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
     */

    $album = elgg_extract('entity', $vars);
    $owner = $album->getOwnerEntity();

    $owner_icon = elgg_view_entity_icon($owner, 'tiny');

    $metadata = elgg_view_menu('entity', array(
        'entity' => $album,
        'handler' => 'photos',
        'sort_by' => 'priority',
        'class' => 'elgg-menu-hz',
    ));

    $owner_link = elgg_view('output/url', array(
        'href' => "photos/owner/$owner->username",
        'text' => $owner->name,
        'is_trusted' => true,
    ));
    $author_text = elgg_echo('byline', array($owner_link));
    $date = elgg_view_friendly_time($album->time_created);
    $categories = elgg_view('output/categories', $vars);

    $subtitle = "$author_text $date $categories";

    $params = array(
        'entity' => $album,
        'title' => false,
        'metadata' => $metadata,
        'subtitle' => $subtitle,
        'tags' => elgg_view('output/tags', array('tags' => $album->tags)),
    );
    $params = $params + $vars;
    $summary = elgg_view('object/elements/summary', $params);

    $body = '';
    if ($album->description) {
        $body = elgg_view('output/longtext', array(
            'value' => $album->description,
            'class' => 'mbm',
        ));
    }

    $body .= $album->viewImages();

    $body .= elgg_view_comments($album);

    /*

    FOR ALL WHO NEED WIN1251  ADD THIS  

    $body = mb_convert_encoding($body, "UTF-8", "UTF-8"); 

    */

    $body = mb_convert_encoding($body, "UTF-8", "UTF-8"); 


    echo elgg_view('object/elements/full', array(
        'entity' => $album,
        'icon' => $owner_icon,
        'summary' => $summary,
        'body' => $body,
    ));

     

     

     

     

     

  • @raio I'm not sure what I'm supposed to think about the fix you have suggested.

    To begin with, I don't understand what the problem is you are trying to fix. Is it a very specific issue only for you or is it something that will also show up for others? I just want that people do not modify the code of Tidypics on their sites when not necessary - or worse even break stuff for them!

    Secondly, what version of Tidypics is the fix supposed to be used with? Is it for version 1.8.0-rc1? This is a very, very outdated version of Tidypics for a version of Elgg no longer supported already since quite some time. Is the same problem also showing up on newer versions of Tidypics - and also important also on versions of Elgg still supported, namely Elgg 1.12 or Elgg 2.3?

  • Sorry for my bad english but you can check this image for more info. This plugin have problem with cirilic encoding.
    Image link: https://postimg.org/image/wvh69k6dr/
    I use plugin version: 1.9

  • @raio The album names and image names are shortened on the gallery pages of albums and images and in the dropdown menu of the album selection popup on image uploads. This shortening of the names might be the problem. Can you tell me if the gallery pages of images and albums and the dropdown menu are the only places the problem occurs? Are the album names and images names respectively displayed correctly otherwise when not shortened? I would need to know to figure out a solution (as I don't think the fix you suggested makes sense).

  • @raio There is a change necessary in the code that shortens the album names / image names. In the files mod/tidypics/views/default/photos/selectalbum.php, mod/tidypics/views/default/object/image/summary.php and mod/tidypics/views/default/object/album/gallery.php you will find a line where the subst() function is used to shorten the titles. Instead of subst() the function mb_subst() needs to be used for the shortening to work without issues for utf characters (like cyriclic).

    For example

    $album_title = substr($album_title, 0, 17).'...';

    has to be changed to

    $album_title = mb_substr($album_title, 0, 17, "utf-8") . "...";

    The corresponding change has to be made in all 3 files (with only a difference in the variable name used). Then the output should look fine.

Stats

  • Category: Photos and Images
  • License: GNU General Public License (GPL) version 2
  • Updated: 2017-1-8
  • Downloads: 123474
  • Recommendations: 258

Other Projects

View iionly's plugins