HTML Refine Module
Refines Gallery2 HTML output and caches the result if required
Author: Dayo Akanji
Download the module files here.
Visit the Support Site for enquiries and support requests.
The package contains two zip files: refine.zip and events.zip. The installation steps required are:
Around Line 100 of gallery2/main.php is ...
function GalleryMain($embedded=false) {
global $gallery;
Add the following lines after:
/* Added Event: BeforeProcess */
include(dirname(__FILE__) . '/lib/events/Gallery_BeforeProcess.event');
Around Line 530 of gallery2/main.php is ...
/*
* Session: Find out whether we need to send a cookie & need a new session (only if
* we don't have one yet)
*/
$session =& $gallery->getSession();
$ret = $session->start();
if ($ret) {
return array($ret, null);
}
Add the following lines after:
/* Added Event: BeforeOutput */
include(dirname(__FILE__) . '/lib/events/Gallery_BeforeOutput.event');