How to List Random Posts in a WordPress Blog’s Sidebar

Draw people into your blog by showing them other posts in the same category.

People browse blogs all kinds of ways. One way is to come in at the Home page and browse what’s there, then click a category link in your navigation bar to go deeper into the site. Clicking a category link identifies a topic that interests them. But how can you get them to keep browsing what’s there when all they’ll see is the few most recent posts displayed there?

imageOne way is to display a random list of category posts in the sidebar (see screenshot right or visit this page for an example). There are a number of ways to do this, but the quickest and easiest (which is usually my preferred method) is to use the Customizable Post Listings plugin by Scott Reilly with a few simple lines of code inserted in your sidebar.

Customizable Post Listings isn’t new. Its latest version (1.1) was released back in 2004. But it still works like a charm — at least in WordPress 2.0.4 on my server. From the description:

Display Recent Posts, Recently Commented Posts, Recently Modified Posts, Random Posts, and other post listings using the post information of your choosing in an easily customizable manner. You can narrow post searches by specifying categories and/or authors, among other things.

I already use it on aneclecticmind.com to display recent posts and recently commented posts, so adding another feature that takes advantage of this plugin wasn’t a big deal. In fact, it made sense.

I won’t go into details about how to download and install the plugin. You can figure that out for yourself. If you’re new to WordPress and plugins and need help, I will plug the book I co-authored with Miraz Jordan here: WordPress 2: Visual QuickStart Guide. It has a whole chapter dedicated to plugins. Enough said.

Once the plugin has been installed and activated, open your sidebar.php file (or the file in which you want to include the random post code). Then enter the following code where you want the list of random posts to appear:

<?php if (is_category()) { ?>
<h2><?php single_cat_title('Random Articles in '); ?></h2>
<ul>
<?php c2c_get_random_posts(16,"<li>%post_URL%</li>", $wp_query->query_vars['cat']); ?>
</ul>
<?php } ?>

Keep in mind that this code uses the tags I use in my sidebar for formatting: h2 for sidebar headings and ul for an unordered list. Your HTML formatting may differ, so you might have to adjust this a bit for your site.

The first and last lines of this code provide conditional instructions. They basically say that if the page being displayed is a category page, show the random posts listing. So if the Home page or a single post page is displayed, the random category list does not appear.

The single_cat_title tag is a neat way to customize the heading so it displays the name of the category.

You might also want to change the value in the c2c_get_random_posts tag. I have it set to show 16 posts; you can show more or fewer. If you put a value in there that’s higher than the number of posts in the category, all of the posts will be displayed in random order. But if you want to display all of the posts, why not do it in reverse chronological order? Just replace

<?php c2c_get_random_posts(16,"<li>%post_URL%</li>", $wp_query->query_vars['cat']); ?>

with

<?php c2c_get_recent_posts(150,"<li>%post_URL%</li>", $wp_query->query_vars['cat']); ?>

Remember to make the value big enough to cover all the posts in each category. I don’t know if there’s a limit to the value, but I probably wouldn’t use this if I had more than a hundred or so posts in a category anyway. It would make the sidebar too long. (My opinion.)

Of course, you might want to change the heading, too — something like

<h2><?php single_cat_title('All Articles in '); ?></h2>

would be more appropriate when showing all the posts.

As you can imagine, there are lots of ways you can play with this to list post titles in the sidebar. And if your post titles are intriguing enough, these few lines of code might keep visitors on your site a bit longer.

Additional Features of the Dock

Another Apple Technical Note.

Want to learn how you can get the most out of Mac OS X’s Dock feature and the all-too-often-overlooked Application Switcher? Apple’s got a technical note that covers them both.

From Mac OS X: Additional features of the Dock on Apple Support:

The Dock offers useful controls and menus that may not be immediately apparent. You access these additional features with different combinations of modifier keys (such as Option, Control), and with different types of mouse clicks (click versus press and hold). Additionally, learn about Application Switcher, an alternative way to switch between applications without using the Dock or your mouse.

Good reading if you’re interested in tips and tricks for using your Mac.

Reorganizing WordPress Categories

I do a little end-of-year cleaning.

I decided the other day that some of my blog’s categories were too similar to others (for example, Flying for Hire, Flying for Pleasure, and Flying Lessons) and that I wanted to trim down my category list to make room for new categories in the future. So I combined a few categories and added one.

