Opened 19 years ago
Closed 11 years ago
#2923 closed Patch - Feature (Won't Fix)
New gallery module for mythweb
| Reported by: | 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)
Change History (30)
by , 19 years ago
| Attachment: | mythweb.gallery.patch added |
|---|
comment:1 by , 19 years ago
| Component: | mythtv → mythweb |
|---|---|
| Owner: | changed from to |
comment:2 by , 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 , 19 years ago
| Attachment: | mythweb.gallery.2.patch added |
|---|
patch with the updated gallery, apply after "mythweb.gallery.patch"
comment:3 by , 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 , 18 years ago
| Attachment: | mythweb_gallery_updated.patch added |
|---|
Updated patch see description below
comment:4 by , 18 years ago
Updated patch attached.
- Consolidated mythweb.gallery.patch and mythweb.gallery.2.patch
- Few fixed to allow to be applied to 13754 (should work with recent SVN)
- Fixed settings, so that defaults are set if there are no settings in the database
- Allow settings to be committed to database, but no need to if defaults work for you.
comment:6 by , 18 years ago
Updated patch attached. The changes are as follows:
- Updated for recent svn 14223 (English.lang and German.lang)
- 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.
- 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
- Remove header and footer from new window opened to display full size image.
by , 18 years ago
| Attachment: | mythweb_gallery_updated1.diff added |
|---|
comment:7 by , 18 years ago
| Milestone: | 0.21 → 0.22 |
|---|
comment:8 by , 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 , 18 years ago
| Attachment: | 2923-mythweb-gallery-English_GB_lang.diff added |
|---|
Adds English_GB language support to mythweb gallery module
comment:9 by , 18 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:10 by , 17 years ago
| Type: | enhancement → patch |
|---|
by , 17 years ago
| Attachment: | mythweb_gallery_symlink.diff added |
|---|
Patch to use symlinks for fullsize images, rather than duplicating files
comment:12 by , 17 years ago
| Component: | mythweb → Plugin - MythWeb |
|---|
follow-up: 14 comment:13 by , 16 years ago
| Milestone: | 0.22 → 0.23 |
|---|
comment:14 by , 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 , 16 years ago
| Attachment: | mythweb-gallery-module (trunk 23580).patch added |
|---|
Patch to add a mythweb gallery module
comment:16 by , 15 years ago
| Milestone: | 0.24 → 0.25 |
|---|
comment:18 by , 15 years ago
| Milestone: | 0.25 → unknown |
|---|---|
| Version: | head → 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 by , 14 years ago
| Type: | patch → Patch - Feature |
|---|
comment:20 by , 11 years ago
| Resolution: | → Won't Fix |
|---|---|
| Status: | accepted → closed |
Given Mythweb is EOL, I'm closing new features. This should be done via the backend webserver now.

gallery module patch (against svn rev 12538)