Opened 17 years ago
Closed 10 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)
Changed 17 years ago by
Attachment: | mythweb.gallery.patch added |
---|
comment:1 Changed 17 years ago by
Component: | mythtv → mythweb |
---|---|
Owner: | changed from Isaac Richards to xris |
comment:2 Changed 17 years ago by
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 17 years ago by
Attachment: | mythweb.gallery.2.patch added |
---|
patch with the updated gallery, apply after "mythweb.gallery.patch"
comment:3 Changed 17 years ago by
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 17 years ago by
Attachment: | mythweb_gallery_updated.patch added |
---|
Updated patch see description below
comment:4 Changed 17 years ago by
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 Changed 17 years ago by
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.
Changed 17 years ago by
Attachment: | mythweb_gallery_updated1.diff added |
---|
comment:7 Changed 16 years ago by
Milestone: | 0.21 → 0.22 |
---|
comment:8 Changed 16 years ago by
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 16 years ago by
Attachment: | 2923-mythweb-gallery-English_GB_lang.diff added |
---|
Adds English_GB language support to mythweb gallery module
comment:9 Changed 16 years ago by
Owner: | changed from xris to Rob Smith |
---|---|
Status: | new → accepted |
comment:10 Changed 16 years ago by
Type: | enhancement → patch |
---|
Changed 15 years ago by
Attachment: | mythweb_gallery_symlink.diff added |
---|
Patch to use symlinks for fullsize images, rather than duplicating files
comment:12 Changed 15 years ago by
Component: | mythweb → Plugin - MythWeb |
---|
comment:13 follow-up: 14 Changed 15 years ago by
Milestone: | 0.22 → 0.23 |
---|
comment:14 Changed 14 years ago by
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 14 years ago by
Attachment: | mythweb-gallery-module (trunk 23580).patch added |
---|
Patch to add a mythweb gallery module
comment:16 Changed 14 years ago by
Milestone: | 0.24 → 0.25 |
---|
comment:18 Changed 13 years ago by
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 Changed 13 years ago by
Type: | patch → Patch - Feature |
---|
comment:20 Changed 10 years ago by
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)