Share This v.1.0.2 has been published

+ Corrected PayPal link for “Donate” link in admin area
– Fixed issue with VideoJS plugin when image derivative information is empty/missing. Post to Facebook would be made without image reference

Posted in Piwigo | Leave a comment

“Share This” plugin has been published in Extensions Repository

Just another small plugin with large consequences ūüôā
Purpose of the plugin is to add sharing options for your photos

ss-1From screenshot you can see that 4 services are supported:
* Facebook
* Twitter
* Pinterest
* Google Plus

Logic is currently very simple and there is no intend to provide any sort of click stats.

Note: One of the areas behind the scene which may be interesting is the way content is integrated into the page
You can compare GreyDragon integration based on trigger and data structure¬†vs “normal” way where we have to guess page content and find place to insert content.

Posted in Piwigo | 4 Comments

GreyDragon v.1.2.22 is now available

This is major release. please read about changes below.

Version introduces concept of widgets for picture metadata area along with template anchor targets allowing more streamlined approach in adding and managing metadata tabs for picture pages.

+ Added Photo metadata tab targets in picture.tpl (see template for positioning): {*GD_META_ICO*}, {*GD_META_TXT*}, {*GD_META_CONTENT*}
+ Picture tab “classic” content moved into external templates picture_tab_ico.tpl, picture_tab_txt.tpl, picture_tab_content.tpl
+ Added support for gd_get_metadata content trigger
You can add custom content for picture meta tabs
Ex: add_event_handler(‘gd_get_metadata’, ‘my_get_tab_metadata’);
function greydragon_get_tab_metadata($metadata) { return $metadata; }
where each array element represents the tab
$metadata[] = array(
“id”¬† ¬† ¬† ¬† ¬†=> unique id of the tab
“icon_class” => class to be used to render icon tabs
“title”¬† ¬† ¬† => tab or menu block title
“content”¬† ¬† => block content
“target”¬† ¬† ¬†=> optional, rendering target – “left”, “top”, “right”, “bottom”, not supported, reserved for future use
“combine”¬† ¬† => combine_css or combine_js reference block
);
Prior to rendering $metadata is processed and converted in appropriate construct to be used by the theme
See ShareThis plugin for more details
+ Tab switch logic in Photo page optimized to allow management of dynamic tabs introduced by 3rd party plugins
+ Improved presentation and content alignment of Tags tab in picture page
+ Added support for auto-close of popup menu on navigation or refresh – Auto Close Popup Menu on Refresh
+ Help improvements
– Fixed issue with missing colorpack setting when theme is first installed and settings are not set yet
– Fixed issue with number of undefined theme params (unused at this time)
– Fixed issue with missing enumerator for $footer_elements in footer.tpl

Posted in Piwigo | Leave a comment

GreyDragon theme v 1.1.20 is out

+ ADMIN: Added support for various Favicon types including Apple Touch
+ Added versioning for Theme settings for easier maintenance
+ Localization added for Admin Help area
+ Added support for %gallery_title% in header text/page banner
– Fixed issue with root url associated with gallery logo was not referring to the sites root properly when installed as sub-folder

Posted in Piwigo | Leave a comment

gdThumb v 1.0.15 is out

+ In Overlay Ex mode place “New Item” marker is placed in metadata area
+ Further and final improvement for file type markers in Overlay Ex mode. Now sensitive to file extensions. Supports image, video, music, pdf, doc, xls, ppt formats with associated markers.
– Fixed issue when “big thumb” for video files become smaller than desired min size

Posted in Piwigo | Leave a comment

Keeping CentOS with times – PHP 5.5

This is second article related to CentOS somewhat outdated default setup.

I have previously discussed Steps to update MySQL to 5.5 and now its time to look at PHP

Introduction

If you run VPS or dedicated server with CentOS 6.x installed often you will find that default setup would include somewhat antiquated PHP and MySQL versions – 5.3 and 5.1 respectively.

Unfortunate situation dictated by the fact that main distro package used in such environment does not include latest versions.

If SSH and Linux management is allowed, it does not take long to bring environment up to date.

Note: it is much easier to update packages right away once server is still fresh and there is not much other software installed.

Update PHP to 5.5 on CentOS from SSH

