Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/www/domains/hppgallery_com/design/defaulttheme/tpl/pagelayouts/main.php on line 59

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/www/domains/hppgallery_com/design/defaulttheme/tpl/pagelayouts/main.php on line 59
Sunday, September 23, 2018
 

Explains how module override system works. Also how to write extensions

This tutorial explains how to write custom extension and also override default module files.

Read more »

Explains how properly configure paypal

This article describes how properly configure paypal, also explains available fields purposes.

Read more »

Explains how to properly configure e-shop functionality

This tutorial purpose is to describe how to properly configure e-shop.

Read more »

Explains how users albums works.

By default all registered users can have their albums. This functionality can be disabled by removing personal_albums? function from registered users role. Users category's parent is by default settings.ini.php file located parameter:

Read more »

Describes how works most popular images in 24 hours

This feature was implemented since 491r. This feature works only then cronjob is set and delay image hit is activated. Cronjob takes cares of adding new images and deleting expired images.

Read more »

Explains what module compilation does and how to activate it

Since 399r there was implemented new future called Module compilation. It pre-compiles modules files and gives some performance boost usually around 5% or 10% percent.

Read more »

General server requirements

For server requirements read more.

Read more »

Gallery benchmarks.

Currently I pasted lighttpd based performance test. Later I will provide nginx performance benchmarks.

Read more »

Describes how works Anaglyph/Crosseye images support

1. To use anaglyph feature first have to be uploaded Cross-eye image for example:

Read more »

Explains how to create custom template without changing core templates.

Small tutorial witch explains how custom templates is created.

Read more »

Describes how to setup parallel downloads for thumbnails and CSS

In this example we setup four addresses witch will be used for image thumbnails and one address for CSS.

Read more »

Shows how to create hundreds of albums with single click.

In order to access batch album create window you have to click right mouse button on category icon and choose "New batch albums":

Read more »

Batch image upload process

Then you upload images to albums folder using FTP client, then you can import images through batch upload link.

Read more »

Watermark protection tutorial

This document describes how to enable watermark protection.

Read more »

Explains how to enabled mobile devices support

Small tutorial which points how to enable mobile devices version.

Read more »

Output HTML Compression explained

Output HTML compression serves as bandwidth saver. It reduces server bandwidth around 10% or 20%. Output compression is enabled then template compile is enabled.

Read more »

how to use google analytics API

In this document I will describe how to map your google analytics account with gallery.

Read more »

Ajax tree menu explained

Documents describes base usage of ajax tree menu.

Read more »

Nice URL activation

Nice url consists of two main settings.ini.php options.

Read more »

Memcached Configuration

This chapter describes how to enable memcached support in gallery. Also explains configuration options regarding memcached.

Read more »

Explains how to override kernel classes or add your own classes

In order to override kernel core class or just include your own class you have to create folder in classes folder in module directory for example.

 extension
    dummymodule
        classes

And create any new file with class.

To generate autoload you can you have to execute php file.

php ./bin/php/generate_autoload.php

That's all.

Read more »

ETag based caching

 To enabled this feature you have to edit settings.ini.php file and enabled ETag caching option.

ETag caching by default is turned off:

'etag_caching_enabled' => false,

 

Enabled ETag based caching settings looks like:

'etag_caching_enabled' => true,

Cached parts

ETag based caching works on these pages:

  • Album listing pages
  • Last hits
  • Popular images
  • Top rated
  • Last uploads
  • Last commented

All other pages do not use ETag based caching because of complexity, but in the future more windows will be cached using ETag based cache.

Important - ETag feature works correctly only then gallery is using memcached or APC. Otherwise it won'nt be able to generate correct cache keys.

Read more »

Search by face

Face detection as back-end service uses http://face.com provided API. As search handler sphinx is used.

Read more »

Login with google

Login with google account is based on Federated Login for Google Account Users. It's standard method witch other sites are using. That way user does not have to enter password. Open ID key is stored and user next time is enough just click button, and he is logged automatically.

Read more »

Template cache and template compile explained

HPPG features template compilation. Most template engines are based on some custom developer template syntax, but PHP itself is good template engine it can offer more than any template engine. So what is cached if template engine uses PHP. Current template engine cached some used functions in templates. Some examples of compiled templates blocks.

<?php include_once(erLhcoreClassDesign::designtpl('pagelayouts/parts/leftmenu_admin.tpl.php'));?>

These template blocks are replaced with included templates content. System generated one template file without inclusions witch reduces systems disk calls. 

URL compilation:

<?=erLhcoreClassDesign::baseurl('/')?>

These templates blocks are replaced with precompiled URL and avoids repeatable php function calls.

 

Settings compilation:

<?=erConfigClassLhConfig::getInstance()->conf->getSetting( 'site', 'title' )?>

These templates blocks are replaced with precompiled settings values.

 

Translations compilations

<?=erTranslationClassLhTranslation::getInstance()->getTranslation('user/grouplist','Title');?>

 

Cleaning template cache

Template cache can be cleaned by logging to administration and pressing clean cache link.

Read more »
 
About HPPG

High performance photo gallery dedicated for large numbers of image storage.

Get in touch

Donate



Download