This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

youthmedia

Description

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.

Advanced

The plugin also supports a number of parameters, allowing you to have multiple instances across your site.

  1. $platform – platform you are using (www.youthmedia.eu, www.jugendfotos.de, www.ungbild.se, …)
  2. $user – specify a login-name
  3. $type – user, friends, recent
  4. $num_items – number of items to display
  5. $before_image – html appearing before each photo
  6. $after_image – html appearing after each photo
  7. $pool – specify pool if you use type = pool (not supported at the moment!)

Example 1

<?php get_youthmedia("www.jugendfotos.de", YOUR-LOGIN, "user", 5); ?>

This would return 5 pictures from the author at www.jugendfotos.de

Example 2

<?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

Example 3

<?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

Example 4

<?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.

Plugin History

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

TODO

  • Screenshots, Screencast
  • Example at blog

Thanks

Thanks to Dave Kellam from Eightface for his flickrrss plugin. This plugin is based on it.

FAQ

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.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Browse the code