Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 7 years ago

Last modified 3 years ago

#2923 accepted Patch - Feature

New gallery module for mythweb

Reported by: trebor_s@… Owned by: kormoc
Priority: minor Milestone: unknown
Component: Plugin - MythWeb Version: Master Head
Severity: medium Keywords: new gallery module
Cc: Ticket locked: no

Description

I have written my own gallery module from scratch.

The gallery module reads the image path from the database and shows the directories in an explorer style. dirs on the left with the numer of the subdirs, images in the center. the images are thumbnail that will be cached. the user can change how many images per page should be displayed, from 2x2 to 5x4.

and I can also reuse a lot of this code to write a new video module for mythweb. i just need a hint how to get the access control information from the backend.

I also attached a screenshot, so you can get an overview how the modules looks like with the grey theme.

Robert

Attachments (10)

mythweb.gallery.patch (47.9 KB) - added by trebor_s@… 7 years ago.
gallery module patch (against svn rev 12538)
icons.tar.gz (14.4 KB) - added by trebor_s@… 7 years ago.
required icons
gallery_screenshot.jpg (86.1 KB) - added by trebor_s@… 7 years ago.
screenshot of the gallery
mythweb.gallery.2.patch (24.6 KB) - added by trebor_s@… 7 years ago.
patch with the updated gallery, apply after "mythweb.gallery.patch"
mythweb_gallery_updated.patch (48.4 KB) - added by maverik044 7 years ago.
Updated patch see description below
mythweb_gallery_updated1.diff (49.9 KB) - added by maverik044 7 years ago.
2923-mythweb-gallery-English_GB_lang.diff (2.0 KB) - added by Nick Morrott <knowledgejunkie(at)gmail(dot)com> 6 years ago.
Adds English_GB language support to mythweb gallery module
mythweb_gallery.diff (50.6 KB) - added by wstewart@… 5 years ago.
Updated for trunk 19056
mythweb_gallery_symlink.diff (1.6 KB) - added by anonymous 5 years ago.
Patch to use symlinks for fullsize images, rather than duplicating files
mythweb-gallery-module (trunk 23580).patch (48.8 KB) - added by Robert S 4 years ago.
Patch to add a mythweb gallery module

Download all attachments as: .zip

Change History (29)

Changed 7 years ago by trebor_s@…

gallery module patch (against svn rev 12538)

Changed 7 years ago by trebor_s@…

required icons

Changed 7 years ago by trebor_s@…

screenshot of the gallery

comment:1 Changed 7 years ago by anonymous

  • Component changed from mythtv to mythweb
  • Owner changed from ijr to xris

comment:2 Changed 7 years ago by trebor_s@…

I changed the gallery preferences a bit. one has the option to edit how many images should be displayed and where the thumbnails are cached. this is only valid for the current session, because i don't know if changes to the database for mythweb modules are ok.

i adjusted the data handling to your structure. i split the data and view in the set_prefs files.
this patch must be applied after the one i added before.

Changed 7 years ago by trebor_s@…

patch with the updated gallery, apply after "mythweb.gallery.patch"

comment:3 Changed 7 years ago by tbrminsanity

We needed to add php5-gd (ubuntu), php-gd (fedora) to get this patch to work. Before that it died at @imagecreatefromjpeg(). There were no error messages returned.

Changed 7 years ago by maverik044

Updated patch see description below

comment:4 Changed 7 years ago by maverik044

Updated patch attached.

  1. Consolidated mythweb.gallery.patch and mythweb.gallery.2.patch
  2. Few fixed to allow to be applied to 13754 (should work with recent SVN)
  3. Fixed settings, so that defaults are set if there are no settings in the database
  4. Allow settings to be committed to database, but no need to if defaults work for you.

comment:5 Changed 7 years ago by stuartm

See #2301 for another gallery module patch.

comment:6 Changed 7 years ago by maverik044

Updated patch attached. The changes are as follows:

  1. Updated for recent svn 14223 (English.lang and German.lang)
  2. Moved the bulk of the code out of gallery/tmpl/default to gallery/includes to be similar in organization to the other mythweb modules. Code from gallery/set_prefs.php also moved.
  3. Fixed initialization problem where it would throw an error if you didn't go first to the settings page so that the session variables are set
  4. Remove header and footer from new window opened to display full size image.

Changed 7 years ago by maverik044

comment:7 Changed 6 years ago by kormoc

  • Milestone changed from 0.21 to 0.22

comment:8 Changed 6 years ago by Nick Morrott <knowledgejunkie(at)gmail(dot)com>

I've been using this module for a while and hope we get a dedicated gallery module as part of 0.22.

For those users running this gallery module in MythWeb with the English_GB language support, I'm attaching a patch for mythplugins/mythweb/modules/_shared/lang/English_GB.lang with the necessary updates to allow this module to run without the NoTrans? warnings.

Patch is against r16505.

Changed 6 years ago by Nick Morrott <knowledgejunkie(at)gmail(dot)com>

Adds English_GB language support to mythweb gallery module

comment:9 Changed 6 years ago by kormoc

  • Owner changed from xris to kormoc
  • Status changed from new to accepted

comment:10 Changed 6 years ago by kormoc

  • Type changed from enhancement to patch

Changed 5 years ago by wstewart@…

Updated for trunk 19056

comment:11 Changed 5 years ago by wstewart@…

Attached patch updated for trunk 19056

Changed 5 years ago by anonymous

Patch to use symlinks for fullsize images, rather than duplicating files

comment:12 Changed 5 years ago by kormoc

  • Component changed from mythweb to Plugin - MythWeb

comment:13 follow-up: Changed 5 years ago by kormoc

  • Milestone changed from 0.22 to 0.23

comment:14 in reply to: ↑ 13 Changed 4 years ago by Robert S

Here is the new mythweb gallery patch for the trunk version 23580. It also includes the mythweb_gallery_symlink.diff from above.

Things that also need to be done:

  • Untar the icons in the mythweb path.
  • The directoy data/cache must exist in the mythweb folder
  • The image path must be set and readable by apache

Changed 4 years ago by Robert S

Patch to add a mythweb gallery module

comment:15 Changed 4 years ago by robertm

  • Milestone changed from 0.23 to 0.24

Pushing to .24 since we're in freeze.

comment:16 Changed 4 years ago by kormoc

  • Milestone changed from 0.24 to 0.25

comment:17 Changed 4 years ago by stuartm

  • Milestone 0.25 deleted

Milestone 0.25 deleted

comment:18 Changed 3 years ago by kormoc

  • Milestone changed from 0.25 to unknown
  • Version changed from head to Trunk Head

We're planning a full rewrite of the main mythweb template. This is going to be postponed until after that is complete.

comment:19 Changed 3 years ago by stuartm

  • Type changed from patch to Patch - Feature

Add Comment

Modify Ticket

Action
as accepted .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.