A couple of posts back, I talked about possibly putting a WordPress blog on my (work) desktop for work notes.  One of the problems that I’ve been having with the work implementation of WordPress is that I cannot manage files (or upload them) to the wordpress installation, and the spell check function in the wordpress editor doesn’t work properly.  I’ve not had time yet to troubleshoot the problem in house (need to get a machine and replicate the environment in order to determine if there is something wrong with the work environment vs the scripts themselves.)

I found this post on iis.net which talks about issues with PHP, file upload and Frontpage.

http://forums.iis.net/t/1147328.aspx

Oh how I hate Frontpage.

 

As I am working more and more on my blog, I find myself searching for useful tutorials and information on both design, code and CMS management topics.  I found that SmashingMagazine.com has a wonderful list of 100 WordPress themes, which all appear to be free. (Although, I’ve not validating that they’re all compatible with the latest WordPress release, and this post was published back in January, before 2.6 was released.)

 

$current_plugins = get_option(’active_plugins’);
if (in_array(’plugindir/pluginfile.php’, $current_plugins)) {
// The plugin is active
}

The above code is useful for developing a theme around certain code.  This is important because a couple of projects I’m working on are intended to integrate external applications (that I’ve written) with WordPress to permit me to automate some work tasks via my website (and record the wine tasting journal so that my g/f can browse it via the website for everything that we’ve tasted before and what we thought about it.)

 

I implemented a new theme today. I also modified it a bit, since the original had functionality that didn’t interest me (like ads and a very prominant “subscribe via email” html form that I don’t want to support).  I had to add a navigation strategy to the “pages” which required that I hunt up a CSS tutorial on how to do what I wanted to do. (And let me tell you, there really is no easier tutorial than this australian authored tute.)

Lastly, I had to learn a little bit about WordPress template tags so that I could add edit links to each page/post template and also how to dynamically generate the navigation content.

I’m very pleased with the revisions.  I still want to teach myself how to build a drop down menu using CSS, but it’s not been a higher priority than some of the other activities on my list.

 

Fortes created a really nice “Post Levels” plugin which I used back at WP 2.2. Unfortunately, I recall testing this with a later release and it didn’t work properly so I backed out all of the code and the plugin that made this blog work. However, after finding his website again, I see that he hasn’t updated the plugin in over a year. So I’m going to give it a test run again. If it doesn’t work, well, then I have the original code and I’ll give it a shot trying to bring it current.

While poking around though, i came across this nice Dynamic Layout Library that he developed. I’ve been putting some thought in to reskinning my blog again. I’m not sure that I like this layout as much as I could. And tinkering with my blog is a useful waste of time. ;)

PS, looks like the original author might be spending some time to bring it current. I’m going to be pooring over the code to learn how he did what he did. Maybe I can support him, and maybe the knowledge will be useful for a couple of other projects I’m working on.

PPS, my editorial skills sometimes suck and I end up making multiple edits to get a post looking right. I get complimented all the time on my authoring skills, but people rarely realize just how much effort goes in to “getting it right.” Every once in a while, I like to leave a post in with edit notes to show people just how often I make mistakes. I am, after all (and contrary to popular belief), only human.

 

Browsing around for security tips (trying to work out an issue on my work blog), I came across:

http://boren.nu/archives/2008/07/14/ssl-and-cookies-in-wordpress-26/

define(’AUTH_KEY’, ‘put your unique phrase here’);
define(’SECURE_AUTH_KEY’, ‘put your unique phrase here’);
define(’LOGGED_IN_KEY’, ‘put your unique phrase here’);

These three keys increase the security of your browser cookies, making wordpress more secure to normal users.  These keys are only useful if your are implementing a mixed HTTP/SSL environment.  If you are using HTTP only, the you should stick with

define(’SECRET_KEY’, ‘put your unique phrase here’);

Added in 2.5, used to increase security of your browser cookies in an all plain text website (HTTP only).

define(’FORCE_SSL_LOGIN’, true);

Force usage of SSL for login and admin pages.

define(’FORCE_SSL_ADMIN’, true);

Force usage of SSL for admin pages only, login still uses HTTP.

 

I’m still trying to decide how these can best be used for web passwords to banking, credit cards, etc.  But this is one of the niftiest cryptography ideas I’ve seen this year.

Almost without exception, today’s Internet users prove their identity online using a fixed account name and password. In the past, this simple system provided sufficient security. But with the growing popularity of online banking and eCommerce, the value of stealing online identities has skyrocketed. And the increasing presence and “spyware” and “malware” on innocent users’ computers means that users can be “watched” while logging onto their banking and other eCommerce sites. Once their logon credentials have been “captured” and stolen, Internet criminals can easily assume their identity.

The trouble with a username and password is that they never change. We create them, write them down or memorize them, then use them over and over again. What has been needed is an inexpensive system that provides something which changes everytime it is used. GRC’s Perfect Paper Passwords system offers a simple, safe and secure, free and well documented solution that is being adopted by a growing number of security-conscious Internet facilities to provide their users with state-of-the-art cryptographic logon security.

And…  this PPP implementation can even be done in PHP [direct link], although the authors page is broken at the moment.  An alternate author is Daniel Hodder, his page appears to be working at first blush.

 

I decided I like revisioning after all.  I just had a problem last night where I was working on a post, and during the save process, the connection between me and this blog got interrupted, so the entire post got lost.

Revisioning would have saved me from that problem.

Of course, it does mean that I need to regularly perform maintenance on my database to delete old revisions that I no longer need.

 

Thanks to Lester Chan for highlighting the config settings for turning off revisioning and for modifying the autosave feature.  It appears that these two are closely linked.  Useful for my personal blog since there is only one editor here.  Not as useful for the corporate blog I manage for my employer, since there are multiple editors.  Still, they may want to reduce the frequency of auto saves at some point in the future, and it’ll be good to have those notes here to look back on.

One of the irritating feature for me in WordPress 2.6 is the post revision. I am the only author of my blog and hence this feature is useless to me.

Just in case you are wondering how post revision works, whenever a post is auto saved or edited, a new row will be created in wp_posts table. Hence if WordPress auto saved 10 times, you will have 10 new rows in wp_posts table.

In no time your wp_posts table will be filled up and the post ID will be huge.

To turn off this feature, add this following code to wp-config.php:

define(‘WP_POST_REVISIONS’, false);

To change the timing (in seconds) WordPress auto saves a post, add this following code to wp-config.php:

define(‘AUTOSAVE_INTERVAL’, 60);

You can also delete all post revisions by running this query in phpMyAdmin:

DELETE FROM wp_posts WHERE post_type = ‘revision’;

Be sure to backup your database first before performing any queries in phpMyAdmin.

 

Since I’m migrating content from one wordpress blog to another for the purposes of playing with the wordpress themes (trying to create a theme that I like), I learned a bit about the database along the way.  Like the fact that there are values within the database that point to the database table prefix used when you first set up the database.  If you change that prefix (to say host two copies of the same blog in two locations so that you can do dev work on the second version), then suddenly you’re “locked out.”

I found a nice article that helped me understand what was going on.

Thank you, kudos are due.

Favorite Books

Favorite Music

© 2011 Undecided Suffusion theme by Sayontan Sinha