www.slotmachines.us.org/roulette
phone-header

WordPress Phone Number Replacement Plugin

Just published my first plugin properly onto GitHub.

It’s my WordPress Phone Number Replacer - basically it helps you track ad campaigns by letting you dynamically swap out phone numbers on a page with different phone numbers depending on what ad campaign they came from.

This plugin uses Advanced Custom Fields (http://www.advancedcustomfields.com) with the Repeater and Options Page add on (both paid add-ons) for the plugin UI.

Screen Shot 2014-03-03 at 3.25.21 PM

Plugin supports multiple numbers for campaigns based on source (Google, Bing, Twitter, Facebook). Could easily be extended to offer more.

The options are outputted into a <script> tag in the footer with a JSON object that is used as a reference, then, if a URL with the correct parameters (i.e. www.domain.com/landing-page/?source=google&campaign=campaign_name) is used, either all numbers on the page will be replaced, or, if a selector has been defined, all numbers that fall within an element with the declared class will be replaced.

User is cookied so all subsequent pages will have same replacement action occur.

Thanks to Scott Hamper for Cookies.js  (for cookie handling) and Websanova for js-url (for URL parsing).

Screen Shot 2014-03-02 at 10.58.48 PM

An Invocation for Beginnings

On average, I’d say I watch this video once a week. For some reason Ze Frank‘s words have a particular resonance with me.

Transcript from YouTube. Emphasis are my own.

Don’t call it a comb-back; I’ll have hair for years.

I’m scared. I’m scared that my abilities are gone.

I’m scared that I’m going to fuck this up. And I’m scared of you.

I don’t want to start, but I will.

This is an invocation for anyone who hasn’t begun, who’s stuck in a terrible place between zero and one.

Let me realize that my past failures at follow-through are no indication of my future performance. They’re just healthy little fires that are going to warm up my ass.

If my FILDI (fuck it let’s do it) is strong let me keep him in a velvet box until I really, really need him. If my FILDI is weak let me feed him oranges and not let him gorge himself on ego and arrogance.

Let me not hit up my Facebook like it’s a crack pipe. Keep the browser closed.

If I catch myself wearing a too-too (too fat, too late, too old) let me shake it off like a donkey would shake off something it doesn’t like.

And when I get that feeling in my stomach — you know the feeling when all of a sudden you get a ball of energy and it shoots down into your legs and up into your arms and tells you to get up and stand up and go to the refrigerator and get a cheese sandwich — that’s my cheese monster talking. And my cheese monster will never be satisfied by cheddar, only the cheese of accomplishment.

Let me think about the people who I care about the most, and how when they fail or disappoint me… I still love them, I still give them chances, and I still see the best in them. Let me extend that generosity to myself.

Let me find and use metaphors to help me understand the world around me and give me the strength to get rid of them when it’s apparent they no longer work.

Let me thank the parts of me that I don’t understand or are outside of my rational control like my creativity and my courage. And let me remember that my courage is a wild dog. It won’t just come when I call it, I have to chase it down and hold on as tight as I can.

Let me not be so vain to think that I’m the sole author of my victories and a victim of my defeats. Let me remember that the unintended meaning that people project onto what I do is neither my fault or something I can take credit for.

Perfectionism may look good in his shiny shoes but he’s a little bit of an asshole and no one invites him to their pool parties.

Let me remember that the impact of criticism is often not the intent of the critic, but when the intent is evil, that’s what the block button’s for.

And when I eat my critique, let me be able to separate out the good advice from the bitter herbs.

There are few people who won’t be disarmed by a genuine smile (Simultaneously: A big impact on a few can be worth more than a small impact)

Let me not think of my work only as a stepping stone to something else, and if it is, let me become fascinated with the shape of the stone.

Let me take the idea that has gotten me this far and put it to bed. What I am about to do will not be that, but it will be something.

There is no need to sharpen my pencils anymore. My pencils are sharp enough. Even the dull ones will make a mark.

Warts and all. Let’s start this shit up.

And god let me enjoy this. Life isn’t just a sequence of waiting for things to be done.