Giter Site home page Giter Site logo

tidypics's Introduction

Tidypics plugin for Elgg 5.0 and newer Elgg 5.X

Latest Version: 5.0.1
Released: 2024-05-07
Contact: [email protected]
License: GNU General Public License version 2
Copyright: (c) iionly 2013, (C) Cash Costello 2011

Description

The photo gallery plugin for Elgg 5.0 (and later versions 5.X).

Features

  • Photos organized in albums or group albums,
  • Commenting on photos and albums,
  • Tagging (members or word tags),
  • Slideshow,
  • Watermarking,
  • Upload multiple photos at once (HTML5/HTML4 uploader or web form),
  • Sorting photos in albums,
  • RSS feeds,
  • Notifications on new uploads,
  • Activity (river) integration,
  • Views counter,
  • Exif data support,
  • Userpoints support (requires Elggx Userpoints plugin),
  • Various listing options (All/Mine/Friends photos, All/Mine/Friends albums, listing photos sorted by number/date of views, number/date of comments, number/date/average of ratings),
  • Admin Customization: supports GD, Imagick and ImageMagick, quotas, size restrictions, and more.

Installation and configuration

  1. If you have a previous version of the tidypics plugin installed, first disable the Tidypics plugin on your site, then remove the tidypics folder from the mod folder on your server before installing the new version!
  2. Copy the tidypics plugin folder into the mod folder on your server,
  3. Enable the plugin in the admin section of your site,
  4. Check if there's an "Upgrade" button visible on the Tidypics plugin settings page and if yes, FIRST make a DATABASE BACKUP and then execute the upgrade.
  5. Configure the plugin settings.

tidypics's People

Contributors

beck24 avatar benaesan avatar facyla avatar hypejunction avatar iionly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tidypics's Issues

Page numbers not displaying properly

I'm running Elgg 1.11.1 with Tidy Pics 1.10.6. I've tried clearing the cache.

Where page 6 and 7 would be it just has a blank box for page six and no box for page seven. If you click "Next" it just repeats instead of showing 9, 10, 11 etc.

photos page number

Why not show a preview

Why not display the pictures while sharing the link on Facebook and other sites?
Why not show a preview of GIF files

download photo comes in resize not in original

hello..
i have upload pic of 1MB but when i am downloading that same pic then it is comes in approx 170Kb
so is your plugin is resizing pic after upload or upload time ?

can i get same as original ?
what change i required to do in plugin ?

Thanks
Dipen

subtype is not being checked for photo views, causing errors

if a user attempts to view a photo using a guid that is for a different type of elgg entity (e.g. a blog) - which occurred on my site for unknown reasons - the outcome is that they will see a fatal error.
the subtype needs to be checked to ensure it is a tidypics image in file: /resources/tidypics/photos/image/view.php

