Get Thee Behind Me: Making BuddyPress do thine bidding

10,071 views
9,982 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
10,071
On SlideShare
0
From Embeds
0
Number of Embeds
49
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Get Thee Behind Me: Making BuddyPress do thine bidding

  1. 1. Get thee behind me! Making BuddyPress do thine bidding Boone Gorges @boonebgorges [email_address] http://teleogistic.net
  2. 2. “ Facebook in a box” <ul><li>Friends </li></ul><ul><li>Extended profiles </li></ul><ul><li>Groups </li></ul><ul><li>Forums </li></ul><ul><li>Interactive activity streams </li></ul>
  3. 3. Example: CUNY Academic Commons http://commons.gc.cuny.edu
  4. 4. Customization Case Study: A rocking website
  5. 5. bp-default: Does not rock
  6. 6. Dashboard > BP > Profile Fields
  7. 7. Customizing components
  8. 8. Dashboard > BP > Component Setup
  9. 9. Lame
  10. 10. define( 'BP_MEMBERS_SLUG', 'headbangers' ); bp-custom.php
  11. 11. Awesome
  12. 12. Lame
  13. 13. define( 'BPLANG', 'rock' ); if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) { load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ); } bp-custom.php [plugin-dir]/buddypress/ bp-languages/ buddypress-rock.po
  14. 14. Awesome
  15. 15. Theming with bp-sn-parent
  16. 16. bp-sn-parent standard WP theme + BP theme files
  17. 17. Lame
  18. 18. [theme-dir]/bp-rock/style.css
  19. 19. [theme-dir]/bp-rock/ _inc/css/style.css
  20. 20. Awesome
  21. 21. Plugins
  22. 22. Tools <ul><li>Group extension API </li></ul><ul><ul><li>http://codex.buddypress.org/developer-docs/group-extension-api/ </li></ul></ul><ul><li>Skeleton component </li></ul><ul><ul><li>http://wordpress.org/extend/plugins/buddypress-skeleton-component/ </li></ul></ul>
  23. 23. Hooks and filters function how_bad_ass_am_i() { global $bp; $user_id = $bp->displayed_user->id; $user_name = $bp->displayed_user->fullname; $user_url = $bp->displayed_user->domain; echo '<a href=&quot;' . $user_url . '&quot;>' . $user_name . '</a> is bad ass #' . $user_id . ' on this site.'; } add_action( 'bp_before_profile_field_content', 'how_bad_ass_am_i' ); bp-custom.php
  24. 24. AWESOME!!!!!!!!!!
  25. 25. Resources <ul><li>http://codex.buddypress.org/ </li></ul><ul><li>http://buddypress.org/forums </li></ul><ul><li>http://buddypress.org/extend/plugins/ </li></ul>
  26. 26. Yes! Boone Gorges @boonebgorges [email_address]

×