Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many PRs merged & additional fixes #322

Merged
merged 44 commits into from
Jan 8, 2017

Conversation

gboudreau
Copy link
Contributor

@gboudreau gboudreau commented Jan 8, 2017

Hi,

I wanted to merge many of the already open PRs, and make some other changes & fixes, so I forked, cherry-picked the commits in many of the open PRs, and added my changes & fixes.

So merging this PR would merge the following PRs:
#315, #313, #312, #307, #289, #278, #270, #208

And add the following fixes & changes:

  • Bugfix: textfields in Info panel were too long (overlapping their buttons)
  • Bugfix: completely disable registration, don't just hide the page - Fixes Deny access to the registration if it has been disabled in the preferences #207
  • Bugfix: folders thumbnails were squashed because height was different than width
  • Bugfix: couldn't use the scroll bar in the header zone, because the header element was over it
  • Bugfix: RSS and menu buttons were too close from the right edges, when a scrollbar is present
  • Improvement: Made site name (logo) clickable, to go back home (same as 'albums' link in left menu)
  • Improvement: added some padding at the bottom of the menu, in order to not have anything hidden behind the browser's 'currently selected URL' tooltip
  • Improvement: Use Escape on keyboard to close the currently open photo

Other users who would want the above PRs in their PhotoShow installation can get the code from https://github.com/gboudreau/PhotoShow/tree/master

gboudreau and others added 30 commits January 7, 2017 20:51
…o not have anything hidden behind the browser's 'currently selected URL' tooltip
…nore -90 and rotate image.

- Fix and enable thumbnail rotation
Fixes thibaud-rohmer#307
Fixes thibaud-rohmer#312
- Changed DOCTYPE to HTML 5
- The charset attribute on the link element is obsolete. Use an HTTP Content-Type header on the linked resource instead.
- Element ul not allowed as child of element ul in this context.
- Stray end tag span.
- An img element must have an alt attribute, except under certain conditions.

Fixes thibaud-rohmer#278
Allow users in upload group but not in root to be able to upload

Fixes thibaud-rohmer#278
Added Delete confirmation dialog instead of deleting straight away

Fixes thibaud-rohmer#278
Added confirmation dialogs for rename, create, download, permissions and tokens buttons

Fixes thibaud-rohmer#278
basename will strip the first character if it is accented.
This commit add the mb_basename function, taken from https://bugs.php.net/bug.php?id=37268

This fixes:
- file renaming on upload when a file with the same name already exists
- comments and permissions ("éa.jpg" and "a.jpg" used the same file for comments/permissions)
- photospheres folder ("éPhotoSpheres" was matching "PhotoSpheres")
- file and folder name on the right menu
- file and folder name in the rename textbox
- filename in the left menu, the header and the RSS file
- filename when downloading a picture or a zip

The only remaining problem is with the exif infos on the right menu, but it is an external call to exif_read_data().
This add title for buttons on the ImageBar, RSS and right menubar.
The spinnger was generated on http://spiffygif.com/ with the following parameters:
- 8 lines
- corners 1.0
- trail 50
- rotate 0
- no shadow, halo
- black foreground, white background
- length 0
- width 10
- radius 18

Their license (at the bottom on the "Docs" tab) permits to use it on this project.
Some keys (left, right, up, space, escape) are always listened, making writing
or moving inside the rename input or comment textarea difficult.
This fixes thibaud-rohmer#248.
Anarky added 14 commits January 8, 2017 10:36
Before this commit, Menu::list_files() was returning only files considered
to be an image or a video, even with $hidden set to true.
Now we can get all the files a directory contains with a new option, in case
some code expects the previous behaviour.
…erything*

Now that Menu::list_files() is fixed, we can use it to effectively delete
everything, e.g. a thumbnail folder containing xml metadatas among others
files.
The return of self::Extension($file) was incorrectly checked, thus returning
the 0 at the end of the function.
This can cause problems, because `"foo" == 0` is true in PHP...
When a file or folder was renamed or deleted, its metadatas (tokens,
xml and thumbnail) were kept.
This commit will keep the Thumbs directory consistent with the picture
directory.
There is now a new div (#image_panel_table) inside #image_panel, encompassing
#bigimage and #image_bar.
This change was made to have dynamic resizing inside #image_panel, which
will help to display description (see next commit) with a variable height.

It should not change the page rendering, with the exception of a picture
displayed with a page height under 300px. Instead of reducing more and more
#image_panel, now a scrollbar appears.
This new feature is optional (but activated by default).
A new option added to the right menu permits to write a description, displayed
between the image/video and the navigation buttons, or under the header for a
folder.
When a description is empty, it is hidden using CSS to remove its padding.

The Description class is based on the Comments class.
When a comment or a description contained an ampersand, their saving was
throwing a warning:
"PHP Warning:  SimpleXMLElement::addChild(): unterminated entity reference"
An XML with an empty content ("<content/>") was created.
This fixes this problem; a thorough explanation can be read here:
http://stackoverflow.com/a/555039
The change in Video.php to set a width was mandatory for 4:3 screens,
otherwise the video stretched outside the screen.
@thibaud-rohmer
Copy link
Owner

Awesome grouping job. Okay, I'll check this one immediately, as I have a few minutes, and I'll try to merge it.

@thibaud-rohmer thibaud-rohmer merged commit cac707c into thibaud-rohmer:master Jan 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deny access to the registration if it has been disabled in the preferences
6 participants