This plugin allows you to easily display Youthmedia photos on your site. It supports user-, friends- and recent-pictures. The plugin is easy to setup and configure via an options panel. It also has support for an image cache located on your server. This plugin requires at least PHP5 for stability and security reasons.
The plugin also supports a number of parameters, allowing you to have multiple instances across your site.
$platform– platform you are using (www.youthmedia.eu, www.jugendfotos.de, www.ungbild.se, …)
$user– specify a login-name
$type– user, friends, 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 (not supported at the moment!)
<?php get_youthmedia("www.jugendfotos.de", YOUR-LOGIN, "user", 5); ?>
This would return 5 pictures from the author at www.jugendfotos.de
<?php get_youthmedia("www.youthmedia.eu", YOUR-LOGIN, "friends", 10); ?>
This would show the 10 most recent pictures from the friends of the user with ID 1 at youthmedia.eu
<?php get_youthmedia("www.youthmedia.eu", YOUR-LOGIN, "pool", 5, "", "", 1); ?>
This would show the 5 most recent pictures from contest with number 1 at youthphotos.eu
<?php get_youthmedia("www.jugendfotos.de", "", "recent", 10, "<span class=\"image\">", "</span>"); ?>
This would show the most recent 10 pictures from jugendfotos.de, each picture wrapped with picture
Full option support
<?php get_youthmedia(get_option('youthmedia_platform'), get_option('youthmedia_username'), get_option('youthmedia_display_type'), get_option('youthmedia_display_numitems'), get_option('youthmedia_before'), get_option('youthmedia_after')); ?>
If you have a theme which doesn’t support widget, you can use this snippet of code to control the youthmedia-plugin from your admin page like it’s done with the widgets.
Feedback and Support
Visit the Youthmedia.eu blog for help getting the plugin working. Use the comments.
Latest Release: June 3, 2010
- 0.1.4 – Changed from youthphotos-rss to youthmedia
- 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
- 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. Youthmedia 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 (youthmedia.css) in the youthmedia-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.