External Search <ul><li>Dave Ross </li></ul><ul><li>Fox Valley Computing Professionals </li></ul>
Dave Ross <ul><li>Lead Developer at Xeno Media </li></ul><ul><li>WordPress plugin developer </li></ul><ul><li>davidmichael...
Client wanted a portal site for annual trade show
Built using
Live from the show floor! <ul><li>Twitter </li></ul><ul><li>Flickr photos </li></ul><ul><li>YouTube videos </li></ul><ul><...
 
Even had a mobile version
Everything was great. Except search.
WordPress search only searches WordPress content
[gallery]
Dave’s External Search
 
 
How it works:
Flickr API <ul><li>$response = file_get_conte nts(“ http://api.flickr.com/services/rest/?method=flickr.photos.search&forma...
YouTube & Twitter APIs <ul><li>YouTube uses RSS, Twitter uses ATOM  </li></ul><ul><li>Use Magpie RSS (comes with WordPress...
Cache searches to preserve resources. Be a good citizen.
Available soon http://wordpress.org/extend/plugins/daves-external-search/
Upcoming SlideShare
Loading in …5
×

August 10th, 2009 Dave Ross Word Press

1,007 views
950 views

Published on

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

Published in: Technology, Business
1 Comment
0 Likes
Statistics
Notes
  • 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.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
1,007
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
3
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

August 10th, 2009 Dave Ross Word Press

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

×