Time for action IntenseDebate Comments
1. Download the IntenseDebate Comments plugin from 2. You will need to sign up for an account at http intensedebate.com . 4. Go to Settings IntenseDebate. You will be presented with a login screen. Enter the account details for the account you created in step 2. 5. Once you have logged in, click Start Importing Comments. 6. The import process can take a very long time, even if you don't have many comments to import. 7. Once the import process is complete, you can tweak the settings to suit your...
The Header template
The Header template for your WordPress themes is the starting point for every WordPress theme, because it tells Web browsers the following The tagline or description of the blog Every page on the Web has to start with a few pieces of code. In every header. php file in any WordPress theme, you'll find these bits of code at the top The DOCTYPE which stands for document type declaration tells the browser which type of XHTML standards you're using. The Twenty Ten theme uses lt DOCTYPE html gt ,...
Book Module
The Book module is one of the most useful of all Drupal modules due to its ability to add a high level of structure and organization to the content on your site. Its main function is to maintain a hierarchy of content and to offer a means of ordered navigation between them. These are the familiar previous, next, and up links that you can see at Drupal.org in the handbook for example, at http drupal.org node 22963 . Furthermore, the Book module has a content type of its own, called book pages.
Using Your Custom Taxonomy
Now that you've created your custom taxonomy you need to know how to use it on your web site. As always, WordPress features some very easy-to-use functions for working with your custom taxonomy. The following shows how you can display a tag cloud showing your custom taxonomy terms lt php wp_tag_cloud array 'taxonomy' gt 'ingredients', 'number' gt 5 gt The wp_tag_cloud function can accept a lot of different arguments, but in this example you're only using two taxonomy and number. First, you set...
Database backup and restoration
If you have completed this chapter up to this point, then you already have a backup of your database, and exported it either via phpMyAdmin or via the command line. All you need to do is follow those same steps that we completed earlier to create another database backup. But wouldn't it be nice if we could automate this process so that we don't need to remember to manually back up everything We can. One method is to use the excellent WP-DB-Backup plugin This plugin not only allows you to...
Uninstall Your Plugin
A nice feature to include with your plugin is an uninstall feature. WordPress features two ways to register the uninstaller for your plugin the uninstall.php method and the uninstall hook. Both methods are executed when a deactivated plugin is deleted in WordPress. The first method you'll look at is the uninstall.php uninstaller method. This is the preferred method for uninstalling a plugin. The first step to using this method is to create an uninstall.php file. This file must exist in the root...
Using Loops Strategically
Throughout this chapter, I've presumed you will use WP_Query to instantiate a custom Loop. This is seen by many to be a best practice because it enables you to operate with more than one Loop. As the cornerstone of WordPress, the Loop is very important and it is common to need to query the posts more than once to achieve different results. Some sites will use featured stories sliders like those seen on popular news sites. Others use layouts that segment the page according to categories and...
Editing image settings
You know how to get images into your posts now. But what if you want to change an image's settings You don't have to delete it and start from scratch. If you move your mouse pointer over an image in a post that you're editing or writing, the two icons shown in Figure 6.24 appear. Figure 6.24 Click the landscape icon to edit the picture's settings or the prohibited symbol to remove the picture from the post. The red circle with a line through it the universal prohibited symbol deletes the image...
Profile Field Setup
Skip the Forums Setup screen for now, and instead click on Profile Field Setup. On this screen, there are three actions that you can take. You can add additional field groups, add new fields, and then choose the location for each of these fields within their group. At present, your installation of BuddyPress has one default field placed within one default field group which now bears the name that it was given when you changed it from Base on the BuddyPress Settings screen. Any fields located in...
Editing the search and sort options
With the configurations of Meta fields to search by previously completed, your members are now searchable not only by the default fields used by the plugin but, also, using all of the custom fields that you specified. While this will make it quite easy for visitors to locate information, there's one problem. Take a moment to visit the members' page on your website and then click the drop-down menu located next to the search bar. As you can see, any custom field of two or more words contains an...
A Loop for Each Category
Now that you've reset your query, it's time to create that magazine layout. There are various ways to accomplish this, depending on how you've set up your content. Perhaps you've created a hierarchy of pages, and you want to show those instead. For the moment, however, let's assume that you're using categories to segregate your posts into different departments, since this is the most common scenario. Once you see how this works, you should be able to adapt this code to your needs using some of...
Putting It All Together
Before we move onto some more sophisticated modifications of our theme, I want to show you just one example of how all those template files and hooks work together to create the markup that you see when you load the site in your browser. single.php is a good template to start with it's the one that controls the display of a single post. Pop it open with your favorite text editor and take a peek calling the header.php get_header action hook for placing content above container...
Setting up Super Cache
Unlike most plugins, Super Cache doesn't start working as soon as you activate it. You have to configure it first. You'll see a red-outlined warning message on your plugin list until you set up caching or deactivate the plugin, as shown in Figure 11-2. Figure 11-2. WP Super Cache activation Figure 11-2. WP Super Cache activation Go to Settings Super Cache to configure the plugin Figure 11-3 . The first thing you have to decide is whether to run the plugin in Half On or full On mode. In Half On...
Introducing NextGEN Gallery Buy Now Buttons
As previously mentioned, the NextGEN Gallery Buy Now Buttons plugin is meant to be used in conjunction with NextGEN Gallery. After this plugin has been installed new settings will be added to the NextGEN Gallery configuration area that you can use to sell images from your store. Setting up and configuring NextGEN Gallery Buy Now Buttons Since the installation instructions provided with NextGEN Gallery Buy Now Buttons are lacking, the steps that you need to follow are being provided here, so...
Using MAMP
Similar to WAMP, MAMP stands for you guessed it Mac, Apache, MySQL, and PHP. Mac users will head on over to http mamp.info and download the free version of the server. Once you download and unpack the ZIP and launch the .dmg file, it's a pretty straightforward process for copying the MAMP folder to your Applications folder and launching the app. Again, like WAMP, MAMP from the start page offers you an easy way to launch phpMyAdmin. phpMyAdmin will allow you to easily create a database and...
Using an external Shipping Calculator
The WP e-Commerce plugin supports integration with UPS and USPS. As these are both third-party services, you should create an account with one or the other before you can offer them as valid shipping options. Using one of these services relieves you of some of the burden of determining how much shipping to charge. UPS or USPS will calculate it exactly for you and present the cost to the customer during checkout. The UPS Shipping Calculator differs from USPS in that it does not actually require...
Your Vision Needs A Home
FOR A LEGENDARY, LUCRATIVE WEB PRESENCE, LET ME FIELD YOUR DREAMS. You have just seconds to impress your viewers. Dont kid yourself- looks do matter. I take caro of all the geeky stuff. HTML code, CSS, JavaScript, Figure 3.2. Daina Reed's purple hues Figure 3.3. The BountyBev site embraces the color blue Figure 3.3. The BountyBev site embraces the color blue If you're designing a theme that will be used by a wide range of publishers, it's important that you consider the role brand will play....
Custom Visibility Settings
The first field on the block configuration page, Custom Visibility Settings, deals with the question of whether authenticated users should be able to customize which blocks are visible to them when they visit the site. The first option, Users cannot control whether or not they see this block, means essentially that the administrator-defined visibility settings are to be honored, and the user will not be given the choice to enable disable this block. The other two options, Show this block by...
Making Room for Options
For a more complex example, let's look at the Next Page plugin, which provides three template tags. They print links to the previous, next, and parent pages of the currently viewed page. The corresponding functions are very similar to one another, but I'll show you all three so you can see the minor differences. There's a fourth function as well, a utility that's called by the previous_link and next_link functions. It gets a list of all pages, minus those explicitly excluded, and returns them...
Basic eShop setup and usage
Getting started with eShop is as easy as, if not easier than, YAK. The first step is to install the eShop plugin just like you would any other plugin for WordPress. Once it's installed, you will see in your Dashboard an eShop link under Settings and a full, expandable eShop side menu, as shown in the following screenshot There are only a few minor settings to configure before you can hit the ground running. To get started, click on the eShop link under Settings to make a few basic configuration...
Adding an Options Page 1
Almost every WordPress plugin involves some sort of option, and that means you'll need to create the form that lets users manage those options. If you went through the process of creating theme functions back in Chapter 7, the process for plugins will look very much the same. To add an options page to the main navigation menu, you need two functions. One will display the content of the options page, and the other is a container for the add_options_page function. Finally, you'll need to add your...
The Shortcode API
Creating shortcodes in WordPress is a matter of creating the function that prints out what you want, and then defining it as a shortcode. In the case of Next Page, the shortcodes are just alternatives to the template tags they do the same thing. Since that's the case, and there are no arguments to be dealt with, creating the shortcodes takes all of three lines, as shown in Listing 9-17. Listing 9-17. Creating the three Next Page shortcodes add_shortcode 'previous', 'previous_link' add_shortcode...
Drats Its Not Here
LOOKS LIKE THAT URL DOESN'T WORK. YOU MIGHT TRY A DIFFERENT ONE. Go home, tiy again or search the site Or, take a look at Backstories or Bold Locals Figure 3.66. A stylized 404 page from The Bold Italic7 An often overlooked but crucial piece of the WordPress theme anatomy that should be addressed in the design phase is a standard HTML test page. This is just a regular WordPress page whose purpose is to test styling for all of the commonly used HTML elements headings, paragraphs, form elements,...
BuddyPress plugins explained
There are nine plugins in the base BuddyPress suite. Each one can be used to add a social feature to your site. The plugins are Extended Profiles This allows you to create extra profile fields, which can be filled in by the members. Private Messaging This allows members to contact each other directly. There are private messaging plugins for WordPress and also for BuddyPress which we will learn more about later . Rather than confusing your users with multiple places to send receive PMs, I...
Installing bbPress
To install bbPress, you will need some information about your WordPress MU setup. It's a good idea to have your wpmu-config.php file opened and be logged in to your WordPress MU admin panel, so you can find all the information you need quickly and easily. There are a lot of forum scripts that can be made to work with WordPress MU through the use of some creative coding, including the ever popular phpBB. However, for the purposes of this book we will use bbPress, as it is designed for use with...
Product Page Settings
The largest number of presentation options falls under the Product Page Settings category. The following screenshot shows the available options Select what product group you want to display on the products page Replace Page Title With Product Category Name Product Groups Only All products displayed O Sliding Product Groups 1 product per page Unless you purchased any of the Gold Cart upgrades, there is only one view available next to Product Display. Have no fear, the Gold Cart is not required...
WordPress
In order to set up the self-hosted version of WordPress WP , you need a host that supports PHP v.4.3 and MySQL v. 4.1.2 . If you want to set up multiple WordPress installations or use other database-driven software , you will probably want a host that offers multiple MySQL databases. We suggest a Linux-based Apache server. Make sure you get enough storage at least 1GB. Additional utilities that are helpful for WordPress-based sites include PHPMyAdmin for working with your database and...
Experimenting with advanced image settings
Clicking the Advanced Settings tab brings forth a wonderland of new and exciting yes, I'm a geek image settings to play with Figure 6.26 . Source ' Title Link del CSS Class Styles Target Figure 6.26 Advanced image settings are powerful. Don't fiddle with them if you don't know what they do. Here's what you need to know about the Advanced Image Settings options Source. The source of the image is required, and the text box is prepopulated because you've already uploaded this image to your blog....
Understanding the jQuery wrapper
As we move through this title, you'll hear and learn a lot more about the jQuery object, also called the wrapper or wrapper set, which probably makes the most sense, as it's a set of elements you've selected to work with. But as it's essential to how jQuery works, we'll do a quick introduction now. To fully understand the wrapper, let's back up a bit outside of jQuery. Ultimately, it all starts with your browser. Your browser has a JavaScript engine and a CSS engine. The browser can load, read,...
Roles and Permissions
Drupal strives to offer fine-grained control over the access of content and the execution of actions. It is important that you, the site administrator, can decide exactly what each user is able to see and do on the site. To support this, all users are assigned roles and permissions. A role describes a profile or use case for a user or group of users. For example, you may have roles named Moderator, Editor, and Admin. Two roles are defined by Drupal by default The Anonymous User role is assigned...
Creating Navigation
Listing all of the pages that exist on a blog Listing all of the categories defined for a blog Listing all of the tags in use on a blog Highlighting the current page in the navigation Adding a search function to a theme Getting the category page link from a category name Displaying page links only if the destination page exists Creating a category drop-down menu Creating drop-downs using child pages One of the most important aspects of any website is navigation. Making sure that a visitor can...
WordPress Configuration and Core Plugins
This chapter demonstrates how to set up and work with WordPress, including creating posts and pages and the basic editing of .php theme template fles. It offers strategies for configuring WordPress and ways to extend the admin tools via plugins. By the end, the user will be able to effectively use WordPress as a CMS content management system and in conjunction with Flash. In this chapter, we cover WP configuration and settings Inputting content in the Visual Editor Extending the Visual Editor...
Exercise 21 Block Offensive Usernames
Suppose you want to block all usernames that contain the text bad word. 1. Create a new rule by selecting access control gt account rules gt add rule admin access rules add . 2. Select Deny and Username, and then enter the mask bad word , as shown in Figure 2-3. permissions roles account rules list add rule check rules Matches any number of characters, even zero characters, _ Matches exactly one character. 3. Click the Add Rule button. Your rule is now in effect. 4. To test it and make sure it...
Table of Contents
Chapter 1 Introducing WordPress MU_7 Making your own social blog network 10 Choosing between VPS, dedicated, and grid hosting 14 Server requirements for WordPress MU 15 Recommended WordPress MU hosts 16 Building our example site The SlayerCafe 16 Chapter 2 Installing WordPress MU_19 Setting up a local web server 20 Time for action - getting your server set up 20 Preparing for WordPress MU creating a database 23 Time for action - creating a database for WordPress MU 23 Time for action -...
Configuring Site Settings
To begin configuring Drupal, make sure that you are logged in as the administrator the account that you created in Chapter 1 , and then select administer gt settings in the navigation block to get to the site settings page the URL to the page is When you access the site settings page, Drupal takes the opportunity to check some aspects of your installation in order to help you avoid problems. Because of this, you may be confronted with one or more messages when you access this page for the first...
Creating Drupal Content
In Drupal, there is a concept of a front page, which will be the page shown whenever your site is accessed with the value that you gave as the base_url, with no further path information. At the moment, with your freshly installed Drupal site that has no content, this front page will show the following message Welcome to your new Drupal-powered website. This message will guide you through your first steps with Drupal, and will disappear once you have posted your first piece of content. As it...
The Downside of WordPress
All is not sunshine and fruit punch in the world of WordPress. Using a blogging platform that is engineered like this one has a couple of drawbacks Appeal to bad guys. Popularity and an open codebase are generally a good combination, but a few people out there are always looking to ruin everyone's fun. Because WordPress runs so many high-profile sites, some nefarious types are on the lookout for flaws that can be exploited. Luckily, the WordPress developers are very quick to patch...
What you need for this book
In order to build the projects detailed in this book, you will need the following An installation of WordPress 3.0 or greater MySQL version 4.1.2 or greater Specific chapters have their own unique requirements. Here are the various themes and plugins that you will need in order to build each of the projects detailed in this book. The following are required for Chapter 1, Project 1 Migrating a Static Website to WordPress The Import HTML Pages plugin 1.21 or greater The Redirection plugin 2.1.25...
About The Technical Editor
MIKE LITTLE is the co-founding developer of the WordPress project. He started WordPress in 2003 with Matt Mullenweg now of Automattic Inc. and has been developing with and using it ever since. He now runs zedl. com, his web development and consultancy company, which specializes in WordPress. He recently worked on a number of government WordPress sites, most notably a Law Commission consultation site, and now develops and supports a site for a large Cabinet Office client. He is a published...
Table of Contents
Chapter 1 Getting Started WordPress and jQuery_7 Core fundamentals you need to know 8 JavaScript and AJAX techniques 10 Not essential, but helpful Image editor 18 jQuery background and essentials 19 What jQuery does really well 19 How we got here From JavaScript to jQuery 20 Once upon a time, there was JavaScript 21 Why jQuery is simpler than JavaScript 22 Understanding the jQuery wrapper 23 Downloading from the jQuery site 26 Including the jQuery library 29 WordPress background and essentials...
Table of Contents
Chapter 1 Leveraging Flash in WordPress_7 Developing a strategy to use Flash amp WordPress 8 Embedding Flash .swf files in WordPress 12 Adding Flash detection with SWFObject 2.x 16 Adding Flash detection with Flash-generated JavaScript 23 Chapter 2 WordPress Configuration and Core Plugins_27 Inputting content in the Visual Editor 28 Extending the Visual Editor with plugins 31 Inputting content via the HTML Editor 35 Editing theme template files in the Theme Editor 36 Configuring WP for maximum...
Why WordPress
WordPress is one of many PHP MySQL content management systems that allow content editors to use a web interface to maintain their sites instead of editing and uploading HTML files to a server. Some systems, like Movable Type and Textpattern, have reputations as good blogging platforms. Others such as Joomla, Drupal, and Expression Engine are more commonly associated with commercial or community sites. WordPress began as a blogging tool, but early on the developers added pages as a separate...
Table of Contents
Chapter 1 Getting Started with WordPress and e-Commerce WordPress is flexible and extensible Installing from the WordPress Dashboard Installing themes through the WordPress Dashboard Activating third-party themes 29 Enabling and disabling comments 31 Disabling comments on individual posts and pages 33 Removing comment traces from your theme 33 Setting up a static front page 36 WordPress SpamFree contact form 45 Chapter 3 Configure Your e-Commerce Settings_49 Base Country Region, Tax Settings,...
WordPress 28 Themes Cookbook
Over 100 simple but incredibly effective recipes for creating powerful, custom WordPress themes community experience distilled PUBLISHING All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the...
Contents at a Glance
About the About the Technical CHAPTER 1 Introducing CHAPTER 2 Configuring CHAPTER 3 Using the Drupal Core CHAPTER 4 Adding Contributed CHAPTER 5 Adding and Customizing CHAPTER 6 Maintaining Your CHAPTER 7 Introducing CHAPTER 8 Installing and Configuring CHAPTER 9 Touring phpBB's CHAPTER 10 Securing and Maintaining CHAPTER 11 Modifying CHAPTER 12 Styling CHAPTER 13 Introducing CHAPTER 14 Installing and Configuring CHAPTER 15 Starting to Blog and Building Your Community 401 CHAPTER 16 Changing...
Apc336
Caching MySQL with HyperDB and the Query MySQL query Harnessing the Chapter 19 Understanding WordPress Roles and Capabilities 343 Looking at WordPress Roles and User Adding and removing custom Checking capabilities in Using the Role Manager Part VI Alternate Uses for WordPress 353 Chapter 20 Using WordPress for Alternative Blogging 355 Photoblogging with What is a Examples of notable The Fine Arts Lens Great WordPress photoblog Monotone StudioPress Black Using EXIF data in a Implementing a...
Birmingham Mumbai
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the...
WordPress 24Hour Trainer
Chapter 1 Thinking Like Chapter 2 Planning Your Site for Part II Firing Up WordPress 15 Chapter 3 Installing Chapter 4 Admin Area Chapter 5 Basic Admin Part III Working with Written Content 39 Chapter 6 Adding a New Post Chapter 7 Working with the Text Chapter 8 Laying Out Chapter 9 Advanced Post Chapter 10 Adding a New Part IV Working with Media Content 81 Chapter 11 The Basics of Handling Media Files 83 Chapter 12 The Upload Insert Window Tabs 89 Chapter 13 Image Options in Chapter 14 Editing...
WordPress 29 eCommerce
Build a proficient online store to sell products and services Build a proficient online store to sell products and services All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information...
IIM DEP fH
800 East 96th Street Indianapolis, Indiana 46240 Copyright 2010 by Pearson Education, Inc. All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the...
















