SlideShare uma empresa Scribd logo
1 de 52
Baixar para ler offline
Cooking with BuddyPress

            Andy Peatling
            http://apeatling.wordpress.com / @apeatling




Saturday, May 30, 2009
What is it?

                             Why should I use it?

                         How do I skin and extend it?


Saturday, May 30, 2009
Multi-Blog Platform




                         Multi-Blog + Social Platform




Saturday, May 30, 2009
“Just a Plugin”

                    Profiles                Blog Tracking

                    Activity Streams        Friend Connections

                    Content Groups          Comment Wires

                    Discussion Forums       Status Updates*

                    Private Messaging       Photo Albums*

Saturday, May 30, 2009
Why?
                         Build passionate users around
                                a specific niche.




Saturday, May 30, 2009
Sports Teams
                                          Niche Communities

                           High Schools

                                             Universities
                Companies or Products


                                           Newspapers
                         Intranets


         Blogging Networks                  Cities & Towns

Saturday, May 30, 2009
http://buddypress.org/

Saturday, May 30, 2009
A social network: to be
                             or not to be?



Saturday, May 30, 2009
BuddyPress is not all or nothing.




Saturday, May 30, 2009
Why BuddyPress?




Saturday, May 30, 2009
Power & Stability
                         Open Source
                         Community



Saturday, May 30, 2009
BYOTOS
                         (Bring Your Own Terms Of Service)




Saturday, May 30, 2009
Custom Branding


Saturday, May 30, 2009
Existing Plugins


Saturday, May 30, 2009
University Intranet
             Profiles

             Activity Streams      + LDAP Login Plugin

             Blog Tracking         + “More Privacy” Plugin

             Comment Wires         + Group Blogs Plugin

             Content Groups


Saturday, May 30, 2009
How do I install BuddyPress?




Saturday, May 30, 2009
Download & Install WordPress MU




                         (stick with sub-folders if you can)

Saturday, May 30, 2009
One click download & install
Saturday, May 30, 2009
Oh, and move the themes...
                         Default BP Theme         Default WP Theme




                         /wp-content/bp-themes/    /wp-content/themes/
                              bpmember/                 bphome/

                                                        (optional)


Saturday, May 30, 2009
Choose your components




Saturday, May 30, 2009
Drop in social widgets




Saturday, May 30, 2009
Set up bbPress for forums
                               (will become easier!)




Saturday, May 30, 2009
Saturday, May 30, 2009
How do I skin BuddyPress?




Saturday, May 30, 2009
WordPress themes are
                         for blog/content pages




Saturday, May 30, 2009
BuddyPress themes are
                            for social pages




Saturday, May 30, 2009
Theme combinations
   WP Theme
   BP Theme




Saturday, May 30, 2009
Blog Networks
Saturday, May 30, 2009
BuddyPress themes have
              specific template files for each
                         component



Saturday, May 30, 2009
Neatly ordered into sub-folders
Saturday, May 30, 2009
Don’t need a component? Delete ‘em!
Saturday, May 30, 2009
URL’s map to template files

                         http://example.org/members/andy/messages/compose/




                     /wp-content/bp-themes/bpmember/messages/compose.php




Saturday, May 30, 2009
BuddyPress themes use “The
                  Loop” but not just for blog
                            posts



Saturday, May 30, 2009
Output any BuddyPress content through
                                 custom loops

                 bp_has_activities()       bp_group_has_members()     bp_has_wire_posts()


                 bp_has_site_members()     bp_has_message_threads()   bp_has_profile()


                 bp_has_site_groups()      bp_has_groups()            bp_has_friendships()


                 bp_has_site_blogs()       bp_has_comments()


                 bp_has_blogs()            bp_has_posts()




                                       http://bit.ly/bploopdocs

Saturday, May 30, 2009
The “Site Members” Loop
Saturday, May 30, 2009
Fine grained control over loop output




Saturday, May 30, 2009
The “Skeleton Theme” is a
              BuddyPress theme framework
                         (it’s bundled with every BuddyPress download)




Saturday, May 30, 2009
Saturday, May 30, 2009
How can I extend
                           BuddyPress?



Saturday, May 30, 2009
BuddyPress is as extensible
                              as WordPress




Saturday, May 30, 2009
All BuddyPress components are coded
                 and structured the same way




Saturday, May 30, 2009
Standardization
                         and consistency
                          makes happy
                           developers



Saturday, May 30, 2009
BuddyPress functions allow you to
                        talk directly to the theme




Saturday, May 30, 2009
Building your component navigation

                             bp_core_add_nav_item (
                                  ‘Profile’, // Name
                                  ‘profile’   // Slug
                             );


                             bp_core_add_subnav_item (
                                  ‘profile’, // Slug of parent
                                  ‘Edit Profile’, // Name
                                  ‘edit’, // Slug of sub nav item
                                  $bp->loggedin_user->domain . ‘/profile’, // parent URL
                                  ‘xprofile_screen_edit’ // Function to run when clicked
                             );




Saturday, May 30, 2009
bp_core_add_subnav_item (
                                ‘profile’, // Slug of parent
                                ‘Edit Profile’, // Name
                                ‘edit’, // Slug of sub nav item
                                $bp->loggedin_user->domain . ‘/profile’, // parent URL
                                ‘xprofile_screen_edit’ // Function to run when clicked
                           );




                           function xprofile_screen_edit() {
                                // Do stuff (save changes etc)


                               bp_core_load_template ( ‘profile/edit-profile’ );
                           }




                         [activetheme]/profile/edit-profile.php


Saturday, May 30, 2009
BuddyPress components are all URL
                           action based




Saturday, May 30, 2009
http://example.org/groups/wplovers/members/ban/345




    $bp->current_component          $bp->current_item   $bp->current_action   $bp->action_variables
                 (string)               (string)             (string)                (array)




                         Easily create and use pretty URL’s in your components
              http://example.org/members/andy/wordcamps/attended/sf/2009



Saturday, May 30, 2009
Hook in everywhere




                           http://bit.ly/bphooks
Saturday, May 30, 2009
The “Skeleton Component” is a
              BuddyPress plugin framework
                         http://bit.ly/bpskelcomp




Saturday, May 30, 2009
http://bp-dev.org



Saturday, May 30, 2009
The Future....
                         Cast your votes!
                         http://bit.ly/bpvote




Saturday, May 30, 2009
Thanks! Questions?
                             @apeatling
                           @buddypressdev




Saturday, May 30, 2009

Mais conteúdo relacionado

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

BuddyPress @ WordCamp SF 2009