Making the Most of Plug-ins - WordCamp Toronto 2008 - Presentation Transcript
Making the Most of Plug-ins Brendan Sera-Shriar BackSpaceStudios.com
Making the Most of Plug-ins
Extending WordPress
Customizing WordPress Plug-ins
Tips On Writing WordPress Plug-ins
Writing WordPress Plug-ins
Essential WordPress Plug-ins
FlashPress by PHUG
WordPress Plug-in Competition
Resources
Extending WordPress
“ Plug-ins can extend WordPress to do almost anything you can imagine.”
-WordPress.org
Well almost! There is a limit to what a plug-in can do. Quite often in order to achieve the desired functionality there is some customization of code required.
WordPress plug-ins help enhance and simplify the blogging experience of advanced users , especially web developers and designers.
Customizing WordPress Plug-ins
Not all plug-ins work out of the box! A good majority of powerful and essential plug-ins will require some customization. This means CODE!
A blogger with basic to expert knowledge of HTML/CSS, and for a lot plugins, PHP and MySQL experience is highly recommended.
A blogger who needs to display complex content in posts and pages like displaying and colorizing code snippets, running custom scripts only on certain posts or pages, incorporating custom web forms, etc.
A blogger who knows what they’re doing - The default configuration of WordPress is too "fool-proof". For example, with the visual editor turned on, it will add unexpected indents and line breaks even inside <pre> tags. Additionally, it blocks you from adding <div> tags, automatically "sanitizing" them into <p> tags.
Tips On Writing WordPress Plug-ins
When all else fails! You don’t have to be a PHP or WordPress expert, anyone can create useful WordPress plug-ins without being a hacker.
Check out the Source of Plug-ins
One of the most helpful ways to improve your coding is by checking out the other plug-ins source code. Each plug-in author has a completely unique style of coding, and this can vary from super-advanced like the Google Sitemap Generator plug-in to the incredibly-simple like the AskApache Search Engine Verify plug-in.
Research with a Purpose
Instead of just picking plug-ins at random to reverse-engineer, surf the WordPress plug-in repository for unique plug-ins that perform a specific function or feature. For example; If you wanted to learn about MySQL search and replace code for WordPress, check out the source code of the excellent Search Regex plugin.
Use a plug-in Template
Any good Web Developer knows the extreme value of using modular, templateable code. CSS, XHTML, javascript, and PHP, all are geared towards templates. WordPress is one of the mack-daddies of templates, so why not use a template for plug-in files?
Writing WordPress Plug-ins
Conventions
For each new plug-in I create a folder in the /wp-content/plugins/pluginname/ and then in that folder I create the main plug-in file with the same name as the folder + .php so the plug-in file is /wp-content/plugins/pluginname/pluginname.php.
randomflashloader.php header stuff
<?php
/*
Plugin Name: RandomFlashLoader
Plugin URI: http://www.backspacestudois.com/
Description: Randomly loads a flash file from your wp-content/plugins/randomflashloader/swf direcotry
FlashPress is an extension to WordPress, which allows Flash designers/developers to use the WordPress engine to communicate with a Flash site. The use of the WordPress CMS in Flash overcomes many obstacles involved with maintaining and updating a Flash site.
The FlashPress development thread is restricted to contributors of this group. If you would like to contribute to this project please contact us at [email_address]
Launching soon http://www.flashpress.ca and http://www.flashpressdevelopers.com
Another Great PHUG Project!
Major contributors: Alex Nasser and Logan Aube of BNOTIONS.
WordPress Plug-in Competition
Time to break out that old code!
One of the important rules that we have is that the plug-ins should be new, i.e. no updates to already existing plug-ins. One great place to get inspired is WordPress Ideas ( http://wordpress.org/extend/ideas ). WordPress Ideas is a place where the people from the WordPress Community, both users and developers vote for what they would like included in WordPress. Some have been implemented, while some may actually appear in future versions and still others that may not be. So, why not make a plug-in to accommodate for the latter two?
http://weblogtoolscollection.com/pluginblog
FREE PHUG Workshops
Current Scheduled Workshops:
FlashPress – Flash management Solutions by PHUG
Tuesday Oct 14 2008 @ 630pm
Drupal
James walker
Tuesday Oct 28 2008 @ 630pm
Papervision3D - Using Papervision3D and Parallax to build environments
Ryan Andal - Owner/Technical Director, Zero Pattern
Tuesday Nov 5 2008 @ 630pm
Firefox UI Design
Mike Connor – Mozilla Firefox
Tuesday Nov 18 2008 @ 630pm
http://www.phug.ca
Look forward to these other great presentations:
Flash Media Server and BeatMaker
Dan Zen – Inventor and Professor at Sheridan College
Open Source in the Real World
Rick Mason - Now Magazine
Adopting Opens Source Commercially
Geoff Whitlock - Owner of Lifecapture Interactive Inc.
We would like to thank some of our sponsors and affiliates:
PHUG, Lifecapture Interactive Inc., BackSpaceStudios, Mozilla Firefox, WordPress.org, Drupal.org,
BNOTIONS, FITC ( Flash In The Can ), RMI ( Rich Media Institute )
If you would like to present or no someone who does we are still taking applications. Please send us an
email at [email_address]
http://www.phug.ca
WordPress2.5 with Brendan Sera-Shriar
A Full day of WordPress2.5, focused on design and development.
We'll cover the essentials of setup, installation, and management.
We'll learn how to build custom themes using CSS, PHP, and image
architecture. We'll also jump into custom code and template files, best
practices for design and management, integrating Flash, and how to build
and install WP and custom plug-ins. Time: 10:00am - 6:00pm (~8 classroom hours)
Exploring the power and benefits of using WordPress more
Exploring the power and benefits of using WordPress plugins, how to build a WordPress plugin in a few simple steps, plus a good solid list of plugin resources. less
0 comments
Post a comment