WordPress 2.3

Entry posted on 2007-09-25 12:46 pm

WordPress 2.3 is out! While it’s not yet running here at IndiScripts, the first release candidate has been on Seasonal Plume’s new look since around two days ago. Included in this release are native tagging support and plugin update notification if your plugin is in the WordPress plugins directory. There are more, of course, which you can read at WP’s release post.

Since I’ve been playing with it a bit while coding the layout for Seasonal Plume (above), I can say that it’s definitely a great release, and knowing that tags is finally built into WP core is good. Upgrading was quite painless, and template updating is easy (just have to find those Ultimate Tag Warrior tags!).

I can’t wait to get it up and running here.

Random Content WordPress Plugin

Entry posted on 2007-06-24 3:18 pm

The Random Content WordPress Plugin plugin retrieves a random post/page/either one of them from your WordPress installation, used in much the same way as the get_posts() WordPress function. The plugin was based off from Gruppo Modulo’s Random Subpages plugin but extended because I needed much more than subpages.

I’ve been using this plugin for a while now at my portfolio, and decided to finally put it up for download in case anyone else finds it useful. I’ll also slowly be putting up various WordPress plugins/themes I make that are somewhat presentable for public use soon. :)

Go here to view the plugin details and download it.

WordPress upgraded

Entry posted on 2007-05-20 1:24 pm

I haven’t blogged in a while–or done anything much tech-related that isn’t connected to fulltime or freelance work–mostly due to that thing called Life. Some things are happening which I might blog about here in the future, but everything is hush-hush for now.

I’ve resurfaced to upgrade the WordPress installations for my three WP-powered sites since WordPress 2.2 is out. The upgrade boasts Widget integration and ATOM support, among others, and most of them, unfortunately, I don’t really use. Hrrm. But speed optimization = ♥! I also noticed a new “Deactivate All Plugins” link for the Plugin Management page, which I will greatly love.

That said, I still have no idea why my blogs–notably Seasonal Plume and sometimes this one–suddenly stop in the middle of a page load. I’ve also had the Write/Edit Post/Page page in the admin panel hang over at the STORM Consulting website. I sometimes wonder if it’s just my (crappy) Internet connection but I know of at least one other instance of it happening to a friend of mine loading my sites.

What the hey, WordPress?

Using non-plugin third-party scripts with WordPress 2.1.2+

Entry posted on 2007-04-05 4:11 pm

It’s probably a minority, but WordPress users who are using third-party scripts (like Enthusiast) directly coded/included into their WP templates (read: not included as a plugin) who have upgraded to 2.1.2 and higher may experience problems getting their blogs to work. This is due to a conflict between the database link that WordPress uses and the database link that your other script is using. Users get a variation of the following line:

Warning: mysql_error(): X is not a valid MySQL-Link resource in (path) on line Y

Basically, PHP 4.x’s mysql_connect function—which lets the script talk to your database server—gets confused as to which connection is active. This has happened to me since the script I’m using for my downloads (here in this archive, in my wallpapers archive, and the various downloadable things in my other sites) is not set up as a WP plugin; I just do a series of includes in my WP templates. So when I updated to 2.1.2, I ran into problems.

I meant to address this earlier, when I came across the problem here in my tech blog/scripts archive, but got sidetracked. I was only reminded of it when I came across some open support posts at CodeGrrl.

The fix? It’s rather simple. After every chunk of code (or PHP include) you put in your WP template that accesses the database server (read: it generates the above error), add this line of code:

// reconnect to WordPress database
$wpdb->select( DB_NAME );

(Actually, the first line isn’t that important. But comments are good for you.) This might not work for every instance; basically it just changes the database that the link connection is using. However, it’s possible that the new database user the connection is, ah, using, can’t access your WordPress database. So if the above doesn’t work for you, you’ll have to use something else:

// reconnect to WordPress database
$wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );

That should basically restart the WordPress database. I haven’t tested the second option, so if you end up needing to use the second option and get problems, let me know. :)

If you’re using Enthusiast with WordPress 2.1.2+ and need a better example, here’s something that may be clearer:

// show joined listings
require( 'config.php' );
$show_list = true;
include $path . 'show_joined.php';
// reconnect to WordPress database
$wpdb->select( DB_NAME );

Do the same for all the other snippets and you should be fine.

Yet another update

Entry posted on 2007-03-18 9:01 pm

It seems like I can’t make up my mind in terms of this site’s layout — let’s hope this stays longer! I like it better than the previous, mostly because it feels much cleaner than the last one, and allows for more space when possible: something that I’ve missed in previous layout, and something that I feel is important for documentation. The good news is that I get even more used to working with WP; I wrote a quick plugin for grabbing random content (post and/or pages) according to a few parameters. Will put it up for download after I prettify it a bit.

Edited to add: I just realized (thanks, Mosey!) that commenting was broken for Indiscripts! My bad, it was a missing WP file that was the culprit. Rest assured I have shuffled him back to the ranks. ;)

More entries