Blog Footer Plugin for Word Press

We like WordPress. A lot. It is written in the cleanest code, very well structured, efficient, and does a socially useful function.

That’s high praise for a piece of computer software. A socially useful function. Now for my socially not-so-useful reasons, I wanted to run all of my various blogs out of a single directory. That way, I only need to upgrade one directory when a new revision of wordpress comes along.

Easy? Well, mostly. We still have a couple of got-ya! kind of problems every now and then. Like how to select the proper database for the proper blog: that’s simple. Just use a switch statement in the wp-config.php file that selects the proper database from a switch on the HTTP_HOST environment variable.

One small problem, is that one of the blogs needs special code appended in the footer. This html code isn’t shared with the other blogs. Some examples of that kind of code would be ring-specific, affiliate code, hit-tracking code, you know all that kind of stuff.

So I found a plugin entitled ‘WP-GenericFooter” which did 110% of the dirty work. It’s written by David Goldstein. The only thing I needed that Dave didn’t put in the original was that he designed the plugin to put the footer at the end of each posting. I needed it as paart of the real footer at the bottom of the blog page.

It was a no-brainer to change the code to put the text at the bottom rather than at the end of each post. That is due to the great design of WordPress and the elegant coding of Mr. Goldstein (send him flowers, send him beer, I just want your web-hits).

If you want a wordpress plug-in that puts any html at the bottom footer of your blog here it is:blog footer plugin.

Let me know if it is useful to you!

2 Comments

  1. Posted February 5, 2008 at 6:26 pm | Permalink

    Hi It was very difficult to find a blog footer plugin using Google. But I am glad to have found you. I have two questions:

    1) I noticed that David Goldstein disappeared from the face of the internet. This is the only place where you can down load his plugin http://www.wp-plugins-db.org/plugin/2007/09/page/2/
    2) I am not sure what you mean by this “change the code to put the text at the bottom rather than at the end of each post.” Does it mean that your code puts the footer at the end of all comments and other stuff you may have and the original puts it above these below the article only?
    Regards
    Johan

  2. JAHbInI
    Posted February 5, 2008 at 6:51 pm | Permalink

    Greetings Johan.

    Yes, my hack to David’s plugin is this: His plugin widget put the html text down at the bottom of each post, like where the author and date are put (ahead of the comments, I believe).

    Mine puts the widget text down in the page footer. Why would I want this instead of just modifying the footer.php? Sigh. I have several blogs running out of the same directory. Selecting the differing blogs is easy with a small change to the configuration file to select the database from the incoming URI. I also use ‘sandbox’ based themes for all of my blogs (some don’t even look like blogs) and so I don’t want to hack the footer.php because it is shared among all those blogs.

    There is ONE problem that I’ve identified (but have been too lazy to fix). If you use both David’s and mine at the same time, they clash in that they use the same option to save the HTML. A small problem, but there it is.

    Glad to answer your questions, and if you have any more, just ask.

Post a Comment

Your email is never shared. Required fields are marked *

*
*