Postcards From My Life

Lint I find in my mind's belly-button.
  • EPK
  • Consulting
  • Resume
  • Nerd Herding
  • Talks
  • Flex
  • Zend Framework

Archive for the ‘wordpress’ Category

Newer Entries »

WordPress Online-Status Update

Wednesday, February 15th, 2006

Dear Reader,

Several people have helped me work out a couple of bugs, kinks and general uki-ness in what has become my most popular plugin.  This is not a major update so don’t feel pressured to upgrade. However, if you are running into a problem with the plugin, this may solve it.

Project Page

The current version is 1.1

Please read the instructions on the project page if you are upgrading. I’m in the process of standardizing all of my BlogBling plugins and some things have changed.

As always, questions, comments and pizza are always welcome.

Until next time,
(l)(k)(bunny)
=C=

Posted in BlogBling, Blogging, PHP, Programming, WordPress Plugins | Comments Off

 

New WordPress Plugin – Alexadex

Tuesday, February 14th, 2006

Dear Reader,

Yep, that time again. Let’s play PLUG-IN!

I was surfing around the other day and saw a cool site www.alexadex.com. If your site is tracked by alexa.com then this site allows you to purchase shares in your or any other blog. (Funny money of course) It’s a pretty cool game. But I want everybody to be able to watch the rise and fall of my site’s value. So I write a quick plugin for it.

The project page has instructions on how to install and configure.

This is yet another in the BlogBling seriese of fun but mostly useless plugins for WordPress. As always, have fun with it.

Questions, comments and items off my Amazon Wishlist are always welcome.

Until next time,
(l)(k)(bunny)
=C=

Posted in BlogBling, PHP, Programming, WordPress Plugins | Comments Off

 

WP-Alexify Updated

Sunday, February 12th, 2006

Dear Reader,

Yep, it’s that time again. Time to start updating the BlogBling plugins. Hey, if I don’t make some change every week, how do you expect me to sustain my hit rate? :)

WP-Alexify has been updated. This is a major change. I removed the JavaScript I was using to display the tooltip and went with the wz_tooltip.jz library. This should fix the Safari comparibility issue.

Also, I’m consolidating all of the BlogBling plugins into a single directory. This should make it easier for me to share code among them, reducing the amount of code I have to distribute. So make sure you read the update instructions if you are already running Alexify.

Finally, this one contains my BlogBling updater code. It phones home every 7 days and sees if there is a new version available. It does not collect any information about you, your server or anything else. It just tells me which plugin to check and then gives you the current version number. If you don’t like this you can set the Check Interval to 0 and it will never check again.

Until next time,
(l)(k)(bunny)

=C=

Posted in BlogBling, Blogging, JavaScript, PHP, Programming, WordPress Plugins | Comments Off

 

Notable – Another WordPress plugin

Wednesday, February 8th, 2006

Dear Reader,

Grab your hip-waders and don your helmets boys, we are going in. Yep, I’ve released yet another plugin in my series. This one puts a bar of icons at the bottom of each post allowing your readers to submit your posts to several different social networking and bookmarking sites. (del.icio.us, digg, fark, etc.)

As with most of my plugins, this isn’t a unique idea, just my implementaion of it. Many thanks to Kirk Montgomery for the graphics.

The project page and installation instructions can be found here.

Or if you are already suited up and ready to go, grab the tarball here and head on in.

As always questions and comments are always welcome.

Until next time,
(l)(k)(bunny)

=C=

Posted in BlogBling, Blogging, PHP, Programming, WordPress Plugins | 13 Comments »

 

WordPress Plugin Update Checker

Tuesday, February 7th, 2006

Dear Reader,

A quick one here for those writing WordPress plugins. I’m experimenting with something here and thought I’d share. One thing that bugs me about writing plugins is when I make a new version, I have to go to several places and announce that there’s an update available. So I’m toying with the idea of having the plugin check every x days to see of there has been an update.

The way I do this is in the plugin’s option page (the only place I would ever do this) I put the following code at the bottom of this post.

Currently, this one is hard coded to check every 7 days. I’m thinking about changing that to like 3 and maybe making it an option so the user can set it to 0 and never have it execute.

I’m throwing it out here for others to review. My question is, it is ok to have a plug in ‘phone home’? I know I’m not collecting any stats but this could easily get out of hand if some reasonable guidelines aren’t set.

Until next time,
(l)(k)(bunny)

=C=

CODE:

<?PHP
/*
* Version Check code.
* This is a bit verbose. I'd like to cut it down a bit. I know this works
* in almost all cases. Some places may not have curl installed. I could do
* it in AJAX calling the plugin itself with a parameter and firing off a
* call but that's basically the same as what I'm doing here. So why bother.
*/
if (($notable_settings['last_version_check']+(86400*7))<mktime()) {
$elements = parse_url('http://blog.calevans.com/
plugin_version_checker.php?plugin=wp-notable');
$current_version = 0.00;
$line = '';

if ($fp = @fsockopen($elements['host'],80)) {
fputs($fp, sprintf("GET %s HTTP/1.0\r\n" . "Host: %s\r\n\r\n", $elements['path'] .
(isset ($elements['query']) ? '?'. $elements['query'] : ''), $elements['host']));
while (!feof($fp)) $line .= fgets($fp, 4096);
fclose($fp);

$line = urldecode(trim(strtr($line,"\n\r\t\0"," ")));
$work_array = explode(" ",$line);
/*
* This does not allow for any additional messages to be passed. It
* assumes that the last time coming in is the version #.
*/
$current_version = $work_array[count($work_array)-1];
update_option('notable_last_version_check',mktime());
} // if ($fp)
if ($version!=$current_version) {
?>
<div class="wrap" style="border:solid 1px red;">This is version <?=$version;?>. The current version
of the plugin is <?=$current_version;?>. Click <a href="http://www.calevans.com/view.php/page/notable"
target="_NEW" title="Opens a new window.">here</a> to go to the project page to find out more.
<?PHP
} else {
?>
<div class="wrap">This is plugin is up to date.<br />
<?PHP
} // if ($version!=$current_version)
} else {
?>
<div class="wrap" >
<?PHP
} // if ($notable_settings['last_version_check']!=(mktime()+(86400*7)))
?>
</div>

Posted in Blogging, PHP, Programming, WordPress Plugins | 2 Comments »

 

UPDATE: AIM Online Stats for WP.

Sunday, February 5th, 2006

Dear Reader,

In keeping with my current trend, I’m recycling yet another old piece of code. This time, however, I didn’t plan on it. Thanks to Fred, I found yet another bug in what I thought was a very simple piece of code.

Click here to view the Project Page

The current version is now 1.0.3. If you use this plugin, please update. (Just untar over the top of your existing one.)

If you don’t use this plugin then you obviously have no interest in updating but thank you for reading this post anyhow.

If you blog, have an AIM account and want all your blog readers (Blog-sta-teers?) to know when you are available for chatting, this is the plugin you’ve been waiting for. Pop over to the project page and get your copy today. There’s no better way to signal to total strangers that you are willing to have your day interrupted.

=C=

Posted in PHP, WordPress Plugins | Comments Off

 

WP AIM Status Indicator 1.0.1

Sunday, January 22nd, 2006

Dear Reader,

Thanks to www.freelancefred.com I found and fixed a problem with My WP plugin AIM status indicator. As well as fixing a problem I added the ability to display your buddy icon if you have one.

Enjoy,

(l)(k)(bunny)

=C=

Posted in WordPress Plugins | Comments Off

 

Fade Anything Technique Extended Edition 2.0

Tuesday, January 17th, 2006

Dear Reader,

Ok, it’s finally done. Sorry it took so long but life intervenes. Here is my take on the wonderful code to fade things. You may have seen this technique in my previous blog entries. Or in some of the lesser known places like basecamp (who inspired the original author) or the original author’s page. No matter where you saw it, here is the WordPress plugin to let you use and abuse this effect in your blog.

A sample of the effects that can be used to annoy can be found here. The official project page can be found here. You can download the tar file here.

To install:

  1. Download the tarball to your wp-content directory.
  2. Untar. This will place wp-fatter.php in your plugins directory and fatter2.js in your wp-content directory.
  3. Move fatter2.js into your javascript directory. (Or wherever you keep your javascript files.)
  4. Activate the plugin
  5. From the Admin section of WordPress go to Options->FATtER. Check the options listed making sure they have the values you want. Pay careful attention to the location of the script. If this isn’t right, the effect won’t work. Once everything is correct, Click Update to commit the values to the database.
  6. Start using the effect. There are several examples in the .js file of how to call it, the easiest is to wrap a piece of text in a span tag with a unique ID (anything as long as it’s unique for the PAGE) and a class of “fade”.

I hope you enjoy using this as much as I did creating it. For those curious, I originaly wrote this because when I would encode secret messages of undying love into blogs for wife v1.22 – the lovely and talented Kathy – she sometimes didn’t see them. So I had to make them a little less secret and a little more obvious.Until next time,

(l)(k)(bunny)

=C=

Posted in JavaScript, WordPress Plugins | 1 Comment »

 

WP 2.0!

Thursday, January 5th, 2006

Dear Reader,

New toys, new buttons to push, new knobs to twiddle!

Thanks to the wonderful WordPress team. Just as the shiny was wearing off my video iPod, I get a new toy to play with. :)