Make sure you have root access to underlying Linux and open SSH session.

  • Check version of PHP installed. Let’s assume PHP 5.3 or 5.4 is present. You should see something similar to the following output
    # php -v
    PHP 5.4.17 (cli) (built: Jul 23 2013 00:02:04)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    
  • Default CentOS repo accessible with yum would not have proper PHP version and you would need to add Webtastic repo with
    # rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
  • As mentioned above we are interested in latest stable version of PHP 5.5. Let’s make sure it is in fact available for installation
    # yum list available | grep php55

    then examine output to make sure php55w packages are present.

  • Depend on your current configuration, you may need some additional PHP libraries (full list can be found here), so please take a note of what packages you have installed and setup in your system before proceeding with next step
  • Now you can install the new PHP 5.5 core and packages. Options below is most basic and commonly used configuration for 64bit system
    # yum install php55w.x86_64 php55w-cli.x86_64 php55w-common.x86_64 php55w-gd.x86_64 php55w-ldap.x86_64 php55w-mbstring.x86_64 php55w-mcrypt.x86_64 php55w-mysql.x86_64 php55w-pdo.x86_64

    Once operation is completed, run PHP version check again, you should see that PHP version is now 5.5

    # php -v
    

Potential problems:

PHP Upgrade fails with dependency error “Error: php55w-common conflicts with php-common-5.3.3-23.el6_4.i686”

Since there is previous version of PHP present and we did not do clean uninstall, dependency resolution procedure may become “confused” and could not figure out what to do with common package.

Try the following two commands before you attempt installing PHP again

# yum install yum-plugin-replace
# yum replace php-common --replace-with=php55w-common

First will ensure that we do have replace option support and then update php-common package before we update PHP core

php -v command shows ionCube compatibility error

Simply put, ionCube extension is older version and not compatible with new PHP version.

What is the ionCube in the first place and why we better keep it?

ionCube is an PHP code encryption extension usually used with Zend Engine and allows protect otherwise open text PHP code from direct access and analysis. Many commercial PHP products would come encrypted and without this extension you may no longer will able to use them.

Let’s assume ionCube is here to stay and let’s see what we can do to reanimate it.

  • Visit ionCube download section and get two files: Loader Wizard or loader-wizard.php (do not confuse it with Loader Installer) and Loader package for Linux 64-bit
  • Unpack Loader package along with loader-wizard.php into web server folder which you can later access from your browser
  • Open loader-wizard.php in your browser and follow steps presented
  • Once all steps are completed and wizards verifies the location of the required ionCube extension file, restart Apache and verify PHP version again. You should see ionCube is now loaded successfully
    # service httpd restart
    # php -v

In some cases PHP would unable to load proper version of ionCube
Try the following:

  • visit /etc/php.d folder and look for 00-ioncube-loader.ini or similar
  • if located open for edit and check what zend_extension file is referenced to make sure proper version of the loader is used

php -v command shows timezone warning

PHP Warning: date(): It is not safe to rely on the system's timezone settings

This message easily to notice when you run php -v after upgrading to latest version of PHP as it is no longer set by default.

  • For CentOS locate system php.ini¬†typicaly found¬†/etc/php.ini
  • Open it in a text editor
  • Find the following line
    date.timezone=
  • If line is commented out, you need first uncomment it
  • Visit PHP.net and locate the time zone you want to run your server in
  • Use string name of the time zone desired. Please note that you need to¬†enclose name in¬†double quotes
    date.timezone="America/New_York"
  • Since you are editing PHP settings, you may as well increase PHP memory limit to 512M by changing
    memory_limit=512M
  • Save your changes and exit out of text editor
  • Restart Apache
    service httpd restart

Final thoughts

While not strictly necessary, I would recommend reboot your server. This may help with some phantom issues encountered rarely due to some ongoing active processes.
Don’t forget to log off and close your SSH session

Posted in CentOS Maintenance, Scratch Pad | Leave a comment

GDThumb v 1.0.14 is now available

GDThumb v 1.0.14 is now available

+ Added integration with VideoJS plugin to allow display of “film” icon in¬†¬†Overlay Ex¬†mode (experimental feature)
– Fixed issue with incorrect callback when “RV Thumb Scroller” plugin is used

Posted in Piwigo | Leave a comment
  • About

    From being a junior developer all the way to Development Manager position, I was always interested in new technologies. Passionate speaker, IT junky, developer, architect, team lead, and development manager - many hats, one goal - making software better and closer to people’s needs. For the most part I am using my blog as a scratch pad, writing small articles on things which I came across, was asked about more then once, and which would otherwise require additional research again and again.

    View Serguei Dosyukov's profile on LinkedIn
  • Testimonials

    The greydragon theme is fantastic. It’s clean, stable and feature rich. It took me a while to decide to move...

    Ed

    I've been using this [theme] since the start. It is by far the most attractive, feature packed and stable of...

    Rhyull

    I’m a huge fan of this theme. I’ve got more than 90,000 pictures in my gallery3 running on a Ubuntu...

    Jklobo

    more...

  • Categories