Alcohol Consumption Allyson Cady Dave Klotz Brandon DeMille Chris Ross.
August 10th, 2009 Dave Ross Word Press
-
Upload
straight-north -
Category
Technology
-
view
883 -
download
2
description
Transcript of August 10th, 2009 Dave Ross Word Press
![Page 1: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/1.jpg)
External SearchDave Ross
Fox Valley Computing Professionals
![Page 2: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/2.jpg)
Dave RossLead Developer at Xeno
Media
WordPress plugin developer
davidmichaelross.com
![Page 3: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/3.jpg)
Client wanted aportal site for
annualtrade show
![Page 4: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/4.jpg)
Built using
![Page 5: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/5.jpg)
Live from the show floor!
•Flickr photos
•YouTube videos
•Department’s blog
•Daily blog updates
![Page 6: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/6.jpg)
![Page 7: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/7.jpg)
Even had a mobile version
![Page 8: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/8.jpg)
Everything was great.
Except search.
![Page 9: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/9.jpg)
WordPress searchonly searches
WordPress content
![Page 10: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/10.jpg)
[gallery]
![Page 11: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/11.jpg)
Dave’s External Search
![Page 12: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/12.jpg)
![Page 13: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/13.jpg)
![Page 14: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/14.jpg)
How it works:
![Page 15: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/15.jpg)
Flickr API
• $response = file_get_contents(“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)
![Page 16: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/16.jpg)
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
![Page 17: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/17.jpg)
Cache searches topreserve resources.
Be a good citizen.
![Page 18: August 10th, 2009 Dave Ross Word Press](https://reader036.fdocuments.in/reader036/viewer/2022062704/555a6bcdd8b42ae7218b4ecc/html5/thumbnails/18.jpg)
Available soonhttp://wordpress.org/extend/plugins/daves-external-search/