When I combined Writing for a Living and Writing for Pleasure into one category (Writing), I did it the hard way: I edited all the posts in Writing for Pleasure to use the Writing for a Living category. Then I changed the Writing for a Living category’s Category Name to Writing and the Category Slug to writing. I renamed Writing for Pleasure as a new category called On Blogging with a category slug of blogging. This was extremely time consuming, since I had to modify each individual post and was working from home, with a miserable 256Kbps connection.

For the three flying categories, I decided to get fancy. I changed the name and slug of Flying for Hire, which had the most posts, to Flying and flying. Then I changed the default category (Options > Reading) to Flying. Then I deleted the Flying for Pleasure and Flying Lessons categories, clicking OK in the warning dialog that appeared for each one to allow the default category (Flying) to be assigned to each. This was certainly a faster way to get the job done, but it gave me quite a scare when the number of posts in the Flying category did not increase and the total post count decreased. Had WordPress actually deleted posts? I had to check the contents of that category to make sure I had posts from all three categories in it. I do, but the inconsistent count has me worried, so I don’t necessarily recommend doing what I did to combine categories. Ask me in a week or two and I’ll let you know what I think.

Of course, changing category slugs isn’t a good thing to do when you’re using one of the permalink options (Options > Permalink) to make “friendly” URLs. My changes affected five categories; any links to the old category slugs would break. So I opened my .htaccess file and added the following lines near the top:

Redirect permanent /category/weblog/writing-for-a-living/ http://www.aneclecticmind.com/category/weblog/writing/

Redirect permanent /category/weblog/writing-for-pleasure/ http://www.aneclecticmind.com/category/weblog/writing/

Redirect permanent /category/weblog/flying-for-pleasure/ http://www.aneclecticmind.com/category/weblog/flying/

Redirect permanent /category/weblog/flying-for-hire/ http://www.aneclecticmind.com/category/weblog/flying/

Redirect permanent /category/weblog/flying-lessons/ http://www.aneclecticmind.com/category/weblog/flying/

Keep in mind here that all of the categories I changed are actually subcategories of the Maria’s Weblog category, which has a slug of weblog. Each of these lines automatically redirect the old category URL to the new one. You can learn more about .htaccess at one of my favorite online sources: Stupid .htaccess Tricks.

The net effect of all these changes? Five categories have been combined into two and a new category has been created. My links should continue to work as they did.

Now let’s just hope I didn’t lose any posts or screw up that .htaccess file…

Tips for Becoming a Good Blogger

From MPDailyFix.com.

