So here’s a quick tip for you ExpressionEngine users. EE will automatically encode any email addresses that are generated by itself. For example, when you leave a comment on this blog and put in your email address, EE will turn it into a mess of javascript nonsense in the code so that those nasty spiders don’t pick up your email and send you dirty emails.
Sometimes you’ve got to manually encode it, though and that’s where this quick tutorial comes in.
Ready? Here we go:
{encode="bob@bobby.com" title="Email Me!"}
Obviously, the encode property is your email and the title is whatever you want. The cool thing is that even if you put your email address in the title, it still gets encoded so the spiders can’t see it. Using the aforementioned block of code creates a mailto: link so you actually save yourself some time writing code! Did I mention I love ExpressionEngine?
I have wanted one of these forever! THANKS for the great work
thx for sharing
I search the web for web sites and blogs with good to great content and you’re site by far has proven to be great reading, so please don’t stop you’re doing great.
Awesome! Quick question: I have a weblog that has a field for someone’s name and another field for his/her email address. I’m trying to do two things:
1) Have the person’s name show and be linked to the person’s email address if the person has included his/her email.
2) Have that link be encoded.
Do you know how I’d do that? Thanks!!
Hey Stan, I’m not sure exactly what you mean. If you’re talking about leaving a comment and putting the name/email address in EE takes care of the encoding automatically. But if your name and address are custom weblog fields and you want that info to pull on your page you would just use the short name of the custom fields.
For example: {encode="{custom_email}" title="{custom_name}"}.
Of course that would have to be wrapped in your weblog tags, but you get the idea
An easy way to add Ruby files to QuickLook in Leopard
Seth Godin hits the nail on the head again.
Super simple animated loading image creator. You choose type, color and background color and it generates an animated gif.
Finally, the makers of CSS Edit are making an HTML/CSS/Whatever Editor. It’s called Espresso.
Seinfield. Gates. Funny, but such a bad commercial.
A beautiful, heartbreaking photo essay from Phillip Toledano.
Hahahaha, Vista sucks.
The best Content Management System for designers. Feature rich, completely customizable, and easily extendable.
Basecamp is the smarter, easier, more elegant way to collaborate on your internal and client projects.
March 31, 2008
Very cool. Thanks!