Oh BTW, both of my plugins, wp-online-status and wp-alexify work just fine. I’m working on wp-FATtER that should be released soon.

Until next time,
(l)(k)(bunny)

=C=

Posted in Me, Technology, WordPress Plugins | Comments Off

 

Another WP Plugin

Friday, December 16th, 2005

Dear Reader,

Through the fog of Birthday induced depression, I found the time to work on another WordPress plug-in. Building on the work of Jarno Ristaniemi and Clay Smith I’ve added an options page to allow you to set all the options from within wordpress. You can see it in action of you look at my sidebar. This one was fun because it was the first one I did with an options page. Again, kudos to the WP team. I was able to squeeze it all into a single file. Granted it’s still not as complex as some plug-ins I’ve seen but I’m getting there.

Read the install page and download here.

Until next time, the final countdown has begun.

=C=

Posted in PHP, Programming, WordPress Plugins | Comments Off

 

My First WordPress Plugin!

Thursday, December 8th, 2005

Dear Reader,

I looked up at the clock last night and it was midnight. I’d been tinkering with this idea for 5 hours without stopping. (God, I love it when I get a burr under my saddle!) You programmers in the audience will know what I mean.

This is not an original idea. I saw the guys at Zimbra demo this feature in their mail client at Web 2.0. It struck me as a cool and easy to implement idea. So I set about implementing it. I first did it manually on my resume…just because I start all good projects with my resume. Once I had it working I decided I wanted it in my blog but I really didn’t feel like going back and retrofitting all the URLS with the mouseOver and mouse Out attributes. So I decided a plug-in was in order.

Also, I wanted to see how easy it was to write a WordPress plug-in. My hat is off to you guys. The plug-in was the easiest part of the whole task. Actually getting both IE and FF to play nice was the hard part! When I implemented it on my resume, the JavaScript code to find the current mouse position in IE was:


posx = e.clientX + document.body.scrollLeft;
posy = e.clientY + document.body.scrollTop;

For some reason in the WP environment, that does not work. I had to modify it to say:


posx = e.clientX + document.documentElement.scrollLeft;
posy = e.clientY + document.documentElement.scrollTop;

I’m not sure why it worked in one environment and not the other so I’m gonna research that. Other than that it was pretty easy and a fun way to kill an evening! (Well, I stopped for Veronica Mars but c’mon…who wouldn’t!)

Anyhow, here it is if you want to implement it on your own blog.

Until next time, it’s cold here too…just not AS cold. :)

(l)(k)(bunny)
=C=

Posted in JavaScript, PHP, Programming, WordPress Plugins | 5 Comments »

 
Newer Entries »
  • Event Registration Online for Day Camp 4 Developers : Soft Skills

  • Team Based PHP Training

  • Tags

    adobe API article Cal Evans codeworks community conference cw09 Derick Rethans developers devzone elizabeth naramore Exim flex fun IBuildings Kathy Evans linkedin Management Marketing microsoft MySQL Nashville open source phar PHP phparchitect php developers podcampnashville podcast Programming Quickies respect Sebastian Bergmann Silly-Con Valley sixty second tech software development terry chay twitter upgrade video windows wordpress zend zend framework

  • RSS PHP Podcasts

    • DPCRadio: Web services for consumer devices
    • Creating RSS & Atom Feeds with Zend_Feed
    • SitePoint Podcast #77: Paper or Blu-ray?
    • JSClasses, JSMag, PHP Alpha 1, PHP strict typing, IndieConf – Lately in PHP podcast episode 4
    • SitePoint Podcast #76: Wicked WordPress Themes with Allan Cole and Jeffrey Way
    • DPCRadio: Designing for Reusability
    • SitePoint Podcast #75: Awesome Overkill
    • DPCRadio: Technical Debt
    • SitePoint Podcast #74: WordPress Themes with Nathan Rice and Cory Miller
    • SitePoint Podcast #73: Cease and Desoup

  • Me

    • Best web design company
    • Cal Evans Dot Com
    • Cheap Wine Diary
    • Cyrano’s Apprentice
    • Evans Internet Construction Company
    • My Life as a Child
    • PHP Podcasts
    • Sixty Second Tech

  • Categories

    • Apache
    • BlogBling
    • Blogging
    • codeworks
    • Entertainment
    • Entrepreneurship
    • Flex
    • Humor
    • JavaScript
    • Long Form
    • Management
    • Marketing
    • Me
    • PHP
    • podcasting
    • Programming
    • SQL
    • Technology
    • Web 2.0
    • wordpress
    • WordPress Plugins
    • writing
    • zend framework


Postcards From My Life is proudly powered by WordPress
Entries (RSS) and Comments (RSS).