Upgrading Wordpress

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

I’m about to start an upgrade to a new version of Wordpress and I’ve decided to try out the one-click upgrade feature that Dreamhost offers. So I’m fully prepared for the site to suddenly crash and burn but maybe I’ll be surprised and it will go seamlessly. I guess we shall see.

*Update* Well, color me surprised. It was definitely a lot faster than doing it by hand and from what I can tell from just a quick spot check everything seems to be working.

Site Maintenance

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

I seriously need to upgrade the copy of WordPress that I’m running, so over the next few days this will occurring at some point.

I’m quite a few versions behind and I’ve done extensive amounts of changes to themes, config files, plugins, etc so it could mean the site will go offline for periods of time or be rather goofy looking and unusable. I’ll post an update once I’ve got the site fully upgraded and think I have all the plugins and what not working again.

** Update 12/7/07 6:00 PM **  I’ve finished the actual upgrade of WordPress at this point so the site is back online. I’m still working on adding plugins and all that so items like the polls, ratings, etc will still be down for a while. I’ll post another update once the site is completely back to normal.

** Update 12/7/07 11:00 PM **  I’ve finished adding back in all the plugins along with a few extras. Some items look a little different (post ratings for example) but I figure they look good enough and won’t require me completely reworking much. Leave a comment on this post if you see any problems.

Adding the WP-Email & WP-Print Plugins

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 3 out of 5)
Loading ... Loading ...

Well, I’ve now finished adding all the "WP-XXXX" plugins that I was planning on adding. Both of these last two went in pretty easily. With WP-Print I had zero issues and besides making the image a hair smaller, there wasn’t anything else I needed to do to it. In a final version with a future theme I might want to add a link on the "printer friendly" page so they can get back to the site without having to use the browser’s Back button.

With WP-Email I had surprisingly few issues. I figured I’d have all sorts of trouble getting the actual emails themselves delivered properly but that worked straight out of the box. There were only two problems that I had and both were pretty easy to fix. The first was just needing to update the permalinks structure in the Options screen again after activating the plugin. For some reason, prior to doing that, when you clicked on the email link it would just bring up the "Page Not Found" page and not the email form.

The second problem was when the success, failure or error pages were displayed after sending an email, the sidebar and footer were all fucked up and over on the right side of the message. It ended up just being that in the "Email Options" page where you can modify the layout for those items there wasn’t a closing </div> for some reason. The value appears in the string that is set by default so I’m not real sure why it wasn’t there. Adding it fixed the problem though.

The only thing I might change with WP-Email in the future is adding a link to go back to the main page right below the success or failure message. There is one in the sidebar, but in this case I just think it might look better to include one in the content section as well. Also, if I someday use the pop-up version then I’ll need to modify the window size so that you don’t have to scroll at all.

Anyway, I’m getting close to having the basic setup of the site finished at this point. I finished making my changes to the Widgets plugin last week to show a different "Meta" section (it’s the Navigation section in the sidebar) and added the FallenBlossom logo link. I need to update the About and Contact pages which will include setting up the "Custom Contact" plugin which creates contact forms. After that I believe I’ll be done and ready to start working on my own original theme.

Adding the WP-Polls Plugin

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 3 out of 5)
Loading ... Loading ...

This is driving me insane. The WP-Polls plugin works well enough but there were just a few visual things I wanted changed on it. For starters, I needed to modify the text so it appeared halfway decent. Here is what the text looked like originally and then what it looked like afterward it was fixed (also notice the "Polls" section isn’t as tall in the current version).

Poll Section Differences

I had to modify two aspects of the style sheet attributes to get the text to look right. The first was adding the "Color" line. Not sure why that would smooth the text, but it did so I won’t question it. The second part was commenting out the "Width" line. I have no idea why but for some reason having this in there even after adding the "Color" line would still cause everything to look like crap. Below are the style sheet attributes that it uses.

[quickcode:noclick]*** Original Version ***

.wp-polls-ans {
width:100%;
filter: alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;
}

*** Current Version ***

.wp-polls-ans {
/*width:100%;*/
color: #E5E6C2;
filter: alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;
}[/quickcode]