if ((!$photo)||(!elgg_instanceof($photo, 'tidypicsImage'))) {

Issue with profile page on activation

Ok, so i really want to use this plugin but when i activate it, for some reason the profile pages of all users shows "This page isnt working" on chrome and other messages on other browsers. I think this has something to do with a widget but im not sure. Any fix for this?

In Elgg 1.9.6, changed Group Access permissions not obeyed by Tidypics photos & albums

Create a Group ABC by User A
Set "Accessibility of group content" :Unrestricted
Create a Group Album
Upload a photo 'xyz' to this album
Let user B (who is not a friend of user A) visit /photos/siteimagesall and/or visit the photo page of photo 'xyz'
User B can see this photo and this is expected as the Group had Unrestricted Access
Now User A sets "Accessibility of group content" :Members only
User B cannot see the Group ABC activities, blog etc
BUT when user B visits the /photos/siteimagesall and/or visits the photo page of photo 'xyz' user B can still see this photo

However, a blog post cannot be anymore seen if a Group has been made Members only.
Can we please make the photo post (albums and or photo) change access permissions when the Group permissions also change like core Blog / File etc?

If not ( or even if yes) can Tidypics settings have a control to set off Group photo (and album) if wanted by the site super admin?

SEO - navigation arrows are missing the 'is_trusted' option

i am fixing various SEO issues on my site and found that the prev/next buttons in tidypics are lacking an 'is_trusted' option on the call to 'output/url'. SEO best practise requires that 'no follow' tags are not present for internal links.

Errors when installed on Elgg 3.3.7

Dear Tidypics developer,
I am using Elgg version 3.3.7 and tried to install the latest version of Tidypics 2.3.6. I renamed the folder and checked the permissions. The plugin installed correctly but when I tried to activate it, I got an error message. Checking the server error log showed the following 13 errors. I understand that a lot of functions in Elgg were changed from version 2 to version 3 due to the need to update to PHP 7. I am hoping that providing this error log will make it a little easier for you to update this important plugin. Here is the error log showing the locations of the 13 errors.
[10-Jul-2020 10:38:20 America/New_York] [2020-07-10 10:38:20] ELGG.CRITICAL: Exception at time 1594391900:
Error: Call to undefined function get_subtype_id() in /home/ourcommunitynetw/public_html/mod/tidypics/activate.php:10
Stack trace:
#0 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Includer.php(39): require_once()
#1 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Application.php(155): Elgg\Includer::requireFileOnce('/home/ourcommun...')
#2 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/ElggPlugin.php(937): Elgg\Application::requireSetupFileOnce('/home/ourcommun...')
#3 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/ElggPlugin.php(683): ElggPlugin->includeFile('activate.php')
#4 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/actions/admin/plugins/activate.php(26): ElggPlugin->activate()
#5 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Router.php(347): include('/home/ourcommun...')
#6 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Router.php(278): Elgg\Router->getResponseFromFile('/home/ourcommun...', Object(Elgg\Request))
#7 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Router.php(128): Elgg\Router->prepareResponse(Object(Elgg\Http\Request))
#8 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Router.php(104): Elgg\Router->getResponse(Object(Elgg\Http\Request))
#9 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Application.php(473): Elgg\Router->route(Object(Elgg\Http\Request))
#10 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Application.php(359): Elgg\Application->run()
#11 /home/ourcommunitynetw/public_html/vendor/elgg/elgg/engine/classes/Elgg/Application.php(415): Elgg\Application::route(Object(Elgg\Http\Request))
#12 /home/ourcommunitynetw/public_html/index.php(8): Elgg\Application::index()
#13 {main}
{"exception":"[object] (Error(code: 0): Call to undefined function get_subtype_id() at /home/ourcommunitynetw/public_html/mod/tidypics/activate.php:10)"} {"backtrace":[],"process_id":150057,"memory_peak_usage":"24.46 MB","memory_usage":"24.46 MB","url":"/action/admin/plugins/activate?plugin_guids%5B0%5D=152&__elgg_ts=1594391892&__elgg_token=y2OVOaYeYULqtPoDKOdLSw","ip":"76.121.122.172","http_method":"POST","server":"ourcommunitynetwork.org","referrer":"https://ourcommunitynetwork.org/admin/plugins"}

fix for corrupted gif animations needs to be integrated

i just noticed that when i upgraded to tidypics for elgg 2.1 i had lost the fix for the corrupted gif animations that we went through on the elgg community for elgg v 1.12. it would be great to integrate the fix into the main version of tidypics.

Move files to root dir

Everything being under a tidypics subfolder makes it harder to just git clone the repo into my Elgg site. Putting all the plugin files at the root level of the package would help alleviate that pain.

'Download photo' not working

First off, thank you iionly for updating this plugin.

I downloaded the latest version of tidypics for Elgg 3.3.8 and tested the plugin. One issue I found is that 'Download photo' function open the photo to view instead of downloading the photo.

To make it work, I changed the 'href' value of 'download' menu from 'photos/download/$photo_guid' to '$photo->getDownloadURL()' in mod/tidypics/views/default/resources/tidypics/photos/image/view.php.

Thanks!

Add upgrade to re-run the comments upgrade to catch entitities possibly missed on first run due to Elgg core bug

Elgg core possibly hasn't converted all comment annotations to entities. With this core issue fixed in Elgg 1.9.X it's necessary to repeat at least part of tidypics/upgrades/2014040301.php.

To do:

  • wait until comment upgrade is fixed in Elgg core and then make this Elgg version the minimum version requirement,
  • evaluate tidypics/upgrades/2014040301.php to find out if any damage has been made by running the Tidypics upgrade prior the comments migration,
  • add a second Tidypics upgrade script to be run after the comments migration in Elgg core has been finished,
  • Possibly to block running the Tidypics upgrade if Elgg release indicates that comments migration has not been executed yet? Alternatively, maybe check for any comment annotations remaining and don't do the upgrade if there are any.

most commented images

Fatal error: Call to a member function getGUID() on null

/views/default/resources/tidypics/lists/mostcommentedimages.php
on line 40:

'href' => "ajax/view/photos/selectalbum/?owner_guid=" . $$logged_in_user->getGUID(),

delete dollar-sign:

'href' => "ajax/view/photos/selectalbum/?owner_guid=" . $logged_in_user->getGUID(),

tidypics plus not working with tidypics 2.3.4

i have just installed v2.3.4 and now the "Mine or friends" photos don't show in photos but if i deactivate tidypics plus everything works again but without the plus actions obviously. I realize plus was never released as a version but it has been working thus far

Error in admin settings

when viewing the settings for this plugin in elgg 2.0 clicking on "Server configuration" and "Help" give a fatal error page.

`elgg:markdown is not a registered library

InvalidParameterException Object
(
[message:protected] => elgg:markdown is not a registered library
[string:Exception:private] => exception 'InvalidParameterException' with message 'elgg:markdown is not a registered library'`

Elgg 3.2

Any plans to release for elgg 3.2?

Superfluous title buttons

I find it unnecessary that when you're browsing an album, there are two buttons "Upload photos" and "Upload photos to this album".

Would you mind if I changed it so that when displaying a single album, it would have only "Upload photos" and it would add the new photos to the current album?

Single click breaks tagging

If a user starts the Tag feature and then clicks the image instead of selecting an area, the colorbox is opened and text can't be typed in the tag box (at least in FF and Safari). It acts as though the colorbox overlay has a higher z-index than the tidypics-tagging-select div -- though that isn't actually the case (1100 for the overlay vs 9999 for the tidypics div).

Once the colorbox overlay is closed, then it becomes possible to enter text in the tagging box.

Upgrade hangs on 1.9.4.1

On my 1.8.19 site, I:

  • disabled the Tidypics plugin on the admin page
  • removed the old mod/tidypics folder, replaced it with version 1.9.4.1
  • upgraded my site to 1.9.5
  • re-enabled the Tidypics plugin
  • ran the site upgrade scripts (including the Comments upgrade)
  • ran the Tidypics upgrade script (clicked the 'Upgrade' link on admin/Tidypics/Settings page)

The upgrade hangs on step 4/5 of upgrades/2014111701.php. The 'foreach ($batch as $album_comment)' loop repeats infinitely on the first chunk of 25 items. $river_entry_count is == 1 on all 25 items, so we never call $album_comment->delete() (not that it should matter, since $batch->setIncrementOffset(false) was set).

publish in packagist

Could you maybe publish the plugin in packagist, this will make for easier installation using composer

FR : allow the admin to set different display for "all" and "mine" river

When we see the site activity tab - All Site Activity - it is okay to see multiple thumbnails in a single entry in river so that one user is not too much "polluting" the river.
However in the activity stream of the individual users (except the activity widget which has a narrow and small display) bigger thumbnails and single photo per entry may be set optionally. This will help users who are mainly using photo and mainly wants a photo-stream.

Since this plugin is all about photo and images, it will be really good to have this usability.

elgg_load_js('tidypics') does not always result in file being loaded?!

i just added a feature to my site where the profile image on the profile pages loads in a lightbox when clicked. i used the tidypics approach to images/lightboxes to do this, but found that on my production server, the JS file fails to be loaded in the page footer (or at all) and so the feature fails.
on my development server this works fine.
i have done some surface digging but haven't found a cause for this yet. it may be that this is nothing to do with tidypics code, but at present tidypics is my starting point.

Is PHP 7 Supported?

When testing TidyPics in a php:apache docker container, I get this error:

web_1    | [Thu Dec 21 04:43:58.142118 2017] [php7:error] [pid 26] [client 172.23.0.1:56470] PHP Fatal error:  Declaration of TidypicsAlbum::delete() must be compatible with ElggEntity::delete($recursive = true) in /var/www/html/mod/tidypics/classes/TidypicsAlbum.php on line 0, referer: http://localhost:8000/photos/add/42
web_1    | 172.23.0.1 - - [21/Dec/2017:04:43:58 +0000] "POST /action/photos/album/save HTTP/1.1" 500 319 "http://localhost:8000/photos/add/42" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"

I tried a couple different releases: https://elgg.org/plugins/385077/releases/2553279/download and https://elgg.org/plugins/385077/releases/2595533/download

When I switch the image to php:5-apache, the problem goes away.

Judging from Elgg/Elgg#11434 Elgg core is moving to php 7. But I haven't dug very deep into it yet, so maybe it isn't quite there?

Anyway, apologies if this question should have gone elsewhere. I'm brand new to the Elgg community, so I haven't figured out all the ropes yet. :)

