Archives by Month

Support this Site!

You may have noticed that there's very little third-party advertising on this site. I'd like to keep it that way. Here's how you can help:

  • Buy my books. They're available at great prices on Amazon.com.
  • Check out my training videos on Lynda.com. It's a great source for "all you can eat" training.
  • Donate a few dollars. It'll help cover my hosting costs and give you a chance to tell me what you want to see covered here.
  • Comment on blog posts. You can help get a discussion going that can benefit others, making the site more valuable for everyone.
May 30th, 2006

WP-Print

I add a post printing function to the site.

One of the things that bugs me about WordPress is that when you print a page, the resulting printout does not have the same formatting as the page in your Web browser. Instead, styles are pretty much stripped out and sidebar components are added to

Continue reading WP-Print

May 27th, 2006

iWeb 1.1.1 Update Now Available

Information from Software Update.

iWeb 1.1.1 resolves issues related to publishing sites to .Mac

May 16th, 2006

iLife Updates Now Available

Information from Software Update.

The following updates to iLife applications are now available:

iDVD Update 6.0.2

This update to iDVD addresses issues with burning some 16:9 projects and improves overall stability.

iWeb Update 1.1

This update to iWeb adds comment and search support for blogs and podcasts published to .Mac. It also addresses a

Continue reading iLife Updates Now Available

May 14th, 2006

WordPress

Maria Speaks Episode 25: WordPress.

A discussion of the WordPress blogging platform.

Transcript:

Hi, I’m Maria Langer. Welcome to Maria Speaks episode 25: WordPress.

First of all, I have to apologize for not keeping up with the podcasts as promised. Although I have plenty to write about in my blogs, I don’t seem able

Continue reading WordPress

May 12th, 2006

Security Update 2006-001 Now Available

Information from Software Update

Security Update 2006-003 is recommended for all Mac OS X 10.4 Tiger users and improves the security of the following components.

AppKit Bom CFNetwork CoreFoundation CoreGraphics curl Finder Flash Player Plug-in ImageIO LaunchServices Mail Preview QuickDraw Ruby Safari securityd

For detailed information on this update, visit http://docs.info.apple.com/article.html?artnum=61798

May 12th, 2006

QuickTime Pro 7.1 Now Available

Information from Software Update.

QuickTime 7.1 delivers numerous important bug fixes and addresses critical security issues. This update is highly recommended for all QuickTime 7 users.

Important Notice to QuickTime Pro Users

Installation of QuickTime 7 will disable the QuickTime Pro functionality in prior versions of QuickTime, such as QuickTime 5 or QuickTime 6.

Continue reading QuickTime Pro 7.1 Now Available

May 11th, 2006

Splitting a WordPress Category List

A quick how-to for WordPress users.

When I rolled my book support Web site, LangerBooks.com, into this site — my personal site and blog — I needed to make a clear distinction between the categories that I maintained to support my books and those that were part of my blog. I wanted to make

Continue reading Splitting a WordPress Category List

May 11th, 2006

RiteOfTongue

A Firefox Web browser spelling checker extension.

As I’ve mentioned elsewhere in this blog, I’ve discovered that I’ve become almost dependent on automatic spelling checkers like the one in Microsoft Word to check my typing for spelling and typographical errors. Trouble is, an automatic spelling checker is not always available.

Like right now. I’m

Continue reading RiteOfTongue

May 8th, 2006

Displaying Random Ads in Your WordPress Blog

Instructions for using the AdRotator plugin to generate random ad images with links. I've been wanting to do this forever. In fact, it was the first thing I explored when I started using WordPress late last year. Unfortunately, I didn't have enough understanding of how plugins and theme files worked to get anywhere. Things are different now. I know what I'm doing. And this particular task is quite simple, as you'll see here.

The Goal

My goal was to be able to display small advertising images at the top of the navigation bar. The image would appear randomly from a pool of images and, when it appeared, it would be associated with a specific URL. When the image appeared, the site visitor could click the image to go to a Web site or page. I wanted to use this for wickenburg-az.com, a site I spend an awful lot of time working on with no compensation. The idea was to charge a nominal fee to add an image to the pool for a month. The money I collected would cover the cost of running the site. Keep in mind that I could use any size image and place it anywhere in the header, sidebar, or footer. I wanted a 170 x 120 pixel image at the top of the sidebar. (I already run a strip of Google text ads at the bottom of the page, as I do here. I think too much advertising on a Web site is extremely obnoxious. But how much is too much when you have bills to pay?)

The Plugin

I won't go into detail about my search for the plugin. It was neither long nor exciting. I wound up with AdRotator by Angsuman Chakraborty, which was really designed to work with Google AdSense and other prepacked blog advertising tools. But as I read the comments for the plugin's description, I was assured that it would do what I needed to do. But how do I use it? The User Manual was difficult to find. It wasn't very user-friendly, either. (No offense to the plugin author. Frankly, I think that every programmer should team up with a tech writer to get documentation written. Programmers program. Writers write. Programmers don't usually program and write -- although an exception does come to mind.) So I decided to write up a quick How To piece that would explain how to use AdRotator to do just what I wanted it to do. This isn't AdRotator documentation. It only explains how to use the plugin for one particular task. Also, these instructions don't explain every single step in minute detail. If you want that kind of explanation, buy a Visual QuickStart Guide. Instead, these instruction assume you have already mastered the basics of using your image editing software, an FTP client, a text editor, and WordPress.

Create the Ads

First, use image editing software and your FTP program to create and upload the ad images.
  1. Decide on an ad size based on where you plan to place the ads. I used 170 wide by 120 tall so it would fit in the sidebar column of my theme (modified Connections).
  2. Use your favorite image editing software to create each image in the desired dimensions.
  3. Save the images as GIF, JPEG, or PNG format files with the appropriate file name extension.
  4. Use your favorite FTP client to upload the images to a folder within your WordPress wp-content folder. I created a folder called ads (real creative, huh?) and put them there. For obvious reasons, the folder's permissions must be set so its contents are readable.
  5. Put away your image editing software; you're done with it for now.

Install and Activate the Plugin

To use any WordPress plugin, you must download it, install it, and activate it.
  1. Download the plugin. This was pretty challenging, since I had a hard time finding a link to it. You can find a link on this page or simply click Download the plugin.
  2. Use your favorite FTP client to upload the AdRotator.php file to your plugins directory inside your wp-content directory.
  3. Go to the Plugins adminsitration panel in WordPress and activate the AdRotator plugin.

Create the Reference File

Now comes the part that seems to confuse most people (according to the comments). You need to create a plain text file that includes HTML for displaying the ad graphics with links to their URLs.
  1. Fire up your favorite text editor. Do not use a word processor like Microsoft Word! I use TextWrangler, which I can't say enough nice things about.
  2. Create a new text file.
  3. For each ad/URL combination you want to include in the pool of ads, create a line in the text file that includes the following code:

    Of course, you'll substitute real URLs and text for what is shown above. A real example from my setup would be:
  4. Save the file with a Web-friendly name and the .txt file extension. In my example, I named it ads.txt (not very creative).
  5. Use your favorite FTP software to upload the file to the wp-content folder in your WordPress installation.

Reference the Ads

Now you need to reference the AdRotator plugin in the theme file in which you want the ad to appear. Normally, this will be header.php or footer.php (for banner ads) or sidebar.php (for ad boxes or towers).
  1. Open the theme file in which you want to reference the ad.
  2. Include the following code exactly where you want the ad to appear:

    Fatal error: Call to undefined function getad() in /home2/aneclect/public_html/mariasguides/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 91