BumQ

วันเสาร์ที่ 7 เมษายน พ.ศ. 2555

How to install YAPPA Photo Album

First install the Freetype package (check rpmfind.net for updates)
SME 5.5

SME 5.6

Then install/update the GD graphics library

Then create an ibay to hold your pictures

Information bay name: Yappa
Description: Online Photo Album
Group: everyone
User access: Write=group, Read=everyone
Public access: (As you like it)
Execution of dynamic content: enabled
Now download the Yappa package from SourceForge.Net (http://sourceforge.net/projects/yappa/) and Unzip in the HTML directory
Now edit the config.inc.php file so that the Photo_root variable is set to the path of the images.
 /* directory where album dirs are stored */
    "photo_root" => "/home/e-smith/files/ibays/yappa/html/photos",
Also make sure to set the Image_Module to use the GD package with is already installed on the SME 5.5
 /* Image module: Magick, gd */
    "image_module" => 'gd',
In order to use the latest version 1.7 you need to alter a line in the "image-gd.class.php" file or you will not have auto generated thumbnails.
Change the line as indicated below (the ImageCreateTruecolor and ImageCopyResampled are part of the GD version 2 which is not yet available and functional on SME 5.5.
function ImageUtil(&$config)
{
    // $this->_can_truecolor = (function_exists("ImageCreateTruecolor") && function_exists("ImageCopyResampled")) ? 1 : 0;
    $this->_can_truecolor = 0;
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น