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.
Comment by Shae
Any suggestion(s) would be appreciated, as I tried this about six months ago and could not get it to work with any sidebar theme I chose. I'm not picky on a theme, as long as it has a sidebar and comments, because I can tweak the colors and styles.
Thanks
Comment by Johannes
First of all, you may use YAPB with nearly every theme - Those "ready-to-use-themes" are only very specialiced themes for photography. My homepages theme is a regular type of wordpress theme since i want to write normal articles too. And it uses the YAPB Sidebar Widget. Another possibility would be to use the Widget on another blog to display the images of your photoblog: That may be achieved in conjunction with the YAPB XMLRPC Server Plugin.
But yes: You need a theme with widget-enabled sidebar.
Hope that gave a little overview.
Comment by Shae
As I said, the ones I chose did NOT work, and I tried with a half dozen or so. They were Broken. They caused errors.
Can you give a name of a theme that you believe will work, please? Perhaps the one you started with? Or any other?
Comment by Johannes
The feedback i got so far shows me that YAPB works with nearly every WordPress theme out there... Personally, i think you could have a technical problem installing YAPB - Not a "YAPB is correctly installed but the theme doesn't work" kinda problem.
And PLEASE use the forum for support questions.
Greets from Salzburg,
Johannes
Comment by Shae
True, meep meep meep, meeep mep mep mep mep meep, meeep meeep meep meeep meep meeeep meep mep mep meeeep (Meep meeep mep mep mep) meeep meep meep, Meeep meep meep meep meep meeep meeeeeep meep.
Moved answer to the forum.
Comment by Johannes
Comment by the.darkman
ich habe YAPB schon länger benutzt und wollte nun auch den Sidbar Widget benutzen. Installation hat super geklappt, aber in den allgemeinen YAPB Optionen ist nirgens etwas bzgl. des Widgets zu finden. Ich nutze die deutsche Version von Wordpress, neusten Version, und auch YAPB ist aktuell. Woran kann das liegen? YAPB selbst funktioniert sehr gut.
Gruß darkman
Comment by George
I downloaded the 1.9.7 version of the plugin, and it appears fine at the plugins list. However, when I go to the Options, the version there mentioned is 1.8.1, and I can't find any configuration options there for the yapb widget for the latest/random pictures. Is there anything wrong with the installation files?
kind regards,
George
Comment by Jenna
Thanks!
Comment by Johannes
To take control, you could adapt your theme manually with YAPB template tags.
Comment by francis
Need response asap please.
Thanks and happy holidays!
Comment by Johannes
and please post that info to the forum:
http://johannes.jarolim.com/yapb-forum
thanks!
Comment by francis
thanks in advance.
Comment by Joanna
thank you
Joanna
Comment by Johannes
Comment by Jon
If you're interested I can send you the code. Will probably post it on my blog soon too if that's OK with you!
Comment by Johannes
Surely - I'm interested! Let's meet in the forum?
http://johannes.jarolim.com/yapb-forum
Greets from Salzburg,
Johannes
Comment by Jon
Wasn't sure if that was the right place for it, but I saw some other posts in there about custom plugins, so I stuck it in there.
Let me know what you think!!
Comment by mitcho
Comment by mitcho
Comment by Johannes
if (function_exists('yapb_is_photoblog_post') && yapb_is_photoblog_post()) {
...
}
Greets from Salzburg!
Johannes
Comment by mitcho
Using Templates with YARPP 3
Thanks for your support!
Comment by Pete
--
Thanks!
Comment by Edwin
Comment by Edwin
Comment by Becks
Comment by curro
> pics??? This is from my ftp program:
>
> SITE CHMOD 777 yapb_cache
> 550 CHMOD 777 yapb_cache: Operation not permitted
>
> Could it be this????
> Thanks
> Curro
Comment by Johannes
Comment by curro
Thumbnail generation unsuccessful
DEBUG post_id=197
DEBUG Found YAPB image
DEBUG h=80
DEBUG fltr[]=usm|30|3|3
ERROR Couldn't save /var/www/vhosts/tincan.es/subdomains/noticiasit/httpdocs/imagenes/yapb_cache/informatica3_presenta_nuevas_versiones_de_sus_programas_de_gestion_empresarial2.bw57tr1az1kokc0wc8kskcwcs.89y7syhqq1c8g408w04wk44sc.th.jpeg - Please check cache directory permissions
and i verify that the directory is writable and readable¡¡¡¡
please, help me...
thanks
curro
Comment by Johannes
And please post such requests to the YAPB-Forum - Thanks!
Comment by curro
curro
Comment by curro
thamnks
curro
Comment by curro
Thanks very much
Curro
Comment by curro
Comment by Sarah Valentine