.... anything is possible and nothing happens by accident

Me posing with backpack on, clouds below in the distant, as I climb Mt Kilimanjaro

Month: July 2009

Dont Complain About Your Job

Repeat after me, I WILL NEVER COMPLAIN ABOUT MY JOB.

man enters elephant rectum

You know, you see some things and you ask yourself “I wonder what he gets paid to do that?” you know? This has GOT to be one of the worst jobs in the world.

what would it take for you to enter an elephant’s rectum? Some things should simply be automated.

Good argument for outsourcing though I guess.

How To Password Protect Part of Post or Page

Have you ever wanted to password protect part of your blog post or page, but display some content as well? This little wordpress plugin allows you to show part of a post or page and then keep a portion password protected. Password protecting a post is easy, it’s the showing of partial content that’s tricky. This is not about password protecting part of your website, but part of a post.

I’ve been looking for a solution to this for awhile now.

I have a very popular natural health and weight loss website which publishes a monthly newsletter. Subscribers to that newsletter get my free report “How I Lost 300 Pounds – How To Lose 10 Pounds a Month, Every Month, Until You Reach Your Goal Weight”. Those who follow the directions in the report often go on to report that they’re getting the results and losing the weight while feeling much better. The free weight loss report is a way for me to offer some really great content in exchange for an email address.

I’m sure you might be in the same situation.

So, in giving them a place to download the material, on my download page, I also want to offer other reports to the general readership. In offering other reports of value, it’s a way to show them that by subscribing, the get the “big one”.

I wondered “how do I password protect part of a post or page?” but not the rest.

Apparently it can’t be done.

Until I found this plugin: Password – Partial Post Protection (which didn’t work out of the box as claimed I might add). On that page, half way down it is the link. It’s tucked in between a few other wordpress plugins but a little hard to see if you just scan over it.

password protect part of post or pageWhat it does is add a little box above your publish section in the upper right hand corner of your write post page in your wordpress admin. It uses shortcodes as you see in the image and everything within the shortcodes becomes password protected.

Code Is Broken Though

It’s a single file and out of the box it wont work. In order for the form to submit the password back to the page for authentication, you have to press the submit button (obviously), but the <input> field for the submit button uses type=”button” which does not submit the form.

Line 67 has to be changed from <input type=”button” ……..> to <input type=”submit” …..>

Have a look at how it works:

The next section of this post is password protected!
(password is “test”)

[password]


This part of this post is password protected. The only way to get to see it is to enter the secret password

all of this between the lines is password protected


 

[/password]

 

And this part is now visible again:
And this part below the password protection is again available to readers without the password.

This first solution does not make use of the built in password protection feature of wordpress.

A Second Solution

Funny enough, after looking for a solution to this for hours, I happened to read over the sitemap of a page I had open in a tab in my browser and found another solution to this. I haven’t tried his show the intro to password protected posts wordpress plugin, but I’m running a few others from him.

This second solution makes use of the <-- more --> tag and actual wordpress post password protection.

Seems to me that the first solution using short codes is a bit easier.

So there you have it. If you want to know how to password protect part of a post or page in wordpress, these two plugins may do the trick for you as they have for me. Now, I can move forward and create the download page for my readers that hides the bonus report until the subscribe for the password.

Backflip Fail

I’ve never tried to do a back flip. They just seem wrong. I mean, in every situation I’m in, I’m always thinking “What’s the safest way to do this?” and some things just never come up with an answer so I dont do them. Backflips have so much potential for going wrong. I give you this example

[youtube tndy_b5n1go nolink]

and seriously! Dont do this in your basement!

Beer Prices Go Down

beerThe Alberta Government reversed their 3 month old liquor tax today, which lowers the price of a 12 pack of beer by $1.30.

Nobody seems to have expected this sudden change of heart by the Stelmach government, but it’s created a lot of happy campers. Beer campers that is.

I prefer red wine, but when I do drink beer (and I do enjoy the odd pint), it’s not usually domestic. I enjoy Corona, Heineken and Alexander Keiths, the only domestic beer I drink.

When the beer prices went up in April, a Calgary reporter Peter Akman to inquire about the price of a 12 pack of Labatts Blue.

A case of beer in Alberta was selling for $24.99, second highest only to the Yukon which charges $26.90. Can you believe that?

So now we’ve dropped $1.30 a case and we’re saving a few bucks while the government loses. Maybe we’ll just roll the savings back into more beer.

Whadayathink?

Powered by WordPress & Theme by Anders Norén