Tim Jackson at MPDailyFix.com wrote an article back in November titled “What Does It Mean to Be a ‘Good Blogger’?“that I just stumbled upon. In it, he provides five tips for better blogging. Here they are with my take on them; you should read Tim’s article for his take.

  • Know your topic. You really shouldn’t write authoritatively about a topic when you don’t know enough about the topic to do so. Opinion is one thing, but if it’s based on facts, get the facts straight. That means doing your homework. These days, that’s easy — you’re sitting in front of a computer connected to the Internet, aren’t you? Use Wikipedia, Google, or your favorite search engine to find articles that explain things you aren’t sure about. This really hits home with me today because just yesterday I was blasted for not knowing off the top of my head that Apple sells a “two-button” mouse. I was familiar with the Mighty Mouse product but did not know all of its features. I corrected myself in the very next post, but that wasn’t enough for some readers. Ouch!
  • Know your audience. This one is extremely difficult for me, primarily because this site covers so many topics: support for my books and articles, stories about flying, information about writing, opinions, articles about travel, and stories about the things that go on in my life. Exactly who does this blog appeal to? I have no idea. But I can use stats or metrics to learn more about what people are reading when they come here. For example, yesterday’s article “Apple’s ‘Two-Button’ Mouse” was a huge hit with visitors, getting hundreds of page views and nine comments in a matter of hours. (Huge numbers for this site.) Articles about blogging and statistics also seem to do very well. Is that what my audience wants? Perhaps I should deliver more. But I’ve also decided to install polling software that asks readers which topics interest the most. That might help, too.
  • Read other blogs and leave comments on them. This is something I’ve been working hard to squeeze into my schedule. I’ve found that RSS reader software (I use Endo) is very helpful because it delivers articles or summaries of articles right to one central location. I can spend a few minutes browsing through the inbox, then follow links to the original articles. That’s how I found the article I’m discussing here. This is time consuming but it has three major benefits: (1) I learn a lot about the topics I’m following, (2) I get fodder for articles on this blog (or at least links for my automated del.icio.us links posts (see This just in…), and (3) I’m able to become part of the blogging community. (More on that in a moment.)
  • Follow the links. This isn’t a huge deal for me, since I don’t have many incoming links. Yet. But it is important to see who is linking to your site. Sadly, many of the incoming links appear to be from sites trying to up their Google ranking by linking to other sites. But when I do follow a quality link, it’s good to see that someone else has appreciated what I’ve written. And that brings us to Tim’s last tip.
  • Say thanks. This is a great way to become part of the blogging community. When someone has linked to one of your posts, it’s always nice to say thanks. Not only does this make the person on the other end feel good about sharing your work with other readers, but it builds community. This morning provided a great example of this in my e-mail inbox: I had a thank you note from the author of one of the articles I’d blogged about yesterday. She’d spent a few moments on my site and had some positive things to say about the Contact Me page, which has always been a sore subject. It was nice of her to take the time to write and even nicer to get some positive feedback about my rather strict contact policies.

Again, this is my take on Tim’s five tips. To read Tim’s take and the comments left by readers on his site, read his article.

And I’d love to get some comments about this topic here. Use the Comments link.

Apple’s “Two-Button” Mouse

Mighty Mouse and fix.

Apple StoreWhile checking my RSS feed subscriptions today (I’m really trying hard to make that part of my regular routine), I ran across this article at MacOSHints.com: “One possible fix for a broken Mighty Mouse right click.” In it, the author (luomat) writes:

I bought myself a wireless Mighty Mouse during Apple’s Black Friday sale. For the life of me, I could not get the right-click to work, even after enabling it in the System Preferences panel. I tried tapping all over the place on the right side of the mouse and it worked maybe one out of twenty times as I muttered “Why couldn’t they just build a real two-button mouse?”

His brief article goes on to discuss the fix.

Apple Mighty MouseUnfortunately, I’m going to have to buy a Mighty Mouse just so I can write about it in my upcoming Leopard book. As I’ve learned over time, if you don’t have certain hardware installed, certain options related specifically to that hardware just doesn’t appear. (Hence, the need for 3 iPods over the past 5 years. Sheesh.)

But I agree with luomat: Why can’t they just build a real two-button mouse?

Adding Del.icio.us and Digg Links to Your WordPress Posts

Look, Mom! No plugins!

Although there are WordPress plugins that enable you to add links to bookmarking sites from your posts, if you’re just interested in a few sites and don’t want to deal with plugin overhead (or future compatibility), there is an easier way. Just add the links to your WordPress theme’s template file, inside The Loop.

The two bookmarking sites I’m interested in are Del.icio.us and Digg. I use Del.icio.us for bookmarking primarily because of its Daily Blog Posting feature, which I wrote about in my “Del.icio.us Links” article. (The terminology for the feature has changed since I wrote the article; it can now be found under Daily Blog Posting in the Settings area for your Del.icio.us account.) This feature displays a list of the posts I bookmark with Del.icio.us each day. You can find examples under This Just In… on my site.

I don’t regularly use Digg, but I do have an account. Digg got a lot of press a while back, but it appears to have become a popularity contest, with people promoting their own posts and voting for their friends. Still a lot of people use Digg, so it’s good to support it.

The links I added to my site enable a user to quickly bookmark a post on Del.icio.us or Digg. The visitor clicks one of the links and goes right to the appropriate page for entering the bookmark information. Finishing up on that page brings them back to your site.

Here are the two links; you can copy and past them into your template file, within The Loop:

<a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&title=<?php the_title() ?>" title="Add this post to del.icio.us">Add to Del.icio.us</a>

<a href="http://digg.com/submit?phase=2&title=<?php the_title() ?>&url=<?php the_permalink(); ?>" title="Digg This">Digg This</a>

Obviously, the text that appears for the link can be completely customized for your needs. Ditto for the title attribute.

You can see an example on any post on my site, www.aneclecticmind.com. You’ll find the links at the bottom of each post, along with links for entering comments, printing the post, and a display of the number of times a post has been read:

Post Links

If you’re not sure what The Loop is or how to modify a template file, you need our book, WordPress 2: Visual QuickStart Guide.

Creating Spreadsheets and Charts in Microsoft Office Excel 2007 for Windows: Visual QuickStart Guide is Off to the Printer

(I just write ‘em — I don’t name ‘em.)

Excel Visual QuickProjectThe revision to my Excel 2007 Visual QuickStart Guide was shipped to the printer this week. My editor expects the book to be in stores by year-end.

The book is a raw beginners guide to Excel. This version covers Excel 2007, which will be widely available at January month-end. The previous edition, which is still available and has been selling very well since its publication over two years ago, covers Excel 2003 for Windows and Excel 2004 for Macintosh. I expect both editions of the book to sell side by side at least until Excel for Macintosh is revised — whenever that may be.

For more information about the book and downloadable files, visit the Excel QuickProject area of this site.

Interested in buying the book? Check it out at Amazon.com.

More Bad Behavior

I update some software to help keep spammers off the site — and preserve my bandwidth.

Miraz introduced me to the Bad Behavior WordPress plugin some time ago, and after ascertaining that it did indeed work with a GoDaddy.com hosting account (my hosting ISP), I installed it on all of my WordPress-based sites. What I saw was an immediate reduction in the amount of spam that Spam Karma was catching. That wasn’t because it made Spam Karma less effective; it was because less spam was actually accepted by WordPress for moderation. I can verify this by checking the Bad Behavior stats — it catches roughly 7,000 potential spam hits a week on just one of my sites. That means my server doesn’t have to work so hard and, as a result, it can be more responsive to visitors.

One of the drawbacks to hosting multiple sites on a budget is the limitations imposed by my ISP for my level of hosting. I’m allowed 100 concurrent hits — to all sites on my hosting account. I have two very busy sites online and I think they sometimes fight with each other for bandwidth. This hasn’t been a problem until lately — the other day I started getting Error 503 messages (server busy) when trying to access my sites.

I investigated and discovered that at the time I was trying to view my site, Spam Karma had caught roughly 200 spam messages in the span of 3 minutes. No wonder my site was busy. Spam Karma was fighting off spammers. But what the heck was Bad Behavior doing? Sleeping on the job?

I went to the Bad Behavior Web site and noticed an update that should resolve things. More spammer-stopping power. I downloaded and installed it. If the Error 503 messages become less common and Spam Karma catches less spam, I know it’s doing its job.

The point is this (yes, there is a point): if you have a WordPress blog that allows comments, having spam protection is more than just preventing your site from being filled up with spam comments. It’s protecting your bandwidth. And for that, Bad Behavior seems like a good solution. Just be sure that you have the latest version.

And, if you find your spam prevention software helpful, be sure to send a few euros to the developers to keep them interested in keeping the software up-to-date.

December 14 Update: I just did some more research over at Lunacy Unleashed, Web site for Michael Hampton, the developer of Bad Behavior. His article, “Spam Surge,” seems to collaborate what I’ve been experiencing. Apparently, the spam surge also affects e-mail accounts. (My e-mail spam increased considerably about a month ago but has since tapered off to manageable levels.)

Managing iTunes Downloads

Maria Speaks Episode 33: Managing iTunes Downloads

Transcript:

Although iTunes doesn’t need an Internet connection to work, its real strength lies in its ability to get new content from the iTunes Music Store: songs, music videos, television shows, movies, and, of course, podcasts. You interact with iTunes to choose the content you want to buy or subscribe to and iTunes downloads that content to your computer. You can then update your iPod to add the new content.

One of the new features in iTunes 7 is the ability to manage downloads. This is especially useful when you subscribe to podcasts and don’t update as frequently as you should. Or if you’re waiting for multiple downloads and want one of them to finish up first.

In this article, I’ll provide some tips and tricks for using the Downloads window to manage your iTunes downloads. Although I’ll concentrate on using this feature for podcasts, most of what I cover applies to all of your iTunes downloads.

Getting Podcast Files

When you subscribe to a podcast, iTunes does several things. First, it adds the podcast to the iTunes Podcasts window (Figure 1). Next, it checks to see what episodes are available and it lists them in the podcast window. Then, depending on how iTunes Preferences are set, it begins downloading the most recent episode.

Podcasts Window
Figure 1: The Podcasts window with a newly subscribed podcast.

Unless preferences are set otherwise, iTunes won’t download all of the available podcast episodes for a newly subscribed podcast. Instead, it’ll list the available episodes with a Get button beside each name. You can’t listen to an episode until you “get” or download it. You can manually start a download by clicking the Get button beside the episode you want. That changes the episode name from gray to black and displays an orange animated icon that indicates it’s being downloaded or a gray icon that indicates it has been added to the download queue. Figure 2 shows an example.

Downloads Set Up
Figure 2: Five items set up to download; three in progress.

Managing Downloads

iTunes can download up to three items (podcast episodes, songs, movies, etc.) at a time. You know when iTunes is downloading content because the Downloads item appears in the Source list under Store. The number of items in the download queue appear beside it and, if downloads are in progress, an animated icon appears beside the count. You can see all this in Figure 2.

Clicking the Downloads item in the source list displays the Downloads window (Figure 3). This windows shows the entire download queue and a progress bar for each item being downloaded. Items being downloaded appear in bold type. Items not being downloaded appear in normal type. When an item download is completed, the item disappears from the list and another item download begins.

Downloads Window
Figure 3: The Downloads window with three items being downloaded and two waiting.

Suppose you have limited bandwidth and want to visit YouTube while iTunes is downloading content. You can pause one or more of the downloads in progress, thus freeing up download bandwidth so you can view YouTube videos without pauses or hesitations.

To pause one download, in the Downloads window, click the pause icon at the far right end of the row for the item you want to pause. The item turns to normal type and a resume icon appears beside it. If another item is waiting in the queue, that item begins to download (Figure 4).

Pause Item
Figure 4: When you pause an item, iTunes begins downloading the next item in the queue.

To pause all downloads, click the Pause All button in the bottom-right corner of the Downloads window. All items turn to normal type with a resume button beside them (Figure 5).

Pause All
Figure 5: You can pause all items if you like.

You can probably figure out the rest. To resume a single download, click the resume button for that item. To resume all downloads, click the Resume All button at the bottom-right corner of the Downloads window. Keep in mind that only the top three items in the queue will resume downloading.

What’s neat about this is that when you resume a download, it resumes from the point at which it stopped. So you don’t have to start all over again. That saves lots of time and makes this feature very convenient.

You can also use this feature to change the order of downloads. Simply drag the item you want to download first to the top of the list (Figures 6 and 7). That gives that item the highest priority. You may need to Pause All and then Resume All downloads to restart the download process with your highest priority downloads to be completed first.

Drag Item
Figure 6: Drag an item to a new position in the queue.

Drag Item
Figure 7: When you release the mouse button, it moves into position.

To speed up the download of a high-priority file, move it to the top of the list, pause all downloads, and then start the download for just the first item on the list. iTunes will take advantage of all available bandwidth to download the file. Since it doesn’t need to share bandwidth with two other files, the download should (theoretically) take one third the amount of time.

If you pause one or more items, don’t forget to resume the download. If you don’t resume it, it’ll remain in the download queue until you do.

And if you change your mind about downloading an item, you can delete it from the queue. Simply select it and press Delete (Mac OS) or Backspace (Windows). To never download it, you must delete it from the Podcasts window (Figure 1) the same way.

Conclusion

As you can see, this new feature offers a lot of flexibility when downloading content from the Internet into iTunes. Play around with it and see how it can help you take control of your iTunes downloads.

One Way to Protect Your E-mail Address from Spammers

Don’t put it on a Web site!

Spammers are nasty, sneaky, conniving people. They use every tool at their disposal to gather e-mail addresses to spam.

Among the tools in their arsenal are spambots — programs that crawl the web and gather anything that looks like an e-mail address, whether it’s in text or part of a mailto tag. Like this: me@spamsucks.com. Or this: Get Info. (I just made those addresses up. Let’s hope they’re not used by anyone, because they’re sure to be spammed.)

So here’s a tip: if you have a Web site, or your company has a Web site, do not put your e-mail address anywhere on it. Doing so will likely get your e-mail address on spam lists. The amount of spam you get will grow exponentially over time, forcing you to spend more time weeding out the spam you receive than actually reading the legitimate messages.

How then, you ask, can people contact you?

My preferred method is with a contact form, like the one used on this site. Here are some painless ways to install a contact form; one of them should work for you:

  • WordPress users can use the WP Contact Form plugin by Ryan Duff to create a quick-and-dirty contact form. Miraz and I discuss this plugin in our book, WordPress 2: Visual QuickStart Guide.
  • Web sites on an Apache-compatible server with PHP installed can use MindPalette’s NateMail, a free contact form that works with PHP. I used this for a while — until I switched to WP Contact Form — and liked it. One of its best features is the ability to use a pop-up menu that lists various people to be contacted. Because the e-mail addresses are not in the Web page, they are protected from spambots.
  • Your ISP may offer a form tool as part of its services. GoDaddy.com, for example, offers form a form mail feature as part of its hosting packages. You create an HTML form on your Web page, include the proper POST command, and GoDaddy sends form content to the e-mail address you specified in the configuration page.

Keep in mind that even contact forms are not capable of keeping out all spam. Some spambots are designed to look for forms and automatically fill them out with spam messages. One way to cut down on this is with a CAPTCHAs feature in the form software. This forces a user to enter the text characters that appear in a graphic image as part of the form. Most (but sadly, not all) spambots are foiled by this additional step, since they can’t interpret the graphic.

Another method for fooling spambots is to encode your e-mail address so it can’t easily be read by the spambot but can be read by humans or Web browsers. This can be something as simple as me at spamsucks dot com or as complex as using special obfuscation software to do the encoding. Personally, I prefer the forms. I’m sure there must be a spambot out there that can read encoded e-mail addresses. But if this is the only option, go with it.

Just get your e-mail address off your sites now. Every minute you waste can lead to more time wasted sorting through spam.

SpamSieve

A spam filter plugin for Mac users.

I don’t know about you, but I’ve been getting a TON of spam e-mail lately — much of it to my .mac e-mail account. Most of it falls into one of a few categories:

  • Stock “recommendations.”
  • Award announcements.
  • Letters from widows or businessmen in Nigeria.
  • Offers for sex-enhancing drugs and devices.
  • Porn sites.

Neither my e-mail server nor my Mail application (Apple Mail) seems able to weed out this crap. So it ends up in my In box for me to manually delete. What a pain in the butt.

Enter SpamSieve. This Mac OS plugin, which works with most common e-mail clients — Mail, Entourage, Eudora, and others — uses Bayesian filtering to identify and weed out spam. You train it, from within your e-mail program, to know what’s spam and what’s not. It works with your Address Book so it won’t mark a message from your mother (or editor or boss) as spam. And it maintains a database of internal rules that help it identify spam — rules you have easy access to and can change at will.

SpamSieve in Mail's Message MenuI installed SpamSieve on my PowerBook yesterday and it immediately began working — even before I had a chance to start training it! Installation isn’t difficult, but you’ll need to follow the instructions in the PDF manual that comes with SpamSieve to get it right. If everything is set up properly, SpamSieve training commands will appear in your application’s menus, as shown here. Then, every time you launch your e-mail client, SpamSieve also opens. It works in the background, moving messages identified as spam to a special Spam mailbox or folder, allowing you to train it to recognize spam or tell it that a message it thinks is spam really isn’t. When you’re finished working with e-mail and Quit, SpamSieve automatically quits, too.

SpamSieve StatisticsInterested in seeing how SpamSieve is doing? You can check out its statistics. Here’s what it looks like on my PowerBook; keep in mind that I check a limited number of e-mail accounts from this computer so it hasn’t had much to work with. The percent accuracy should get higher as I continue training SpamSieve; the manual recommends that you train until it has processed 1,000 messages for the best results.

Now, instead of dreading mail collections, I look forward to them. I’m always curious to see how SpamSieve does. So far, I haven’t been disappointed. It’s doing a better job than my ISP and Mail’s junk filter.

SpamSieve is shareware and costs $30. There’s a 30-day trial period and the software is fully-functional during this time. You can set it up and give it a good tryout for a few weeks before making the small investment in its purchase.

If you do try it, take a moment to stop back here and share your comments about it. I think other readers might benefit from more opinions than just mine.

Random Quotes

I add a plugin to display random “Words to Life By” on my site.

Every once in a while, I’ll hear or read a quote I think is particularly profound and want to share it with others on my site. I’d been doing this for months with the “Words of Wisdom” block near the bottom of the sidebar on the Home page. I listed three quotes there — one of which was the First Amendment to the U.S. Constitution, which is rather long. I knew that if I kept adding quotes, the block would be much larger than it should and the quotes would lose their impact.

Enter Random Quotes (or WP-Quotes), a plugin by Dustin Barnes. This plugin enables you to maintain a database of quotes within your WordPress database, using WordPress’s administrative interface to enter and edit quotes. You then place a line of code in a template file (in my case, sidebar.php) to display a random (or specific) quote.

I tweaked my Web site this morning to add this feature and I’m very happy with it. Setup went smoothly, although I did have to fiddle around a bit with the style.css file to get the quotes to look right. (My trick: assign the same style definitions to the quote styles as my sidebar list styles.) Only one quote displays at a time and I’ve set it up to display on the Home page only. You’ll find it near the bottom of the sidebar, under “Words to Live By.”

Now all I need to do is gather some more good quotes.

Book Review from Blog Business Summit

A nice review of our WordPress book.

Teresa Valdez Klein of the Blog Business Summit liked our WordPress book, as you can read for yourself in her review, “Don’t Hire Us, Just Buy WordPress 2…THE BOOK!.”

Among her comments, she writes:

We’ve been doing a lot of WordPress consulting of late, but to be perfectly honest, tech-savvy business folks can probably get most of the same value-add out of this book. It’s a very useful tool for anyone who doesn’t already know WordPress inside and out, which is the vast majority of the population. I can also imagine that it would be a handy desk reference for even the most experienced guru.

Thanks!

File Sharing: Tiger & Vista

Stuck? This might help.

I’ve been working with Vista on my new PC for a few months now. I’d originally done an install over Windows XP, but the other day I did a clean install of the Vista Gold Master, wiping the computer clean so there was no old stuff on there. (When the only thing you use a computer for is to run software you write about, this is pretty painless to do.)

Connect DialogThis resulted in a problem: My PC could no longer access folders on my Mac. I simply could not log in. (For some reason, my computer insisted on inserting its name in the User Name field in the Connect dialog; see screenshot.) And, on the Mac side, I could no longer mount a predetermined folder from my PC on my Mac.

This was a big pain in the butt. When I write about Windows stuff (in this case, Excel 2007), I use screenshot software that dumps the resulting screenshot in a folder on my Mac. I then open the file in Photoshop, do some basic image editing, and save it for use in the manuscript, which I’m working on on my Mac.

So now I could no longer have Windows screenshots automatically saved on my Mac.

Okay, so I was going to have to do some extra work with Vista installed. But the problem was, I couldn’t get networking between the two computers to work at all. And that was something I could not work with.

I spent a lot of time searching Microsoft and Apple tech support databases for help on the problem. (Do you know that if you search the Mac tech support databases for “vista” you come up empty? At least this week.) No answers. But one lead.

As you read this, keep in mind that I am not a Windows person. I’m a Mac person through-and-through but am often asked to write about Windows software. I was recently asked to write about Windows OS stuff and I told the editor that I barely knew enough to keep myself out of trouble and I certainly didn’t want to learn more. So if you’re a Windows person and am amazed with what you are about to read, remember this paragraph, have patience, and use the comments link to gently lead me on the correct path.

Network and Sharing CenterThat said, Vista, unlike XP, does not appear to support the “network places” feature. Instead,there’s a Network and Sharing Center where you can set up Sharing and Discovery options. I found that if I followed the following steps, I could create a Public folder that was accessible by my Mac:

In Windows:

  1. Choose Start > Control Panel.
  2. Under Network and Internet, click Set up file sharing.
  3. Turn on the following Sharing and Discovery options:
    Network Discovery (may not be necessary)
    File Sharing
    Public Folder Sharing
    Password Protected Sharing (may not be necessary)
  4. Close the Network and Sharing Center Window. The settings are saved.

In Mac OS:

  1. Click Network in the Sidebar of any Finder window.
  2. Double-click the alias for the Vista PC.
  3. If prompted to Authenticate, enter a Vista User ID and Password.
  4. Connect to PCChoose Public from the pop-up menu.
  5. Click OK.

The Public folder is mounted on your Mac and can be used as a conduit for moving files between computers.

If that helps you, great! But if that was child’s play and you’re wondering why I bothered to take the time to write it and add the screenshots, maybe you can help me.

How can I access a Mac folder from Vista? Yes, I have file sharing turned in Mac OS on and a user specified on Mac OS. I’ve done all the basics, everything covered in the documentation. The problem seems to be that the Vista machine insists on adding the computer name to the Name field of the Connect box (see the first screen shot in this article). How do I get it to stop doing that? What am I doing wrong?

Use the comments link if you have some ideas for me to try.