This plugin allows you to easily display Youthphotos photos on your site. It supports user-, pools- and recent-pictures. The plugin is relatively easy to setup and configure via an options panel. It also has support for an image cache located on your server.
The plugin also supports a number of parameters, allowing you to have multiple instances across your site.
$platform– platform you are asking (www.youthphotos.eu, www.jugendfotos.de, …)
$user– specify a user ID
$type– user, friends, pool, recent
$num_items– number of items to display
$before_image– html appearing before each photo
$after_image– html appearing after each photo
$pool– specify pool if you use type = pool
<?php get_youthphotosRSS("www.jugendfotos.de", 1, "user", 5); ?>
This would return 5 pictures from the author at www.jugendfotos.de
<?php get_youthphotosRSS("www.youthphotos.eu", 1, "friends", 10); ?>
This would show the 10 most recent pictures from the friends of the user with ID 1 at youthphotos.eu
<?php get_youthphotosRSS("www.youthphotos.eu", 1, "pool", 5, "", "", 1); ?>
This would show the 5 most recent pictures from contest with number 1 at youthphotos.eu
<?php get_youthphotosRSS("www.jugendfotos.de", "", "recent", 10, "<span class=\"image\">", "</span>"); ?>
This would show the most recent 10 pictures from jugendfotos.de, each picture wraped with picture
Full option support
<?php get_youthphotosRSS(get_option('youthphotosRSS_yp_platform'), get_option('youthphotosRSS_yp_id'), get_option('youthphotosRSS_display_type'), get_option('youthphotosRSS_display_numitems'), get_option('youthphotosRSS_before'), get_option('youthphotosRSS_after')); ?>
If you have a theme which doesn’t support widget, you can use this snippet of code to control the youthphotosRSS-plugin from your admin page like it’s done with the widgets.
Feedback and Support
Visit the Jugendfotos.de blog for help getting the plugin working. Use the comments.
Latest Release: July 13, 2008
- 0.1.3 – Added default CSS
– Added ‘Full option support’ to readme.txt
- 0.1.2 – Fixed problem with PHP4, UTF-8 and MagpieRSS
– Fixed wrong handling of variables when using the functions
- 0.1.1 – Added default settings
- 0.1.0 – Initial release
- Screenshots, Screencast
- Example at blog
- Put youthphotos_rss.php in your plugins directory
- If you want to cache images, create a directory and make it writable
- Activate the plugin
- Configure your settings via the panel in Options
- Add the plugin via the widget management or add
<?php get_youthphotosRSS(); ?>somewhere in your templates
If your theme doesn’t support widgets use the snippets provided at Other notes
We figured out a problem with PHP4 and UTF-8 in combination with the internal caching of WordPress. If you run into this problem, please update to PHP5!
- Can I get random images from my stream?
No, it’s a limitation of using the RSS feed (it only contains the most recent photos)
- How do I refresh the photos manually?
The plugin uses built-in WordPress functions to update the feed. You can reload with STRG + SHIFT + R in our browser. This forces deletion of every cache.
- When I enable cache, why do just a bunch of random characters show up?
You’ve probably specified the full path wrong. Double check with your host to make sure you’ve got it right.
- Why aren’t any photos showing up?
Sometimes it can take a little while to kick in, have patience. Youthphotos may possibly have been down. Also, make sure it works without the cache first.
- How can I user my own style
There is a special CSS file (youthphotos_rss.css) in the youthphotos-rss plugin folder. Read and edit it. We can’t give support on this.
- How do a I get borders between photos?
You need to edit your CSS file. There are plenty of tutorials online, you may find an example in our blog.