Four new blocks for Menalto Gallery
Date: Sunday, January 25 @ 11:06:35 CET
Topic: PHP-Nuke


Three new blocks have gone from testing to release:
Random Photo V2, Newest Photo, Gallery Search Block, and Featured Photo. Read on for details...

Random Photo V2 features:
A totally rewritten random photo block is available for testing.
i have rewritten the block as follows:
- image size can be modified
- number of images (for random photo only) can be altered (can easily be tweaked for hourly/daily as well, if enough people request it).
- horozontal/vertical switch so block can be top/bottom center with multiple images laid out horozontally
- allows for marquee-style scrolling when in vertical orientation
- allows for auto-refresh (interval set by user); eliminates need to refresh entire page to see new random photo.

see it in action at http://phpnuke.nukedgallery.net

NOTE: because i want to retain the feature of using the one "core" block file to allow for multiple random/hourly/daily blocks on a site, the "support" file is now a functions file that gets put in the blocks directory. no need to touch/tweak that at all. this functions file has been extensively rewritten (allows other extensions besides jpg) and is much cleaner. also, the auto-refresh feature makes use of an IFRAME, which requires an additional file. The total package is now three files:
- /blocks/block-NG-Random.php
- /blocks/block-NG-Random_functions.php
- /block-NG-AutoPhoto.php

Featured Photo block:
Allows you to select one photo to be the "featured photo" on display in your block.

Gallery Search block:
Search your Gallery from this block anywhere on your site.

Newest Photo Block:
Pretty self explanatory.






This article comes from NukeCops
http://www.nukecops.com

The URL for this story is:
http://www.nukecops.com/modules.php?name=News&file=article&sid=1463