Summary

Makes an 'album' by displaying a set of photos listed in a text file with optional descriptions.

Usage

<?plugin PhotoAlbum
         src=http://server/textfile
         mode=[column|row]
         align=[center|left|right]
         desc=true
         sort=false
         height=100%
         width=100%
         weblocation=>false
?>

Arguments

Only the 'src' parameter is mandatory.

src
Url or local path to a CSV textfile which separates filename and description of each photo. Photos listed in the text file have to be in same directory as the file. Descriptions are optional. If the the local path points to a directory, is relative from PHPWIKI_DIR, and the main script is in PHPWIKI_DIR, weblocation must not be given, and all pictures from this directory are displayed.
weblocation
Optional path if the src points to a local dir, and the links on the photos don't work.
mode
Specifies how the images are arranged, 'column' means vertically, 'row' means horizontally. Default is 'row'.
align
Only applicable to column mode. Default is 'center'.
desc
Display any descriptions given in the text file. Default is true.
sort
Sort images by file name. By default the order in the text file is followed.
height, width
Height and width are calculated compared to original metrics retrieved by php-function:getimagesize and can be absolute or a percentage (e.g. "50%").

Examples

Text file

Possible content of a valid text file:

photo-01.jpg; My girlfriend and I
photo-02.jpg
christmas.gif; Merry Christmas!

Sample Album

local dir:

BeachPalmDusk.jpg

BeachPalmDusk.jpg

Coastline.jpg

Coastline.jpg

HawaiiMauiFromSpace.jpg

HawaiiMauiFromSpace.jpg

LavaTwilight.jpg

LavaTwilight.jpg

LoihiSeamount.jpg

LoihiSeamount.jpg

SteamVolcanoDusk.jpg

SteamVolcanoDusk.jpg

SubmersiblePiscesV.jpg

SubmersiblePiscesV.jpg

SwimmingPoolWater.jpg

SwimmingPoolWater.jpg

Waterfall.jpg

Waterfall.jpg

WhaleRainbow.jpg

WhaleRainbow.jpg

or via external url:

<?plugin PhotoAlbum
         src="http://phpwiki.sourceforge.net/demo/themes/Hawaiian/images/pictures/PhotoAlbum.csv"

?>

Plugin Author

Ted Vinke <teddy@jouwfeestje.com>


PhpWikiDocumentation WikiPlugin

PHP Warning

lib/DbaDatabase.php:122: Warning: dba_delete() [<a href='function.dba-delete'>function.dba-delete</a>]: You cannot perform a modification to a database without proper access (...repeated 290 times)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(46c88324cff8e9a7adc948e31d7d17a6)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(5709cecdcc7d1f16d665df4f08d2528f)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(16492abe11ba2de1b662709c49425361)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(5113ff66d6778b7b7e2d32d3d1176e44)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(79eba6b8fe7316447431ce95b7094b83)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(f07f40d29d99414230390af75ccf5fcf)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(df89eb339027eaf9abd1c8870ee93093)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(2551a1fd4ffe94a88a53f72b894eef37)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(52a201f3696bb27a64f429baf6677bdf)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(ae8e53c93ac24a3ce58e5af16bcaa18a)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(bdae6cab11c5da250cada3b197f429ee)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(fc9a078b7cbacd96c45b6c47fa837f67)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(ff5419b538ed85baec66d671d7efdfb0)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(6b30cdc2651d5554c4f9eddaaf0b1074)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(f401c6108cf3a4de8a05498735e88852)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(1eb0118aded5070a83df5d1e232a393d)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(7f3fee5648cbf9c19de93b482270b350)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(918a0d6a1962233ce830a516c7249aa4)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(4ca5ccdd55f80d190fb2674df4ea0b11)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(4b3851c322006b70eec4568c906e9a87)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(f3fbd2c676946b2812de3bec77c8ef65)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(b41c497e84d6a0831ea5ae89c7ee4580)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(82ae2296c3e87e000b2d83687492c427)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(76400d753d91463a25ffd1a6bf461769)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(fcdcbfdb06c46903748812ab33c14b1f)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(f3d1931dfde5a8fc3bc138a06a8788f6)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(e3f5eb3ab7d6c88e1ff5c52c7ac29b06)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(bc81f584a3cc26770adb42297283e45d)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(60560a8a8414508ce52a6ffd49663db7)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(937e45caf0435aa9f14517e51b291cdd)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(9cdfa8b7a52c9cd27192dcfe82997270)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(e5f8f4c15e5213a5d0e0ffb07f95175c)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(1d079aa79445d825dbc75667ad0c1357)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(f300d40813c01565bcfc756895624f11)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(04f0c83fab4dc55588fc99048bb23008)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(8f6bff0b8ced3fb3edd0a3661b7a4a7c)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(39b4ed279464b619a5b6a13a167c7b5c)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(cf05aab421802374c62c1dd81185bafc)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(6b20db716a62da033ed60e142d69051f)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(bd7b2cacbbd237f81af5cc56e84e92c7)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(9f9b492dabb91082877573fa83becf14)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(3cc438ef47661955731caf4e15c2b19b)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(387ae5cb3812dff4d27c7b89209d0a49)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(433bd69946317db2007b101ddba02bf3)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(e6215b62327a8341f78b805cbbbf2a85)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(2be882f92b77275bdf4e936d5f94a11c)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(66410b3687b39ce691c456a456a5e2ca)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(3a844b1d19bb81aae5b732c9ff568c0f)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(e95312e4f2a664281b6689582a0243e6)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(e5364a50660ada93370b66e5d2193226)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(b7ef1596798f3022a04e9991b861eb53)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(d55562950aebf1cfdf4685e6cb0f6c45)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(234255ae6ef0698e6eaecf0e57d8b8b9)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(bf2699164c6c70f6d304a1d5668dbb16)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(1fc6e53a4a882e3755d34bd81fe0bafa)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(a0cf7ef8690d6d7da8e04180d9d25f8d)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(bd69a2ce3a5ed8b7708ae0e18d4d5f01)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(4f5fc934c1c5bcaa088e8415587a92c3)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(e3bb6f796264e7761b6d2cec90de53c3)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(0b61fb27b2c90f779755c1d0ca711fec)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(0cf31988056ef0caf45c8949c7e61940)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(7ec06f43fa934d6fa6c4b5ac6fd5c330)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(265eaf5239eebff5bbc1f0271b56205c)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(c02e131b684991644f42e629cccb2e9d)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(a8a1778f866ab3f4cf3ecafa8be9ee99)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(78948e4ed597f533b85606cb171a06ef)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(096b4b5951da63fa380a5fc1797822f0)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(0b705556bcc187bdd90f7bcea1eebf45)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(5b5491fb426573b9c2afb12504e954c2)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(f3f5f089c318e02faca92601e8e81b1c)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(98e91f776a6042125b8cb23d3ada1287)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(07d0cfe71699df9742808b22a58d94f1)

lib/DbaDatabase.php:160: Warning: DbaDatabase: delete(784fdcbea8fd3eab75fb915aa99e5181)