- animateclay answered »Theme by iThinkMedia.com footer - Beacon for Hackers?« 03. Jul
- videokid answered »New pgForm prerelease (0.9)« 03. Jul
- dks answered »Split: Themes Included with Zikula« 03. Jul
- Wendell answered »pagesetter pdf output« 03. Jul
- dl7und answered »category-specific module template?« 03. Jul
- pnFilip answered »Scribite xinha/mediaattach plugin« 03. Jul
- espaan answered »Top List Broken after Upgrade?« 03. Jul
Login
PhotoGallery - v1.02
Author: Nathan Welch
Zikula Version: PostNuke Phoenix .760
Category: Content
API Compliancy:
Yes
pnRender Compliancy:
Yes
Description:
New Features/Changes in 1.01/1.02:
- Bugfix to add photo - fixed so gallery is preselected if clicking link from gallery list on main admin page
- Bugfix to search plugin - fixed misnamed configuration variable (galleryname)
- Template output validates to XHTML 1.1
New Features/Changes in 1.0:
- Update gallery block to fetch gallery name so it can be displayed and/or linked to based on displayed photo
- Update gallery block to display pid # of photos in drop down list to distinguish between like-named photos
- Update batch routine to read only files with extension .jpg, .jpeg or .png in gallery directory (as opposed to ignoring other file types)
New Features/Changes in RC2:
- Added batch adding of photos to selected gallery (with associated permission) - scans gallery images directory for unprocessed photos; names and descriptions for photos can be dynamically generated based on filename, counts, etc...
- Added "Delete Checked Photos" feature on gallery edit screen to allow deleting of multiple photos at once (goes nice with the batch add functionality ;)
- User template updates: Update user template function.photogalleryspanlinks.php plug-in so ampersand (&) rendered as meta-ampersand (&) - possible flaw in pnModURL function when called from plugin?; Update photogallery_user_smoothgallery.htm template to include ALT tags for images (to make HTML 4.01+ compliant)
- Added in some pnVarPrepForStore in sql queries where missing
- Updates and additions to language file text
- Bugfix: Fixed backwards edit gallery/photo permission checks for admin top menu
Features:
- Configuration options include gallery welcome message, number of columns for gallery categories and thumbnails, page spanning, set size and format of generated large pics and thumbnails
- Create an unlimited number of gallery categories, with complete control over category order.
- Each category can have a description and a thumbnail image which are displayed on the gallery home page (and thumbnail or photo pages, if you choose).
- Custom templates can be specified for gallery category thumbnail pages and photo detail pages on a per category basis for different looks in different categories.
- Photos are added by uploading through the browser with automatic creation of large and thumbnail images in PNG or JPG format
- Photos can display a title, description/caption, date added and also track views/hits for photo detail pages
- Photos can be sorted on a per-category basis - newest first, oldest first, alphabetically by photo title, or by the specific order you choose
- Inserts gallery name, gallery category name or photo title in the page <TITLE> tag on their respective pages for better search engine optimization
- pnAPI compliant
- pnRender templating and generous variable availability make a wide variety of configurations possible... Examples of all available variables are available in the templates and ideas in the readme
- Templates allows having "previous/next" or "first/last" picture navigation (with thumbnail previews, even!), or output filmstrip-like navigation, integration of fancy Javascript/CSS slideshows or image pop-ups or whatever you can dream up!
- Documentation of installation and features
- PhotoGallery Block displays a random picture from all galleries or gallery of your choice, or a specific photo.
- Search plugin allows integration of gallery search results into your Postnuke site (photo name & description)
System Requirements:
* Postnuke .76+ (might work on .75 w/pnRender installed) * Set memory limit on your PHP to at least 16MB (vs. default 8MB - a good idea w/PN in general) * GD Image Library v.2+ (included and complied with most modern PHP setups)
Support Information:
Full documentation is included in the pndocs folder of the module.
Supported Languages:
English
Change Log:
$Id: changelog.txt,v 1.02 2007/01/21 17:39:51 nate_02631 Exp $
[PhotoGallery version 1.02]
* Bugfix to add photo - fixed so gallery is preselected if clicking link from gallery list on main admin page
[PhotoGallery version 1.01]
* Bugfix to search plugin - fixed misnamed configuration variable (galleryname)
* Template output validates to XHTML 1.1
[PhotoGallery version 1.0]
* Update gallery block to fetch gallery name so it can be displayed and/or linked to based on displayed photo
* Update gallery block to display pid # of photos in drop down list to distinguish between like-named photos
* Update batch routine to read only files with extension .jpg, .jpeg or .png in gallery directory (as opposed to ignoring other file types)
[PhotoGallery version RC 2.1]
* Updated batch to attempt to calculate if it is running near the PHP script execution time limit. If so, it will halt processing and return to batch page for another round.
[PhotoGallery version RC 2]
* Simplified Permissions Schema - removed PID permissions and shortened schema names
* Added batch adding of photos to selected gallery (with assocted permission) - scans gallery images directory for unprocessed photos
* Added "Delete Checked Photos" feature on gallery edit screen to allow deleting of multiple photos at once (goes nice with the batch add functionality ;)
* Update user template function.photogalleryspanlinks.php plug-in so ampersand (&) rendered as meta-ampersand (&) - possible flaw in pnModURL function when called from plugin?
* Update photogallery_user_smoothgallery.htm template to include ALT tags for images (to make HTML 4.01+ compliant)
* Added in some pnVarPrepForStore in sql queries where missing
* Updates and additions to language file text
* Comment out "$source_max_size" in pnadminapi.php that attempts to calculate if enough memory is available to process uploaded image
* Bugfix: Fixed backwards edit gallery/photo permission checks for admin top menu
[PhotoGallery version RC 1]
Features
* Configuration options include gallery welcome message, number of columns for gallery categories and thumbnails, page spanning, set size and format of generated large pics and thumbnails
* Create an unlimited number of gallery categories, with complete control over category order.
* Each category can have a description and a thumbnail image which are displayed on the gallery home page (and thumbnail or photo pages, if you choose).
* Custom templates can be specified for gallery category thumbnail pages and photo detail pages on a per category basis for different looks in different categories.
* Photos are added by uploading through the browser with automatic creation of large and thumbnail images in PNG or JPG format
* Photos can display a title, description/caption, date added and also track views/hits for photo detail pages
* Photos can be sorted on a per-category basis - newest first, oldest first, alphabetically by photo title, or by the specific order you choose
* Inserts gallery name, gallery category name or photo title in the page <TITLE> tag on their respective pages for better search engine optimization
* pnAPI compliant
* pnRender templating and generous variable availability make a wide variety of configurations possible... Examples of all available variables are available in the templates and ideas in the readme
* Templates allows having "previous/next" or "first/last" picture navigation (with thumbnail previews, even!), or output filmstrip-like navigation, integration of fancy Javascript/CSS slideshows or image pop-ups or whatever you can dream up!
* Documentation of installation and features
* PhotoGallery Block displays a random picture from all galleries or gallery of your choice, or a specific photo.
* Search plugin allows integration of gallery search results into your Postnuke site (photo name & description)
Comments
That's a good tip on the chmoddin', I'll ammend the docs with that info...
I am still using the menalto-gallery2 (with the mGallery2-integration-module) and I want to switch to an "real"-Postnuke-module.
But I missed your mentioned "non-features":
- Sub-Categories would be very nice
- Batch-uploading
- and so on
So, I will wait the further development of your PhotoGallery , because I have a huge(?) gallery now.
Do you have a NOC-Project with SVN/CVS?
Thank you for developing this module.
Thanks for the kind words... Yeah, I should probably have put subcats in, but it seem to muck things up presentation-wise....
There has however been an RC2 update (might not be yet reflected on this page) which fixes a couple of quirks and adds the aforementioned "batch" processing...
I do not use the noc.postnuke.com things unfortunately... I may consider it if it gives me extra exposure!
Just FYI the "more info..." link on your website is broken at the moment. It fails to include the "natewelch.com" in the URL.
I've been playing around between your Gallery and Mediashare 2.0 - it's definitely a tough choice. There are only a few major things that are hanging me up from definitely choosing PhotoGallery:
1. XHTML 1.1 Validation (it doesn't look like it would take a lot of work, and I can offer my help if you're interested)
2. Sub albums - I know you've already mentioned it as a "non-feature", do you plan to implement it? It would be really useful to help with giving group access to certain albums.
3. A way for users to more quickly add multiple pictures (even many single file uploads on one page like Mediashare). Batch add is a huge help for uploading my images, but...
There are of course other things I'd like to see or like in Mediashare better, but for the most part I like your clean and simple style, and I can certainly see the effort you've put (and keep putting) into PhotoGallery - keep up the great work!
1. I have to make a tiny update to 1.0 (1.01?) as I misnamed a config variable fetch in the search plug-in (DOH!). I will take a second look at the *user* templates for XHTML validation at that time. I think it's mostly just a matter of changing the br tags... so long as it doesn't break the 4.01 transitional validation
2. Not right away... there are issues of presentation, recursive issues, etc... which I didn't want to deal with, and PG is intended more for smaller galleries where the lack of subcategories wouldn't be such an issue
3. Nope, just the batch thing for now. I don't like having the 5 pics (or whatever) at a time form... it's just very unwieldy... And when you think about it, isn't *that* much faster than doing one at a time. (plus, I think *better* in that it focuses the user on that one photo at a time)
Thanks for the feedback!
As far as the XHTML goes - I think it mostly has to do with the elements of your forms needing to be in divisions or paragraphs - XHTML doesn't let you have elements outside of a block. I can assure you it won't mess up the 4.01 validation, it's backwards compatible.
Thanks again - maybe I'll implement them both
I'll give the gallery a spin on my .8 test site.
Fatal error: Unknown function: pndbgettableoptions() in /home/murphtor/htdocs/pn/modules/PhotoGallery/pninit.php on line 41
Any help?
In the block, function photogallery_photogalleryblock_display(), you use a while loop to get a new picture if the user doesn't have access to the one that was already retrieved from the database, but loop will turn into an infinite loop if it doesn't find a picture that the user can view. I modified mine on line 137, changing it from
Code
$photo_match = 0;
[u]continue[/u];
}
to
Code
$photo_match = 0;
[u]break[/u];
}
Just something for you to look at. Thanks again for the great module!

Comment by:
Thug21
02 Jan 2007 - 09:40PM
The only thing I would like to see added is a batch import since I have hundereds of photos to upload.
Note: In the readme, it states to chmod the additional gallery folder to 666. However, if your host uses phpsuexec, try 755 or the gallery images might not show up.
Keep up the great work!