Hi guys this is my first post on wpcult the great site Austin built. Hope you guys find it usefull.
If you run a blog using the wordpress software then your blog is a target to hackers. Below I will list some hacks and just how they can help you keep your business/site safe.
The following is code to Block Bad Queries and protect your blog from malicious URL Requests.
Place the following code into a text file and name it what ever you like for example blockbadqueries.php upload it to your plugin folder and activate it in your wordpress admin just as you would any other Plugin
<?php
/*
Plugin Name: Block Bad Queries
Plugin URI: http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/
Description: Protect WordPress Against Malicious URL Requests
Author URI: http://perishablepress.com/
Author: Perishable Press
Version: 1.0
*/
global $user_ID; if($user_ID) {
if(!current_user_can(‘level_10′)) {
if (strlen($_SERVER['REQUEST_URI']) > 255 ||
strpos($_SERVER['REQUEST_URI'], “eval(“) ||…
Just run the following query on your WordPress database, and all revisions (As well as meta associated with it) will be deleted from your database.
Of course, do not forget to make a backup of your database before running the code.
DELETE a,b,c
FROM wp_posts a
WHERE a.post_type = ‘revision’
LEFT JOIN wp_term_relationships b
ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id);
If you’d like to see more SQL queries for WordPress, make sure to read this post.
Thanks to One Extra Pixel for this cool query!
Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!WordPress tip: Get rid of unused post revisions
Tufte gives his thoughts on the Windows Phone 7 Series interface (There’s a name). He doesn’t seem too impressed but no one has actually used it yet so maybe the end result will be better, but I personally doubt it. Also the comments are worth checking out, they have some good ideas and points.
Some pop out points:
Design at the actual scale of the final device.
Design for the product not the keynote.
No related posts.
For the recent (first) design of my personal site I added in some Tumblr style functionality. In this post we’ll look at how WordPress can be used to create a Tumblog.
We’ll be using a function that was added in 2.7 that doesn’t get used as much as it should: the post_class function. It adds a CSS class to each category, tag etc. we’re interested in the category bit. First thing to do is to create all the different categories you want — that’ll probably be all the standard Tumblr categories: movie, picture, article, quote and link. You’ll then need to add to within your loop the post_class functionality:
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
This now gives each post a class of category-name (ie category-link). This means we can then start styling! For my blog I just added a different icon to each post type (not strictly true—read…
Getting your plugins listed in the official WordPress Plugin Directory is considered a chore by many, but it’s nothing that should stop you from sharing your plugin with the community at large. Up until now, I haven’t really bothered with adding my plugin collection to the Directory, but after Herb Goodman helped to package my recent Block Bad Queries plugin, I figured now was a good time to dig in and learn the ropes. It turns out the process only took about an hour to complete, not including the waiting period for access to the Subversion Repository (which was about 18 hours). Definitely worth the potential exposure provided by having your plugin listed in the official directory.
If you are a seasoned plugin developer, you already know how to hook it up at the WordPress Directory, but for those who don’t, this DiW tutorial will show you everything you need…
Design your database with cautionThis first tip may seems obvious, but the fact is that most database problems come from badly-designed table structure. For example, I have seen people storing information such as client info and payment info in the same database column. For both the database system and developers who will have to work on it, this is not a good thing. When creating a database, always put information on various tables, use clear naming standards and make use of primary keys. Source: http://www.simple-talk.com/sql/database-administration/ten-common-database-design-mistakes/Know what you should optimizeIf you want to optimize a specific query, it is extremely useful to be able to get an in-depth look at the result of a query. Using the EXPLAIN statement, you will get lots of useful info on the result produced by a specific query, as shown in the example below:EXPLAIN SELECT * FROM ref_table,other_table WHERE ref_table.key_column=other_table.column;Source: http://dev.mysql.com/doc/refman/5.0/en/using-explain.htmlThe fastest query… Is the…

Site posts tough WordPress questions you pay a few bucks to the person that solves the issue. http://www.wpquestions.com/ #
An option for private member access on WordPress is Wishlist Member $US97 http://member.wishlistproducts.com/ #
Prezi – Turning Dull Slideshows into Revolutionary Dynamic Presentations http://bit.ly/cNnPGq /cc @feedly #
Great book: Digging into WordPress http://digwp.com $US27 PDF version includes lifetime subscription to stay current! #
BuddyPress plugin, a great social networking layer,now works on WordPress self hosted versions! http://bit.ly/bE5QG2 #
14 Flickr Plugins for WordPress http://bit.ly/cUNnbB #
20 WordPress Plugin Solutions for Image Handling http://bit.ly/a7SXPR -> some of the best in this fantastic list! #
30 Wordpress Plugins To Help You Improve Your Sidebar http://bit.ly/a8JW0q interesting mix, some good, some crappy too. #
SEO Checklist http://bit.ly/997Ec9 A good long list of SEO items that help improve your ranking. /ping @thesassyseo #
Integrated Gmail Firefox plugin beta version http://bit.ly/cChkEG shows calendar below gmail inbox,…
Getting started with CouchDBApache CouchDB is one of a new breed of database management systems. These new systems are known as NoSQL. NoSQL is a buzz word term first popularized in early 2009 to describe a database that is non-SQL… NoSQL is a term for a loosely defined class of non-relational data stores that break with a long history of relational databases and ACID guarantees. Data stores that fall under this term may not require fixed table schemas.The first reason I am quickly growing to love CouchDB, and hence decided to write this post is due to the fact that it is a document-oriented DB, rather then storing content into set tables, it allows us to store information, in a manor that is as flexible as an array.For example here’s a sample document:
FirstName=”Bob”, Address=”5 Oak St.”, Hobby=”sailing”.
However another document could have this data:
FirstName=”Jonathan”, Address=”15 Wanamassa Point Road”,…
Today I want to go over some of the do’s and don’ts of WordPress theming. Regardless if you’re building a WordPress theme for yourself or if you’re building one for release so others can use it, you should be following these do’s and don’ts as closely as possible.
1. Do not hard code full URL’s into your themes
When you’re building your themes, there may be times where images are used, for social media icons or RSS feed icons, and during these points in your coding, you may want to code the full url out (ie: /wp-content/themes/your-theme-name/images/image.jpg) but this will cause errors in the website whenever the person using your theme changes their theme folder name.
The proper codes to use in order to pull the full URL’s dynamically are below.
<?php bloginfo(’stylesheet_directory’); ?>/images/image.jpg
2. Do utilize the template tags as much as possible
WordPress does an awesome job of…
Paste the following code into a text file, and save it as blockbadqueries.php. Once done, upload it to your wp-content/plugins directory and activate it like any other plugins. That’s all!
<?php
/*
Plugin Name: Block Bad Queries
Plugin URI: http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/
Description: Protect WordPress Against Malicious URL Requests
Author URI: http://perishablepress.com/
Author: Perishable Press
Version: 1.0
*/
global $user_ID; if($user_ID) {
if(!current_user_can(‘level_10′)) {
if (strlen($_SERVER['REQUEST_URI']) > 255 ||
strpos($_SERVER['REQUEST_URI'], "eval(") ||
strpos($_SERVER['REQUEST_URI'], "CONCAT") ||
strpos($_SERVER['REQUEST_URI'], "UNION+SELECT") ||
strpos($_SERVER['REQUEST_URI'], "base64")) {
@header("HTTP/1.1 414 Request-URI Too Long");
@header("Status: 414 Request-URI Too Long");
@header("Connection: Close");
@exit;
}
}
}
?>
Thanks to Jeff Starr for this great plugin! Do you know that Digging into WordPress, Jeff’s book, has just been updated? Click here for more info.
Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!WordPress plugin: Protect your blog from malicious URL Requests
…
This is me trying to understand it:
Instead of services that read your feeds (e.g. Google Reader) having to ASK for your feed periodically, now they can instead just wait until YOUR SITE notifies THEM. Basically a “push” service.
It seems to me this is half the equation. The other half is building services that accept these push notifications. I’m not sure who is already doing that, but I wouldn’t be surprised if Google is on it, since it seems like a more efficient way of doing things on both sides (less server resources on both sides).
Two concerns I can think of:
Is this just as reliable as the “old” way? People not getting feed updates because of a hiccup in the chain sucks for everyone.
This makes “accidentally” hitting that publish button potentially even more embarrassing than it already can be. Like when you accidentally publish a post…
This is basically a smarter way to handle the situation I just posted about. Using a function to manipulate the favorites dropdown instead of a core hack.
Direct Link to Article — Permalink on DiWLike the article? Get the book!
© 2010 Digging into WordPress | Permalink | Comments | Add to
Delicious
Categorized: Links | Tagged:
I am sure most of you have downloaded Free Blogging Icons designed by Blog Perfume. Recently, Web Icon Set has released a set of free icons for blogger as well. This New Blogging Icon Set contains 10 high quality blogging icons in PNG format.
You can use these icons on your blog for both personal and commercial projects. Cute Blogging Icon Set inclides Design, Download, Freelance, Part-time, Hire Me, Not Available, About Me, Services, My Blog, Contact. You can also download other pretty web icons for free there.
Source: Cute Blogging Icon Set
SponsorsPSD2HTML.com – You Design – We XHTML / CSS. PSD to XHTML Service

You know the “quick action” button in the WordPress admin? It’s a darn useful little UI touch. At the Dashboard, the default is “New Post”. But depending on where you are in the Admin, the default of it changes. In general it’s really helpful. For example when you are in the Plugins area, the default is Install Plugins:
Default action being smart
A while ago I was moaning about one particular area where I didn’t find the default being so smart. When you publish a new Post, the default goes to New Post. To me it would make sense when you publish a new Page to have that button be New Page. If you have a WordPress site where you publish a lot of pages, you can feel me.
Reader Otto let me know there is a way you can change this. Here is Otto:
Adding the New Page as…
I just came across a post published today which goes over “the right way” to highlight author comments in WordPress. Basically, instead of the usual code that inserts the “admincomment” class for just the first user (user ID 1). In the post, that code is adapted for any post author, no matter what the user ID is, which can be especially useful to multi-author blogs.
Ever since WordPress 2.7 was released over a year ago, a new function was introduced to display comments called wp_list_comments which is known for supporting threaded comments as well. In addition to threaded commments, it also outputs a class automatically which can be used to style author comments in WordPress 2.7.
Screencast
In this screencast, I go over the various classes added to a comment made by a post author. I also go over how to style the .bypostauthor class.
Code Examples in Video:
.bypostauthor…

Version 2.0 is here! If you have already purchased the book, you have already gotten an email with a link to download the 2.0 version of the book. If you have been waiting for the print version to come back in stock, the time is now!
We sold out of the print version the first round in a matter of weeks. Right about that time, WordPress 2.9 was coming out, so instead of just reprinting more we decided to update the book and print new copies with that fresh information. That is exactly what we have done. The all-new Chapter 11 of the book deals with new stuff in WordPress 2.9 (and how to use the new features). That chapter will also be the home for future version-specific updates to WordPress.
Read on to find out more about the book. Oh and by the way, we’re sporting a fresh new…
2,131
Curious what others are searching for? Below are the most popular search terms over the last 30 days.