Okay, so that fixed the text issue. However, it also created two new problems that just baffle me. The first issue is that in the original version the entire poll form (title, answers, voting button, etc) would fade out and then the results form would fade back in. However, if the "Width" setting isn’t included in the style sheet (which it can’t unless I want crappy text) then the fade in/fade out no longer occurs. I haven’t modified anything else besides that one setting so I have no clue why that would keep the Javascript from doing its thing. The Javascript never throws an error either so I know that it’s not just simply breaking it.

The second issue is that if you vote or click on the "View Results" link then you’ll notice a little "Loading" image that shows up at the bottom of the section while it’s doing it’s thing. When the image is displayed it spreads out the distance between the "Vote" button and the "Polls Archive" link. In the original version once the "Loading" image goes away the distance between those two things shrinks back up again. Again, if the "Width" setting isn’t in the style sheet then it breaks and the extra distance that got added when the "Loading" image appeared never vanishes. The images below illustrate what I’m talking about in terms of the distance thing.

Poll Section Differences

I’m sure both the gap and the broken fade feature are tied together but why having the "Width" setting there would make a difference is beyond me. Oh well, I’d rather have decent looking text so I’ll just live with those two problems. The last issue is another one that I just can’t seem to figure out. Why the hell is there a white box showing up around the radio buttons? In Firefox it doesn’t appear but it does in IE. I’ve done all types of searches on the internet and can’t seem to find anything referencing this issue. Below is the code which doesn’t seem to have anything abnormal in it as far as I can tell.

[quickcode:noclick]

  • [/quickcode]

    The things enclosed in %’s are variables that the plugin later replaces when the page is loaded. The remainder of the code remains unchanged. I’m clueless on how to fix it since the "Radio" input type doesn’t accept style settings by what I can tell.

    I give up. The basic functionality at least works. So unless someone knows of a way to resolve these three issues I’ll just consider this particular plugin integration finished. I was really hoping to get it set up like with the post ratings plugin so that it could automatically switch it’s setup based on the theme name. It’s so heavily modifiable from within the WP Admin area (which is a plus) that I just don’t think it would be worth the effort.

    Adding the WP-PostRatings Plugin

    1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.75 out of 5)
    Loading ... Loading ...

    Well, I finally got the WP-PostRatings plugin (the little star ratings above this text) working the way I wanted it to. Who would have thought simply wanting to get it to show up in the location where it is now would turn into a major pain in the ass. I guess it would probably help if I wasn’t learning PHP and WordPress tags and functions at the same time.

    I made the following modifications to the plugin:

         ** Change the layout of the ratings image and text from the default.

         ** Modify the various tooltips to show different information.

         ** Add new styles to the style sheet to match the current theme.

         ** Modify the default star image files so they are a hair smaller. I stumbled across a nice feature when doing this one. I didn’t want to get rid of the default images so I placed the modified image files in a new folder in the "images" directory. At this point I was about to start writing a bunch of If-Then statements to have it switch which images it was using based on the theme name. For some reason I went to the Ratings Options page beforehand (no real need to since I already had it set up the way I wanted it) and what do you know…it picked up the new folder and made it another option to select. So no coding on that one like I figured I’d have to do.

         ** Add in code so that it will always check to see what the name of the current theme is and if it’s not a specific one then it reverts back to the original code. This will be handy so that when I create my own theme later on I just have to add a couple new items to the style sheet and throw in a new section for the If-Then statements that are checking the theme name. Since I tend to bounce between a couple themes for a while until I settle on a final one this will save me from having to constantly comment / uncomment things in the plugin files.

         ** I wanted to modify the tooltips on items where you had already voted to say "You gave this post a rating of X". After getting the code working though I realized that the cookies (which is where I was pulling it from) only get a "1" passed to them no matter what the actual rating value was. I was already ready to be done with editing this thing so I decided to pass on modifying what gets written to the cookies. Might go back someday and make this change, but I doubt it.

    Note On Compatibility: I’ve done testing and it does appear to work fine on IE6, IE7 and Firefox. For some reason though, Opera always shows the "Loading" image from the moment the page is displayed. Oh well. I don’t use or even like Opera, so I’m not going to bother with trying to fix it for the one jackass that feels the need to be different by using that browser.

    « Previous entries