Opened 11 years ago

Closed 4 years ago

#2923 closed Patch - Feature (Won't Fix)

New gallery module for mythweb

Reported by: trebor_s@… Owned by: Rob Smith
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@… 11 years ago.
gallery module patch (against svn rev 12538)
icons.tar.gz (14.4 KB) - added by trebor_s@… 11 years ago.
required icons
gallery_screenshot.jpg (86.1 KB) - added by trebor_s@… 11 years ago.
screenshot of the gallery
mythweb.gallery.2.patch (24.6 KB) - added by trebor_s@… 11 years ago.
patch with the updated gallery, apply after "mythweb.gallery.patch"
mythweb_gallery_updated.patch (48.4 KB) - added by maverik044 11 years ago.
Updated patch see description below
mythweb_gallery_updated1.diff (49.9 KB) - added by maverik044 11 years ago.
2923-mythweb-gallery-English_GB_lang.diff (2.0 KB) - added by Nick Morrott <knowledgejunkie(at)gmail(dot)com> 10 years ago.
Adds English_GB language support to mythweb gallery module
mythweb_gallery.diff (50.6 KB) - added by wstewart@… 10 years ago.
Updated for trunk 19056
mythweb_gallery_symlink.diff (1.6 KB) - added by anonymous 10 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 8 years ago.
Patch to add a mythweb gallery module

Download all attachments as: .zip

Change History (30)

Changed 11 years ago by trebor_s@…

Attachment: mythweb.gallery.patch added

gallery module patch (against svn rev 12538)

Changed 11 years ago by trebor_s@…

Attachment: icons.tar.gz added

required icons

Changed 11 years ago by trebor_s@…

Attachment: gallery_screenshot.jpg added

screenshot of the gallery

comment:1 Changed 11 years ago by anonymous

Component: mythtvmythweb
Owner: changed from Isaac Richards to xris

comment:2 Changed 11 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 11 years ago by trebor_s@…

Attachment: mythweb.gallery.2.patch added

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

comment:3 Changed 11 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 11 years ago by maverik044

Updated patch see description below

comment:4 Changed 11 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 11 years ago by stuartm

See #2301 for another gallery module patch.

comment:6 Changed 11 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 11 years ago by maverik044

comment:7 Changed 10 years ago by Rob Smith

Milestone: 0.210.22

comment:8 Changed 10 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 10 years ago by Nick Morrott <knowledgejunkie(at)gmail(dot)com>

Adds English_GB language support to mythweb gallery module

comment:9 Changed 10 years ago by Rob Smith

Owner: changed from xris to Rob Smith
Status: newaccepted

comment:10 Changed 10 years ago by Rob Smith

Type: enhancementpatch

Changed 10 years ago by wstewart@…

Attachment: mythweb_gallery.diff added

Updated for trunk 19056

comment:11 Changed 10 years ago by wstewart@…

Attached patch updated for trunk 19056

Changed 10 years ago by anonymous

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

comment:12 Changed 9 years ago by Rob Smith

Component: mythwebPlugin - MythWeb

comment:13 Changed 9 years ago by Rob Smith

Milestone: 0.220.23

comment:14 in reply to:  13 Changed 8 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 8 years ago by Robert S

Patch to add a mythweb gallery module

comment:15 Changed 8 years ago by robertm

Milestone: 0.230.24

Pushing to .24 since we're in freeze.

comment:16 Changed 8 years ago by Rob Smith

Milestone: 0.240.25

comment:17 Changed 8 years ago by stuartm

Milestone: 0.25

Milestone 0.25 deleted

comment:18 Changed 7 years ago by Rob Smith

Milestone: 0.25unknown
Version: headTrunk 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 7 years ago by stuartm

Type: patchPatch - Feature

comment:20 Changed 4 years ago by Rob Smith

Resolution: Won't Fix
Status: acceptedclosed

Given Mythweb is EOL, I'm closing new features. This should be done via the backend webserver now.

Note: See TracTickets for help on using tickets.