Welcome to the private homepage of Johannes Jarolim, Salzburg, Austria, Europe. Willkommen auf der privaten Homepage von Johannes Jarolim, Salzburg, Österreich.

The way of the master: Install WordPress, convert it to a photoblog via YAPB and finally pimp it up with some plugins.

Already Available Plugins

YAPB Bulk Uploader

Joost’s second YAPB extensions: According to the plugin page on wordpress.org, you may now upload multiple images at once – INCLUDING IPTC SUPPORT – whoa.

Download the plugin from
the WordPress Plugin repository

XP Uploader

Historically the first available third-party extension to YAPB: Developed by Joost, it allows you to upload images directly over the Windows XP File Explorer.

Download the plugin from
the WordPress Plugin repository

YAPB-Queue

Bulk-import your images via FTP.

Download the plugin from
the WordPress Plugin repository

YAPB-Geotag

Extract GPS-data from your YAPB-Images.

Download the plugin from
the WordPress Plugin repository

YAPB Sidebar Widget

Previously included in the default YAPB installation, the YAPB sidebar widget was outsourced since version 1.9 and has become a plugin of it’s own. Of course, it evolved a little bit and now offers you the following functionality: Either show a list of your prevously posted images or just output some random images. Additionally you now may display a link to your mosiac page below the widget.

Download the plugin from
the WordPress Plugin repository

YAPB XMLRPC Sidebar Widget

Basically the same as the default YAPB Sidebar Widget, this version may display your images remotely on another blog. All you need is a source-blog running YAPB + the YAPB XMLRPC Server Plugin (As seen below) so you can access those images remotely.

Download the plugin from
the WordPress Plugin repository

YAPB XMLRPC Server

Originally provided by Mac, the YAPB XMLRPC Server Plugin allows remote access to your photoblog. You define an API key and voila: Your images are accessible via XML RPC. If you don’t know how to do that: Just have a look at the YAPB XMLRPC Sidebar Widget ;-)

Download the plugin from
the WordPress Plugin repository

Developing your own YAPB Plugin

Ah, finally – The interesting part for us developers ;-) Read this little introduction and have a look at the code of the yapb-sidebar-widget for example, and you should know how to develop YAPB plugins. It’s no rocket science.

Why YAPB Plugins?

First of all: Why splitting YAPB into a main part + plugins? Imho, separating blocks of functionality helps YAPB stay clean, “small” (whatever that means) and helps YAPB keeping focused on its primary target: Extend WordPress to become a Photoblog platform.

Secondly, separate plugins may be developed and evolved separately without any coupling to the main YAPB release cycle. Developers may now create additional features without “asking me for permission” or whatever – just go and do it ;-)

It’s simple

Writing a YAPB-Plugin is basically the same thing as writing a WordPress Plugin – It’s just a matter of view: We develop additional functionality built onto the YAPB foundation:

YAPB basicly offers you the “yapb_register_plugin” action-hook, which gets called right after YAPB initialization. Additionally, your function gets called with the current YAPB Class Instance as parameter: It’s a simple as that:

[code language="php"]
function my_cool_plugin_initialization($yapb) {
// hook into WordPress,
// add some options to YAPB and
// finally do what you want
}

add_action('yapb_register_plugin', 'my_cool_plugin_initialization');
[/code]

Have a look at the YAPB Sidebar Widget Plugin for more handy sample code.

The ultimate YAPB Hook Reference

YAPB offers some hooks out of the box. If you’re interested in developing your own YAPB Extension you should have a look at this list:

yapb_register_plugin

Source: Yapb.class.php
Since: 1.9

yapb_register_thumbnail gets fired just after the initialization of YAPB itself (last line in the constructor). That means you can execute code right after YAPB was initialized – And you get the YAPB Instance as Parameter. This hook is an action which means that it primarily acts as an event trigger, instead of a content filter.

yapb_get_thumbnail

Source: YapbTemplateFunctions.php
Parameters: String containg the thumbnail image tag

yapb_get_thumbnail gets fired just before the image tag gets returned from the yapb_get_thumbnail() template function. This hook is a filter which means that information is passed through it, and then used by WordPress.

yapb_get_exif

Source: YapbTemplateFunctions.php
Parameters: Assoziative array containg the exif data

yapb_get_exif gets fired just before the EXIF tags array gets returned from the yapb_get_exif() template function. This hook is a filter which means that information is passed through it, and then used by WordPress.

yapb_alternative_image_formats

Source: YapbTemplateFunctions.php
Parameters: Array containing the alternative image formats

yapb_alternative_image_formats gets fired just before the list of alternative image formats get returned by the according template function. This hook is a filter which means that information is passed through it, and then used by WordPress.

yapb_image_upload

Source: Yapb.class.php
Parameters: YapbImage Instance of the current image
Since: 1.9.18

yapb_image_upload gets fired just after you saved a post containing a YAPB image and that image was persisted to database and disc. This hook is an action which means that it primarily acts as an event trigger, instead of a content filter.

damn_i_need_a_new_hook

If you need a hook in YAPB to develop something new: Leave me a note in the forum so we can discuss it. But hey: I’m the last one blocking new features. As long as it’s not disturbing the way YAPB works, i’m with you.

Fifty Replies

  1. 18. September 2011, 18:20
    Comment by Catalin C.
    Scratch that :)

    Is probably related to PHP and not Wordpress/YAPB.

    The errors are about: "expected to be a reference, value given"

    You can find them in YapbXmlrpcServer.class.php and XmlrpcSidebarWidget.class.php.

    The methods affected are:

    SERVER:

    function filterYapbOptions($options) {

    function filterXmlrpcMethods($methods) {

    WIDGET:

    function onDrawXmlrpc($args) {

    function draw($args, $data) {

    Thanks for YAPB.
  2. 7. October 2011, 22:17
    Comment by smilla
    Can you insert watermark option? thank you if you can
  3. 5. March 2012, 20:52
    Comment by Trent
    How do I get an image (or better yet, a thumbnail) URI?
  4. 11. April 2012, 13:42
    Comment by AlexHawk
    Hello
    I'm very happy using YAPB fused with ReflectionMod Theme in my photo blog, but i have a little problem issue. I don't know which parameter should i change to get more than 10 thumbnails in archive category (on page - portfolio)... Help :)
  5. 12. March 2013, 05:40
    Comment by Marco
    first of all, this is an awsome plugin ! thx a lot!! Just a simple question : would there be an option to click on the picture in order to see the next image? (maybe a sort of option or line of code that we could insert in YAPB settings)

    Marco

You're welcome to leave a message here

Reload Image