• Like
August 10th, 2009 Dave Ross Word Press
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

August 10th, 2009 Dave Ross Word Press

  • 859 views
Published

Fox Valley Computing Professionals Presentation Series, Social Networks for Business, Part 2

Fox Valley Computing Professionals Presentation Series, Social Networks for Business, Part 2

Published in Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Just wanted to let everyone know version 0.2 of this plugin was released this morning. You can download it at http://wordpress.org/extend/plugins/daves-external-search/

    (Ignore the way it says '0.1' on the website, the download will give you the correct version)

    The functionality is there, but it might throw a fit if you don't have all three types of accounts. Be sure to check back with later this week for version 1.0.
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
859
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
1
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. External Search
    • Dave Ross
    • Fox Valley Computing Professionals
  • 2. Dave Ross
    • Lead Developer at Xeno Media
    • WordPress plugin developer
    • davidmichaelross.com
  • 3. Client wanted a portal site for annual trade show
  • 4. Built using
  • 5. Live from the show floor!
    • Twitter
    • Flickr photos
    • YouTube videos
    • Department’s blog
    • Daily blog updates
  • 6.  
  • 7. Even had a mobile version
  • 8. Everything was great. Except search.
  • 9. WordPress search only searches WordPress content
  • 10. [gallery]
  • 11. Dave’s External Search
  • 12.  
  • 13.  
  • 14. How it works:
  • 15. Flickr API
    • $response = file_get_conte nts(“ http://api.flickr.com/services/rest/?method=flickr.photos.search&format=php_serial&api_key=HGS5JH8HDQQJKC3&user_id =1234567@99&text=cat&per_page=6”);
    • $results = unserialize($response)
    • $photos = $results['photos']['photo'];
    • foreach($photos as $index=>$photo)
  • 16. YouTube & Twitter APIs
    • YouTube uses RSS, Twitter uses ATOM
    • Use Magpie RSS (comes with WordPress)
    • $feedURL = “ http://gdata.youtube.com/feeds/api/users/username/uploads?q=cat ”
    • $feedURL = “ http://search.twitter.com/search.atom?q=cat%20from%3Ausername”
    • $feed = fetch_rss($feedURL);
    • foreach($feed->items as $item)
    • Twitter has an API limit
  • 17. Cache searches to preserve resources. Be a good citizen.
  • 18. Available soon http://wordpress.org/extend/plugins/daves-external-search/