New here? Read Greetings Earthling!

My First Wordpress Plugin - Custom Side-Space

I like the concept of widgets and I especially like the simple text widget where I can put in my own HTML and do some magic in the sidebar. But ... what if I want custom text on each post? I want to add a text widget and add custom text on each post with obvious advertising purposes. But Wordpress does not do that. So, as I'm too lazy to search for anything like that on the Wordpress site, I wrote it myself.

Quick Overview

It's very simple. You activate the plugin. Then you go into the Appearance - Widgets menu and you add the 5ub.Side Space. After you add it move it up or down as you wish and then you configure it. In each post, you will see a new sidebar box asking for title and text. You choose whther you add or not. If not values are set on post and no values are set by default then you will not see this widget on the blog at all.

Configuring Side Space Wordpress Plugin

After you have instered the widget you get to set default values of title and text that show up everywhere if they are not overridden with post specific values. Post specific values have priority over default values. The sticky header and footer remain the same everywhere if they are filled in.

If you check  Output As Javascript then the widget will be printed as JavaScript so it won't be indexable by search engines. If you check Show In Listings, the widget, which by default is shown only in posts & pages, will be shown in listing pages like Archives / Categories / Homepage but only with default values. You can't set custom values for listing pages. You need to have both title and text (default or post related) for the widget to show up. You can have default title + post specific text or post specific title + default text and so on. But both need to exist in order for the widget to be printed out.

If both title and text exists then, if existent, header and footer are prepended / appanded to the widget. And when you deactivate the plugin all the settings get wiped, both default and per post ones. This way no gargbage is left in your Wordpress database.

Download And Support

This section is restricted to registered users. Please register to download this free wordpress plugin.

I'm cheap on the explanations but I'm sure none of you will hesistate to use the form below to ask questions and I'm more then willing to help. If you notice bugs don't squash then yourselves, tell me and I'll squash them for all of you.

*** Forgot to mention this was created on WP2.7 and tested on WP2.5 also. Backward compatibility beyond Wp2.5 is not guaranteed in any way.

Category: PHP, Wordpress Plugins

4 Responses

  1. +flux1:2 — #40 says:

    thanks 5, been looking for something like this for a while

  2. I can’t register, either on firefox nor opera. I’m not showing referer to anyone, but I’m not bot either. How to register here?

    • $@5ubliminal13:361 — #1 says:

      Apparently my public stats plugin was fking up Wordpress and was sending output, hence blocking Wordpress from doing redirects.

      Thanks a lot for noticing this minor inconvenience. StatpressCN … don’t use this shit!