Categories
Posts

Getting WordPress to prompt you for the "title" of a link

In my quest to slowly customize WordPress to fit my needs, I have been looking for an easy way to create links with the “title” attribute when creating a post. Out of the box, when you click the link button when writing a post you are prompted just for the http address, not for the title.

Luckly, someone on the WordPress Support forum also wanted this feature and wrote a very simple piece of JavaScript so anyone using WordPress can do it. This little hack will make WordPress prompt for a title as well.

In your wp-admin directory, you want to open quicktags.js (a JavaScript file). Look for a function that starts off like this:

function edInsertLink(myField, i, defaultValue) {
if (!defaultValue) {
defaultValue = ‘http://’;
}

Make sure you delete that entire function, then go to the post on the WordPress Support forum to get the exact code (sorry, for some reason posting it on my blog breaks it badly).

Then save and upload the file back to where you got it from on the server. Then go to the write page in WordPress (make sure you refresh the window, sometimes web browsers use a cached copy instead of downloading the latest). Instant title attributes in WordPress.

Categories
Posts

Barry Bonds is wrong

I haven’t had a chance to write about this even though the story has been out there for a few days. Barry Bonds’ comments about racism in Boston have struck a raw nerve for me and I can’t hold them back.

I will be free to admit. Boston hasn’t exactly been innocent of racism in the past half century. It is very embarrising to say the least. The last team in Major League Baseball to have a black player on its roster. Bill Russell’s constant struggle while playing for the Celtics and so on. It is very sad.

However, in the past 20 years or so, Boston has been one of the most caring cities when it comes to race. The people of Boston these days love those who do their work and try their best, regardless of race. The Boston Celtics, Red Sox, New England Patriots, and even Bruins have had many beloved athletes who happened to be of a minority race. Countless minority fans show up at the ballparks, arenas, and stadiums to watch these teams.

Barry based his comments not on personal experience, but on what his dad’s experience was during his career. His dad lived in a different era and the Boston of then is completely different from the Boston of today. If Barry ever played as a Red Sox, he would be as loved as any other athlete in Boston sports history (unless this BALCO stuff turns out to be true). Right now, a guy with a .307 OBP (Pokey Reese) but as gold of a glove as you can get is 3rd in jersey sales this season, no small feat considering that Pedro, Manny, Nomar, Curt, etc. are on the team.

Barry, if you are going to be a jerk, at least get your facts straight. Your way off base here. It is improving. Maybe if you weren’t such a jerk you could realize that. Very sad.

Categories
Posts

Listing categories in alphebetical order

One of my little pet peeves with WordPress is the fact that it didn’t list post categories in alphebetical order. I finally posted a question on the WordPress Support Forums and I had an answer in about 15 minutes.

This simple line of PHP allows you to list your post categories (like mine on the right column) in alphebetical order. Just replace the old categories command line in your index.php with this one:

< ?php wp_list_cats('sort_column=name'); ?>

I love WordPress!

Categories
Posts

US moves to rein in spyware

Looks like the US is looking into trying to put some restrictions in place for companies who create spyware. About time. I’d say about 70-80% of the problems that clients have at work have to do with this crap.

Question is, will these companies move offshore? This could get as ugly as the spam battle, if it isn’t already.

Categories
Posts

Smashing Pumpkins

I am in a Smashing Pumpkins (link goes to Billy Corgan’s web site) mood the past 24-hours. Been a few months since I really sat down and listened to one of their albums. It is pretty amazing when you haven’t listened some of your favorite albums for a long time, everything seems so fresh and amazing.

So hard to pick a favorite Pumpkins song. “Whir” isdefinitely up there on the list though. So sweet and innocent.

Categories
Posts

New layout

Yes, I have changed my layout again. It was one of the styles called WordPress New submitted to Alex King’s wonderful collection of WordPress styles.

I plan to make further modifications to it. But right now, it is the closest I have found to what I have wanted in a layout.

Categories
Posts

Great series starting tonight

Giants vs. Red Sox. Enough said.

I think I am going to watch the game and work on this blog some.

Categories
Posts

About time

You would think that the Red Sox entering Coors Field would be a good thing, especially for the bats (sorry pitchers). The chances of the Red Sox not putting up numbers that were echos of last season were pretty much nill. Of course, the Red Sox managed to lose their offense (and pitching) the first two games of the series.

Yet the moons aligned again and today we treated the Rockies with a 11-0 knockout. I suppose it is how you finish the series, not how you began it. Derek Lowe pitched in my eyes his best game of the season (0 ER in Coors!) and the offense finally clicked.

I really hope this team can turn this win into something really positive, something that can give the team a collective jolt so they can blow through San Francisco and start playing the baseball they were meant to play.

For the first time all year, the team is as close to 100% healthy as one can reasonably expect. Nomar (3-5, 2 runs, a triple today) and Trot (2-3 today) are back. The offense is long overdue to unleash the juggernaunt. This pitching staff has been also scuffling for awhile, although recently things have been much more consistant and better. I really feel this club is ready to put together a great 2nd half run. We are at the 98 game mark and have yet to play our best baseball. I think we are in great shape to win.

One thing to watch is how well Nomar is playing. I hope he hits the lights out of that ball the rest of the season and take today’s game as a very encouraging sign for him. 99% of the fans out there are not concerned about who on the team will be back next year, they are more concerned about winning this year. Whatever Nomar does from now till the end of the season, wherever this team ends up going, Nomar I feel will learn that those who matter most (the fans) respect him 100%. I hope he stays…of any Red Sox player he deserves to end his career where it started: here.

Categories
Posts

Site updates

Ok, I am slowly bringing the blog back online. I have a new default style called Toni Green (originally created by Chris M.). I have slightly modified it out of the box and I plan on heavily modifying in the near future.

Next I need to et some links together for the sidebar and see if I can import this sqldump that I did of my blog posts. If not, guess I lose my blog’s archive, oh well.

This new server rocks!

Categories
Posts

Firefox 0.9 & Thunderbird 0.7

Mozilla.org’s flagship products (in my view), Firefox and Thunderbird, just got major upgrades. Download a Firefox or Thunderbird build today!