Comments get duplicated in albums and image patches

If I add a comment to an image patch, the same comment gets duplicated to the album - and vice versa.

Is this by design or was it difficult to implement it so that they would have separate comments?

Consider the scenario:

  1. I create the album "My pets", and I add images of my dog to it
  2. Someone leaves the comment "Your dog is cute!" on the album
  3. Next day I upload an image of my cat
  4. Now the river item that displays a cat has the comment "Your dog is cute!" which makes no sense

"Photos you're tagged in" doesn't work

The menu option "Photos you're tagged in" doesn't work. I have found that in the '/views/default/resources/tidypics/photos/tagged.php' file is not coming as a parameter the ID of the user logged in, so this function is not showing anything when it should show the photos where you're tagged in.

in Elgg 4.0 error: TidypicsAlbum::save() must be compatible with ElggEntity::save(): bool

I installed a fresh Elgg 4.0 (without other external plugins, but only the bundled plugins with the version 4.0)
and when I activate Tidypics from Plugins I got this error from the server

[error] [client ] - www.pantabook.com - AH01215: PHP Fatal error: Declaration of TidypicsAlbum::save() must be compatible with ElggEntity::save(): bool in /web/htdocs/www..com/home/mod/tidypics/classes/TidypicsAlbum.php on line 43: /web/htdocs/www..com/home/index.php

FR : Allow end-users to unpublish river activity

Allow end-users to un-publish river activity for the images they do not want to show on the river. This probably can be done in one of the two ways :

  • provide a delete icon on hover in the river (Hypewall etc does this) beside each entry (containing single or multiple thumbnails)
  • or, at the time of saving a photo, untick (unckeck) "publish to river" option ( FB etc do this)

Error while opening "Mine" and "Friends" links from siteimageall page

get_entity(): Argument #1 ($guid) must be of type int, string given, called in /home/xxx/public_html/mod/tidypics/views/default/resources/tidypics/lists/siteimagesowner.php on line 11

Elgg version: 5.1.5
Tidypic version: 5.0.0

How to reproduce the error:

  1. Visit https://site.com/photos/siteimagesall
  2. Click on "Mine" option from the elgg menu filter.
  3. The same error occurs when clicked on "Friends" option from the elgg menu filter.

eregi_replace is not compatible with PHP7

i just found that the function eregi_replace is called in classes/tidypicsAlbum.php and it has been dropped from PHP7. it appears the solution is to just use preg_replace with the same parameters instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.