Skip to content

Tag Archives: blog

Picture of James Lee Outside Discovery Communications Building

Copy of his Rant

This picture was taken in 2008 outside Discovery Communications Building in 2008.

Police officers shot the suspect at about 4:50 p.m., Montgomery County Police Chief J. Thomas Manger told reporters. All three hostages are safe and out of the building.

Cookie Monster – WordPress URL Parameter Utility

I recently had a situation in which I needed to pass a URL parameter into WordPress so that it could be inserted into all links off of a blog page.  For example, a partner would pass traffic to a blog using the format http://www.myblog.com?refcode=joe.  All links embedded in the post would need to pass the value of refcode if it existed, even if the visitor requested multiple pages after the initial visit.

I created a Plugin (Cookie Monster) that will allow a Blog Admin to define which URL parameters should be captured, and then creates a shortcode so that the value can be used in your Posts and Pages.  A WordPress shortcode is a macro code that is embedded in your content.

In the example above, if you define refcode in the Cookie Monster Admin Settings, and if that URL parameter refcode contains a value in the querystring, it will automatically be saved into a cookie in the visitors browser. Anywhere that you place the shortcode [refcode] in your Post, Cookie Monster will insert the querystring value into your Post.  The cookie value will persist across browser sessions.

If you click on this link, you will see that the querystring value refcode is now [refcode]

Try changing refcode= in the link and reload this page.  Let me know if you have any further ideas for expanding this plugin.

You can download the latest copy here.

If you want to be able to build plugins like this yourself, click here and more).

[refcode2]

Lexington Project

Well, it appears that John McCain has been following my blog. Today he has kicked off his plan for US Energy Independence, named The Lexington Plan. McCain’s plan states that the U.S. will be independent of foreign energy sources by the year 2025.

For the town where Americans asserted their independence once before,” McCain explained of the plan’s namesake in Virginia. “Let it begin today with this commitment: In a world of hostile and unstable suppliers of oil, this nation will achieve strategic independence by 2025.”

“Much will be asked of industry as well, as automakers and others adapt to this great turn toward new sources of power, a great deal will depend on each one of us, as we learn to make smarter use of energy, and also to draw on the best ideas of both parties, and work together for the common good.”

“That is the scale of our achievement when we set our minds to a task, that is what this country can do when we see a danger, and declare a purpose, and find the will to act.”

As the readers of my blog will notice, that is exactly what we have been saying here for the past several months. If the country focuses, and asks for sacrifice, we can become energy independent in the not too distant future. What a difference that will make across out country, as well as around the world. We can stop the huge transfer of wealth from the US to the Middle East while strengthening our economy.