Archive for January 2005

Installed Page Navigation

I just installed the Page Navigation Plugin, page-navi.php from Lester Chan.

It lets me put a navigation bar on my site like this:
Pages (6) : Previous Page 1 [2] 3 4 Next Page ... Last »

It installed in about 5 minutes (and then of course I had to fiddle with it for 30 minutes…. but it installed very easily. And that’s very nice. :-)

I made a slight improvement in 1.2 that you might want to integrate into the source.

This starts at line 36. New code in red.

$numposts = $wpdb->num_rows;
$max_page = ceil($numposts / $posts_per_page) ;
 
// Return added by LCS 1-15-05. This causes nothing to be displayed if there is only 1 page
if ($max_page == 1) {
    return;
}

 
echo $before.'Pages ('.$max_page.') : <b>';
if ($whichpage >= 4)

Without this change, Page Navi is a little obtrusive when I put it in a prominent spot in Index.php and I’m displaying only 1 post… like when I’m viewing archives.


3-10-05 update. This plugin doesn’t work with WP 1.5 so I’ve switched to another plugin.

Installed Recent Comments and Related Posts

From here. Very useful. :-)

Installed TimeofDay

This is the cutest plugin. :-)

update 8-20-05 I’m not using this plugin with WP 1.5.

WYSIWYGII

I tried using WYSIWYGII and it has potential…. but it makes sucky looking HTML and doesn’t fix the escape-code issues with WordPress (where lots of code like slashes and quotes get left behind) So I’m not using it.

Installed Related Posts

It looks useful. From w-a-s-a-b-i.com

Windows XP Service Pack 2 is good for something

Win XP SP 2 allows you to set a PPPoE connection as a default connection instead of having to dial it. That means that it will automatically dial the PPPoE connection when its needed. That’s nice.

Created and Installed Words in Post Plugin

I’m proud to present my first WordPress plugin, Words in Post. All it does is count up the number of the words in a post and spit them out. By sticking this code in the index.php template of WordPress, I can create a title line that looks like this:

Geekery � 49 words � lee @ 2:50 am

This is better than using the following simple grab that I had heard about here.

<?php echo(str_word_count(get_the_content())); ?> words

The preceding doesn’t grab anything past the <!--more--> and counts tags incorrectly.

Thanks to Nick Momrik for the inspiration.

 

1-15-05 update: Version 1.1. Thanks to Alderete’s suggestion, the function returns a number instead of echoing. See the php for instructions.

Download Words in Post plugin version 1.1 here. Rename it from .phps to .php and run with it.

Installed Nicer Archives

I just installed “Sortable Nicer Archives for WordPress” from weblogtoolscollection.com. It is tres snazzy. Check it out here.

HP PSC 2510 wireless network installation

I had a problem re-configuring an HP PSC 2510 photosmart all-in-one printer. I wanted to change the router that the printer was connected to.

The stupid blue light on top of the printer wouldn’t come on, indicating that it was connected to the router via ethernet.

The key turned out to be: unplug the printer for 2 full minutes. After that, when I turned it on, I got a network connection and could continue installation.

Full instructions for configuring the printer on a wireless network:

  1. Unplug printer for 2 minutes
  2. Plug printer into router via ethernet
  3. Turn on printer and wait for blue light
  4. Install HP software. Note that it takes 30 minutes
  5. The printer will eventually be assigned an IP address. It might take 2 full minutes longer than you think it should. Go to the Network setting on the printer and print out the network configuration
  6. On the computer, go to http://nnn.nnn.nnn.nnn to set the SSID, WEP, etc.
  7. Disconnect the printer from the router.
  8. The printer’s blue light will turn off. It might take another 2 minutes for the light to come back on. If it doesn’t, check the network settings on the printer to make sure that the radio is on.
  9. Revel in the wirelessness of it all.

Installed WordPress Backup Scripts

Works like a charm. :-)

Author: LaughingLizard (dinki@mac.com)
http://weblogtoolscollection.com/
http://mindfulmusings.net/weblog/

Thanks LaughingLizard!