How To Write a Restricted Content Plugin

73

Restrict content to registered users

There are a lot of sites out there, particularly digital education sites, such as Net Tuts and Blender Cookie, that push out a lot of “premium” content that is only accessible to registered users.

In this tutorial, I’m going to show you some of the basics of writing a WordPress plugin from scratch that will allow you to restrict content on your site to registered users. You will be able to restrict complete pages / posts by clicking a check box or just sections of content using WordPress shortcodes.

Read More »

Custom Font Uploader for WordPress Themes

164

WordPress theme option panels were a tremendous stride in the world of theme development; they gave site owner’s the ability to modify various aspects of their site, without ever having to touch the code. Every great theme either has or should have an extensive options panel.

In this tutorial, I’m going to demonstrate how to add a custom font uploader to your options panel. This will allow site owners to upload any number of font files and apply them to different sections of the site.

Read More »

I Just Dont Care About the GPL/Licenses

108

PliablePress and the GPL

There has been another GPL storm going on in the WordPress world in the past few days. Yep, again.

I don’t normally make a comment on them, but given that I’m directly involved with it now through PliablePress themes (All of our themes have to come with some sort of license, right?), it seems time to finally step in.

Read More »

Get Your WordPress Themes from PliablePress!

84

intro

Anyone following me on Twitter will already know this by now, but our big project, PliablePress, went live around 24 hours ago!

And it’s been great! It’s been crazy and I’ve been chasing things around everywhere and I meant to have this post published, well, 24 hours ago, but all of that aside, it’s been great.

We’ve had loads of great reactions to the designs, and even our first happy customers!

In this post I want to show you what we’ve done so far, share some videos of the framework in action, and offer you a discount if you want to become a customer!

Read More »

My Ideal WordPress Framework

104

Chameleon

Last week, I broke the news that we’re releasing premium WordPress themes in 2 weeks from now.

Today, I want to talk to you about the framework we’ve built for all our themes to run on (and all of your themes too!).

When I created this framework, I had very specific ideas about what I wanted. This is the framework that I would want to use, but it’s by no means perfect. Nothing is, so I’d really love to hear what you think of it at the end.

Read More »

Automatic WP Thumbnails & Proportional Excerpts

108

pic

Automatically grabbing thumbnails from posts is cool. But what about automatic excerpt lengths that match the height of those photos?

I recently redesigned a blog for a client and it had an automatic thumbnail for each post, with a fixed length excerpt beside it. It was okay, but our client didn’t like the fact that it was “cutting” his pictures off sometimes. Our goal then had 3 steps:

  • 1 – To set a thumbnail’s height proportional to the original picture, so that we would not cut parts of it off.
  • 2 – Use this height value to display excerpts about the same size.
  • 3 – Set up an automatic Lightbox on images that are too large for the content area.

Read More »

How to Optimize a WordPress Database

98

Optimize WordPress Database

Have you looked near your MySQL database since you first set it up? If you’re like most of us, you probably don’t go in there too often.

MySQL is complicated and unfriendly to use, and well, your site works as it is. So why bother?

If you do happen to venture in there occasionally though, you might find there are a few simple tricks you can pull to make the most of your database usage. From headache-saving tricks for you, to cranking a little more performance out of your server, check out the 7 tips below.

Read More »