Opened 19 years ago

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

Download all attachments as: .zip

Change History (30)

by trebor_s@…, 19 years ago

Attachment: mythweb.gallery.patch added

gallery module patch (against svn rev 12538)

by trebor_s@…, 19 years ago

Attachment: icons.tar.gz added

required icons

by trebor_s@…, 19 years ago

Attachment: gallery_screenshot.jpg added

screenshot of the gallery

comment:1 by anonymous, 19 years ago

Component: mythtvmythweb
Owner: changed from Isaac Richards to xris

comment:2 by trebor_s@…, 19 years ago

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.

by trebor_s@…, 19 years ago

Attachment: mythweb.gallery.2.patch added

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

comment:3 by tbrminsanity, 19 years ago

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.

by maverik044, 18 years ago

Updated patch see description below

comment:4 by maverik044, 18 years ago

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 by stuartm, 18 years ago

See #2301 for another gallery module patch.

comment:6 by maverik044, 18 years ago

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.

by maverik044, 18 years ago

comment:7 by Rob Smith, 18 years ago

Milestone: 0.210.22

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

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.

by Nick Morrott <knowledgejunkie(at)gmail(dot)com>, 18 years ago

Adds English_GB language support to mythweb gallery module

comment:9 by Rob Smith, 18 years ago

Owner: changed from xris to Rob Smith
Status: newaccepted

comment:10 by Rob Smith, 17 years ago

Type: enhancementpatch

by wstewart@…, 17 years ago

Attachment: mythweb_gallery.diff added

Updated for trunk 19056

comment:11 by wstewart@…, 17 years ago

Attached patch updated for trunk 19056

by anonymous, 17 years ago

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

comment:12 by Rob Smith, 17 years ago

Component: mythwebPlugin - MythWeb

comment:13 by Rob Smith, 16 years ago

Milestone: 0.220.23

in reply to:  13 comment:14 by Robert S, 16 years ago

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

by Robert S, 16 years ago

Patch to add a mythweb gallery module

comment:15 by robertm, 16 years ago

Milestone: 0.230.24

Pushing to .24 since we're in freeze.

comment:16 by Rob Smith, 15 years ago

Milestone: 0.240.25

comment:17 by stuartm, 15 years ago

Milestone: 0.25

Milestone 0.25 deleted

comment:18 by Rob Smith, 15 years ago

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 by stuartm, 14 years ago

Type: patchPatch - Feature

comment:20 by Rob Smith, 11 years ago

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.