[pmwiki-users] Thumblist and image galleries.
Petko Yotov
5ko at free.fr
Wed Jan 17 06:39:24 CST 2007
On Wednesday 17 January 2007 11:18, Mark Trumpold wrote:
> HI All
>
> I am trying out the different galleries so I am not sure which one to use.
> Any advice ro examples would be appreciated.
>
> Meanwhile, I get the 'PHP-GD image library'
>
Thanks for trying the ThumbList recipe.
There is a ThumbList warning "PHP-GD image library not found. Exiting." If you
have it, then your PHP installation cannot access the image functions and you
cannot use ThumbList.
If your server is on Windows, you can modify your php.ini file to include this
library.
* read your server documentation (where are your PHP DLLs?)
* if incorrect, change "extension_dir" from its default value to the directory
where your extensions actually are (files like php_gd2.dll, iconv.dll and
other DLLs)
* set extension=php_gd2.dll (if there is a semicolon ";" in front of it,
remove it)
* restart Apache
On GNU/Linux or *BSD you will need to install a bundled version of PHP with
GD. On Debian the packages are called "php5-gd" or "php4-gd".
> I have a directory called 'gallery' where all my images are held. How do I
> point the thumblist recipe to that directory.
ThumbList uses only standard PmWiki uploads directory structure, no external
directories, and no unlimited subdirectories. These are files that can be
listed with (:attachlist:). You need to upload / move the pictures in
directories PmWiki expects to find them.
Normally you will want to have a wiki Group called "Gallery" or "Photos". In
that case, the default upload directories are
/uploads/Gallery or
/uploads/Photos
etc.
Easiest is to upload a test file from the "attach" link on a wiki page and
then you will find it in the correct upload directory. Then move the other
files there.
Note that the default PmWiki setting is "per-group upload directories", while
some users of ThumbList prefer "per-page upload directories" for the
galleries' groups (every page has its own sub-directory). This is done by
creating a file "local/Gallery.php" (if Gallery is the name of the wiki
Group) and putting inside
<?php if (!defined('PmWiki')) exit();
$UploadPrefixFmt = '/$Group/$Name';
See the documentation at http://pmwiki.org/wiki/PmWiki/UploadsAdmin for more
information.
You can also read these pages for additional tips and questions/answers:
http://pmwiki.org/wiki/Cookbook/ThumbList
http://pmwiki.org/wiki/Cookbook/ThumbList-Talk
If you really need to have files in directories outside of the PmWiki
directory structure, ThumbList cannot do this, but other recipes can, i.e.
WikiGallery, PhpQuickGallery, and TinyWebGallery I believe (see in the
Cookbook).
Good luck,
Petko
More information about the pmwiki-users
mailing list