Building Twitter in Drupal

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

Post a comment
Embed Video
Edit your comment Cancel

4 Favorites & 1 Event

Building Twitter in Drupal - Presentation Transcript

  1. ...in Drupal
  2. What that means
  3. What that means How we did it
  4. What that means How we did it Why you shouldn’t
  5. So… what is Twitter? • Streamlined info flow • 140 character messages • Just your friends • ...And eighty jillion users
  6. Twitter is growing. Source: Jason Kottke (http://www.kottke.org/07/05/growth-of-twitter-vs-blogger)
  7. Twitter is simple.
  8. No, really. Simple. Public User's Friends' Timeine Page Posts Individual Favorites Update Post List Form
  9. What can users do?
  10. What can users do? • Post an update
  11. What can users do? • Post an update • Follow a user
  12. What can users do? • Post an update • Follow a user • Bookmark a post
  13. What can users do? • Post an update • Follow a user • Bookmark a post •…
  14. What can users do? • Post an update • Follow a user • Bookmark a post •… • Profit!
  15. Why rebuild Twitter? Image: Exploding Dog (http://www.explodingdog.com)
  16. Why rebuild Twitter? • “Sandboxed” communication Image: Exploding Dog (http://www.explodingdog.com)
  17. Why rebuild Twitter? • “Sandboxed” communication • Integration into a larger site Image: Exploding Dog (http://www.explodingdog.com)
  18. Why rebuild Twitter? • “Sandboxed” communication • Integration into a larger site • The simplicity challenge Image: Exploding Dog (http://www.explodingdog.com)
  19. Why rebuild Twitter? • “Sandboxed” communication • Integration into a larger site • The simplicity challenge • Because it was there Image: Exploding Dog (http://www.explodingdog.com)
  20. What hath Drupal wrought?
  21. What hath Drupal wrought? • The actions (post, follow, favorite)
  22. What hath Drupal wrought? • The actions (post, follow, favorite) • The views (timeline, friends, favorites)
  23. What hath Drupal wrought? • The actions (post, follow, favorite) • The views (timeline, friends, favorites) • The Simple™
  24. What hath Drupal wrought? • The actions (post, follow, favorite) • The views (timeline, friends, favorites) • The Simple™ • ...In 24 man-hours.
  25. What hathn’t Drupal wrought?
  26. What hathn’t Drupal wrought? • Some layout details
  27. What hathn’t Drupal wrought? • Some layout details • The SMS (SMS module)
  28. What hathn’t Drupal wrought? • Some layout details • The SMS (SMS module) • The API (Services module)
  29. What hathn’t Drupal wrought? • Some layout details • The SMS (SMS module) • The API (Services module) • The Community (magic)
  30. What did we just see?
  31. What did we just see? • One content type
  32. What did we just see? • One content type • Two flags
  33. What did we just see? • One content type • Two flags • Four helper modules
  34. What did we just see? • One content type • Two flags • Four helper modules • Five views
  35. What did we just see? • One content type • Two flags • Four helper modules • Five views • 200 lines of custom PHP
  36. What did we just see? • One content type • Two flags • Four helper modules • Five views • 200 lines of custom PHP • One custom theme
  37. The content type • No title, no options: just a body field. • Custom page.tpl.php in the theme
  38. The sidebar • Two blocks • Defined by module • 50-60 lines of PHP • Faster, but brittle
  39. Friends and favorites • “Following” flag • “Favorite” flag • Works cleanly with Views
  40. The update form • Custom form in our module • Simple validation • Twitter’s Javascript
  41. The listing pages • Views module • blittr.com/[list-style]/[username] • Filtered by Flags
  42. The look and feel!
  43. The look and feel! • Duplicates Twitter’s HTML • Uses Twitter’s CSS • Ignores the majority of Drupal’s data • Seven replacement templates views fields) (page, page-node, block, node, views-table,
  44. The other bits • SMS Framework module • Services module • Mobile theme • Personal CSS skins • Privacy
  45. The other bits • SMS Framework module • Services module • Mobile theme • Personal CSS skins • Privacy
  46. Yay!
  47. This was a Terrible Idea
  48. Drupal is not (just) a framework
  49. Drupal’s mastery curve can be steep
  50. Drupal is not an island
  51. Drupal is a powerful tool
  52. Re-use the techniques
  53. Don’t rebuild Twitter...
  54. Don’t rebuild Twitter... in any system!

+ Jeff EatonJeff Eaton, 11 months ago

custom

3356 views, 4 favs, 3 embeds more stats

Cloning the Twitter web site in Drupal: how you can more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 3356
    • 3347 on SlideShare
    • 9 from embeds
  • Comments 1
  • Favorites 4
  • Downloads 0
Most viewed embeds
  • 6 views on http://fromtheold.com
  • 2 views on http://fto.co.za
  • 1 views on http://74.125.95.132

more

All embeds
  • 6 views on http://fromtheold.com
  • 2 views on http://fto.co.za
  • 1 views on http://74.125.95.132

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories

Groups / Events