Wordpress

You are currently browsing articles tagged Wordpress.

I wrote the text below in response to a friend’s LiveJournal entry wondering how one can backup an entire journal including comments.  Many people in LJ land are getting nervous that LiveJournal might suddenly cease to be or in some other way have reduced functionality.  My efforts over the last month to migrate my old LiveJournal to this website have been met with mixed success.

I am trying to make LJ Archive work. I can tell you that for me with a several thousand entry LJ and 8000+ comments, it *sort of* works. You don’t want whatever you download your journal into to be a locked proprietary format. So, for instance, LJ Archive has the option of turning it into HTML or XML or a few other formats from whatever database scheme they use. I would STRONGLY recommend putting it into something portable like that as LJ Archive just isn’t very well maintained. For that matter, many others aren’t either.

Even with backing up with LJ Archive, I’ve discovered several entries already that were missed for some reason. Now I’m having to go back through and check every entry by hand to try and confirm that they are all backed up and in a portable format. It’s a real pain in the ass.

I chose LJ Archive, however, because it’s the only one that allows me to export into a format that I can import into my WordPress installation for my website. The script to do it isn’t perfect (ie: no nested comments without a lot of work I didn’t bother doing) but at least the content gets saved. Also, it allows me to publicly post entries from the past that I think people would like to see (my travel stuff, etc).

As for what works on a mac, I’ve got no clue. You might look into the products that are available for Linux. Rather than installing just for the use of one program, you could use a LiveCD to boot into Linux without installing or even touching your hard drive.

Tags: , , ,

The guys that develop the Tarski WordPress theme released 2.4 RC1 today. I already have it running on my site and am enjoying some of the new features.

One problem I was having prior to and after the upgrade to Tarski 2.4 was my gravatar wasn’t showing up on comments I made. Granted, this isn’t a particularly popular destination on the internets but there are a couple of comments here and there. What I’ve been able to deduce was going on is that my comments had the wrong email address attached. I was using a different email account as my admin email for a while. Switching it over to the email address I have registered at Gravatar.com cleared up the problem for new comments but the old comments still refused to show my gravatar.

Some more poking around led me to realize that WordPress hadn’t switched over the email address assigned to my old comments to my gravatar-friendly account. A quick trip through the comment edit menu and everything is right in my blog once again.

An interesting note is that in the default WordPress theme, I didn’t have any problems and all of my gravatars showed up without having to edit anything. Perhaps there is some sort of unforeseen interaction between Tarski 2.4RC1 and WordPress 2.7RC1.

Tags: , ,

The oobject.com website has a style that I would like to replicate on my website for various parts of it.  I was thinking of a similar style for the front page and for a few of the other pages (portfolio, my travels page, etc).  Poking around their website, I don’t see how oobject does it.  Is that hand-coded or is it a plugin or ???

Update: It looks like they do it using a service from wists.com.  It’s a shame that there isn’t a locally-hosted option because I would enjoy running something like that on my website.

November 8, 2008 | Please leave a comment

I’ve been slowly porting content over from my old website host to my new website.  It’s been a bit of a painful process as I had hand-coded most of the html on the old pages in such a way that it is rather difficult to move directly from one server to the other.  Back when I made the pages in question, I didn’t own a domain name and was thus hosting it off of my university’s top-level domain behind a “/~username” setup.  To bring them over to my new site, I’ve been replicating the content of the old pages into pages on WordPress.  I have also moved the photos from the old site, where they were static, to the new site and a Gallery2 installation that allows more flexibility with some tradoffs that I have discussed in earlier posts.

As I’ve been moving the content over, I’ve been placing it into pages.  The way I’ve understood pages and posts is that pages are for static content, such as my old travel photos and writeups, and pages are for dynamic content that rotates through, such as what I am writing here.  Pages are organized hierarchically in WordPress while Posts are put into categories and have tags attached.

Looking at my traffic patterns, it seems almost as if the pages that I have put up aren’t registering in search engines.  My posts certainly get lots of hits, as is evident by the traffic spike I had for my Sarah Palin Erotica post.  Who knew so many people wanted to read about her having eskimo threeways?  I didn’t!

Is there a reason that I haven’t been getting very many hits on my pages?  Is it because there are no tags assigned to them?  Is it from the plugin (Google XML Sitemaps) I use to generate sitemaps?  Is it somehow related to the way WPG2 displays images on the pages?

This all leads me to wonder if it would be better to put my old travel photos (and newer ones) into posts rather than pages.  Thoughts, anyone?

Tags: , , , ,

Hello WordPress 2.7

I took the plunge and upgraded to WordPress 2.7.  So far, so good.  Nothing seems to be particularly broken.  The administrative interface is very different from the last version but I’m getting used to it.  It feels like some information takes more clicking to get to.  I also don’t like the new color scheme.  It’s very gray.

Soon the theme I use, Tarski, should be putting out a new version that will take full advantage of WordPress’ new features.  Once December hits and I have a few free days, I will be coding up a few templates and plugins for the site to make it a tad bit prettier, too.

