How to use the preheader personalization string in Exact Target

If you want to use a preheader in your Exact Target email send (you should), then you’ll attempt to implement the %%_PreHeader%% personalization string listed in their documentation, only to discover it’s inclusion prevents you from doing a “test send” or a “send preview”.

The solution is the following AMPScript, place this in your template:

And this in your email properties:

Note, just like your unsubscribe and web version links, this preheader will not be rendered in a test send, but it will render in a send preview, and of course a real send.

 

Using Drupal Rules Scheduler to Unpublish a Node

I use the Rules module together with Rules Scheduler (a Rules sub-module) to automatically unpublish content at a specified time, as explained in the steps below. These steps use content type = article, which has an expiry date field which is set by the user. When cron runs, the expiry date field is checked and the content is unpublished.

Step 1: Create a Rules “Component”

Here is the Rules Component to be created (in Rules export format):

 

Step 2: Create a “Rule” using the Rules Component

Here is the Rule to be created, in Rules export format:

 

Note that the above rule refers to the Rules Component from the previous step. It’s in Rules export format, just import it in your own environment via copy-paste (after you adapted article in it to fit the machine name of your content type).

Drupal remove white-space from HTML

Add this simple function into your theme’s template.php in order to strip out unnecessary whitespace and line breaks, saving a bit of file size where possible (I saved 17kb from my homepage). If a page contains a <pre> or <textarea> tag, it is left alone, as to not affect code blocks or text typed in a form.

 

Exclude Drupal system CSS for logged-out users

In your template.php, you can exclude Drupal’s system CSS files, or any CSS file that wasnt added by your theme (this includes CSS added by modules) using this PHP snippet:

 

Drupal homepage only CSS

So you want to have a base.css file on all pages, then a homepage.css file just for the homepage, and non-homepage.css for all other pages? Here’s how:

In your themes’ .info file, include the base.css file:

In your themes’ template.php file:

Note: In the code above I have chosen to inline the homepage only CSS.

 

Did you find this post useful?

Tip me some bitcoin:

Inductrix & Taranis, using Spektrum DM9 module

Got lots of money and no patience? You’re in luck, you can get a Spektrum DM9 module for your Taranis quickly, and have it bind to your Inductrix easily.

Inductrix, Taranis, DM9

Unfortunately the module is $59 from eBay, …but it arrives within 3 days and it works.

You’ll need to create a new model on your Taranis, and as shown on the picture below, disable the internal RF module, enable the external RF module, mode on PPM, CH1-8, 22.5ms, 400u, negative polarity.

Inductrix Taranis Model setup

Bind

To bind, follow this sequence:

  • Switch off Taranis
  • Switch on Inductrix and wait for blue LED to flash rapidly
  • Hold down bind button on DM9 module (the only button on it) and keep it held while turning on Taranis
  • DM9 will have a flashing orange LED, then solid orange LED, then go out, now you can let go of the bind button.
  • Blue flashing LED on Inductrix should stop flashing and go solid blue. Now you’re bound.

If the above doesn’t work, keep trying, remove the module from your Taranis and then put it back in and try again. It took me about 5 attempts. At the moment it appears you have to re-bind every time you reboot, but I’m working on a solution for that. EDIT: Appears to be permanently bound now, maybe you have to rebind a couple of times before it remembers?

Channel Direction

My Yaw and Roll channels needed to be reversed within my model setup on the Taranis, there is a nice easy instruction video here: https://www.youtube.com/watch?v=I046G6cW9W8

Timer

Within your model setup on the Taranis you can also add a countdown timer, since the inductrix batteries don’t last long. In Timer 1 choose: THs (throttle start) 3:30 (my conservative estimate), minute call: on, countdown: voice.

Range

If you experience loss of range, open up the DM9 module and ensure the UFL connector is still plugged in. Mine wasn’t, but it still flew!

Shout out to JesseP 🙂

 

Did you find this post useful?

Tip me some bitcoin:

Essential potty training tip

Potty training is hard. In order for your son to become interested in doing it, you have to make it fun.

To do this you need a target to pee on. Whether he is sitting or standing, having a target and making surely to laugh loudly when he hits it, will make him want to potty, not reject it or fight it.

Start with some toilet tissue, and move onto other things to keep him interested, like colored squares of paper. We let our son pick his own color, then sit and pee on it. Potty time is now easy and fast.

You’re welcome.

 

Did you find this post useful?

Tip me some bitcoin:

iPhone input zoom fix – works on iOS9

 

Did you find this post useful?

Tip me some bitcoin: