SimplePie 1.5 is now available!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation

Search

You can find the results of your search below. If you didn't find what you were looking for, you can create or edit the page named after your query with the appropriate button.

Results


SimplePie 1.0 "Razzleberry": 141 Hits
ace. (RC1) * Added the following constants: ''[[reference:SimplePie:SIMPLEPIE_BUILD]]'', ''[[reference:SimplePie:SIMPLEPIE_LINKBACK]]'', ''[[reference:SimplePie:SIMPLEPIE_NAME]]'', ''[[reference:SimplePie:SIMPLEPIE_URL]]'', ''[[reference:SimplePie:SIMPLEPIE_USERAGENT]]'', and ''[[reference:SimplePie:SIMPLEPIE_VERSION]]''. (RC1) * Added ''[[reference:SimplePie:set_favicon_handler]]'' to enable the caching and dis
set_item_class(): 32 Hits
the Google-namespaced <gd:when> tag. // http://simplepie.org/wiki/tutorial/grab_custom_tags_or_attributes $when =... </body> </html></code> ===== See Also ===== * [[reference:SimplePie:start]] * [[reference:SimplePie_Item:start]]
Sorting by custom criteria instead of date: 30 Hits
ab extra Digg-specific data, and we'll extend the SimplePie class and override the [[reference:SimplePie:sort_items]] method to sort by number o... necessary libraries. Digg Add-on found at http://simplepie.org/wiki/addons/digg require_once('simplepie.inc'); require_once('simplepie_digg.inc'); // Extend the SimplePie class and override the existing sort_items() func... with our own. class SimplePie_Custom_Sort extends SimplePie { public static function sort_items($a, $b) {
Translate timestamps into another language: 22 Hits
fault, PHP displays timestamps in English. Since SimplePie's [[reference:SimplePie_Item:get_date]] method relies on PHP's ... unction, get_date() is English-only. However, in SimplePie 1.0 we introduced [[reference:SimplePie_Item:get_local_date]] which leverages P... to translate timestamps into other languages. [[reference:SimplePie_Item:get_local_date]] accepts values th... guage-subtag-registry * http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes * http://www.google.com
set_useragent(): 20 Hits
ows you to override the [[http://en.wikipedia.org/wiki/User_agent|user agent string]] that SimplePie sends to the remote server. This value is passed... s ===== ==== ua ==== A new user agent string for SimplePie to use. Defaults to [[reference:SimplePie:SIMPLEPIE_USERAGENT]]. ===== Examples ... ting user agent string ==== <code php>$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog
How do I get a thumbnail from a YouTube feed?: 19 Hits
t's simplify this with the shorter syntax. http://simplepie.org/wiki/reference/simplepie/start $feed = new SimplePie('http://youtube.com/rss/global/top_favorites.rss'); // Make sure the content is being serve... back to the YouTube page, and adding the video's title as a tooltip for the link. echo '<a href="' . $item->get_permalink() . '" title="' . $item->get_title() . '"><img src="' . $enclosure->get_thumbnai