My final concluision: 2.7 is a Good Thing.  I will be much happier though when it’s out of beta.

Tags: , , , , ,

Today I found out that Gallery 2.3 was released about a week ago. It’s been a few years in the making and has some very needed upgrades and bug fixes. I had thought about this before but really realized today just how bloated a Gallery2 installation can be. The English-only installation has well over 2000 files that need to be uploaded to a server. Granted, it could all be done on the server with a tar ball, but it is easier for me to unzip it on my local machine and upload via ftp.

The full installation option (the one that comes will all of the languages pre-loaded) runs somewhere around 10000 files. Quite frankly, that’s a bit absurd. With so many files and so many subdirectories, it becomes unmanageable to even unzip the installation file.

Why does Gallery2 need so many files? I really couldn’t tell you although it looks like the vast majority of them are language files. The KISS principle doesn’t seem to be at play here. I haven’t been able to find out if this was actually created yet, but this language manager tool that was in the works a few years back sure seems like something nifty that could be very useful, especially for those of us who ended up with many large language packs cluttering up our installations. After all, I really don’t need to use the administrative interface in British English.

WordPress so far has managed to stay away from such a large bloating problem. It seems to have better management of how many files it requires on your webserver. However, I wouldn’t be surprised to see WordPress have the same fate befall it. Beware, WordPress, and take note Gallery2, it is REALLY annoying having to work with thousands upon thousands of files on my webserver.

Tags: , , ,

Since switching over to Dreamhost a week or two ago, I’ve been working on transferring over all of the static content that I maintained in parallel to my Wordpress installation at my old webhost.  Finally after much futzing about, I transferred over the first two real pages of photographic content.  Behold, minimal content from the very first few days of my time in Tuinsia!  There are literally only two of the very first pages completely transferred.  It takes significant effort to coroberate between what I have on my old site, what I am putting onto this site, and Gallery2’s structure.

Speaking of Gallery2, it can be a real resource hog.  I guess that’s partially my own fault though.  Rather than only upload the images that I plan to use in the sizes I want, I uploaded ALL of the original images.  At last check, I was pushing close to 11,000 images.  Just the battle to get everything uploaded and imported into Gallery2 took a week.  And I haven’t even organized but a few galleries worth of photos.  The biggest problem comes from the image manipulation packages that Gallery2 uses.  They eat resources for breakfast.  Trying to resize all of the original massive images to thumbnails of various proportions, several different resized viewable images, and the like on top of watermarking everything can really bog the server down and ocassionally makes it barf out full-size images for no apparent reason.  This is especially problematic on the left column of my Wordpress theme (Tarski) where I end up with the odd MASSIVE IMAGE OF DOOM.  It appears though that the ooccurance of these images might be largely limited to when I am logged in as an administrator to the site.  Otherwise, I believe it just returns a blank image box.

A slightly less big problem is trying to perform any operation on the Gallery2 database, which runs through a MySQL backend, that accesses more than a few records.  It seems that I must be on a heavily loaded database server with Dreamhost, or Dreamhost has a draconian policy toward MySQL queries and the number of records that can be accessed at any one time, or Gallery2 is particularly resource intensive when working with very large numbers of images.  Whatever the case, it makes dealing with the entire image set a bit difficult.

If only there were a way to perform tasks such as creating resized images and thumbnails, optimizing the database, and other maintianence tasks on my own machine rather than on the server…  That way I could actually get them to complete correctly AND not drain the resources on my shared hosting plan.

In other news, my masters thesis is slowly coming together.  There are so many sources that I am still trying to digest!  I read through a 300ish page textbook yesterday evening and skimmed the majority of the important sources.  Each new book or paper I encounter holds a roughly 25% chance of being something quite valuable that demands a day or two of attention.  While processing all of these sources, I am also trying to write bits and pieces of the acutal thesis.  Hopefully in another few days, I’ll be able to start writing in ernest.  First though, I have to clear two 1000+ page tomes and about 40 articles related to those monsterous works.

Tags: , , , , , , ,

I get the feeling that I need to change the way I do my permalinks in my wordpress installation. Currently, I just use %postname% which provides for pretty structures with my pages (a good thing) but makes duplication of names in my blog posts problematic. Also, longer titles, such as this post’s, cause a bit of an unruly URL to result. Then again, it is more descriptive than the default which just spits out a post or page number.

There certainly are plugins available to migrate a permalink structure which would be useful were I to change mine. This website claims the best permalink structure is a “blog/category/postname” hierarchy. I definately like the use of the “blog” part of that permalink structure in that it separates off posts from pages (at least that’s what I would assume it does…). People on this forum seem to think that using a “category/postname” or “postname” structure will significantly slow down your database. The Wordpress Codex states that using only “postname” has the potential to screw up things within Wordpress although there is a note that questions if this is still true in 2.0+ versions.

It seems that there are a whole bunch of opinions out there. I wonder which is the best and most relevant for my website’s situation.

Tags: ,