Author Archives: TroyThib

line-height should be 0px in TD that only has an image. If not It will show a space under the image in Office 365

Posted in Email Dev | Tagged , , | Comments Off on line-height should be 0px in TD that only has an image. If not It will show a space under the image in Office 365

Do not use

do not use <div> for hidden preheader. This can add some blank space in some clients (yahoo).

Posted in Email Dev | Tagged , , , , | Comments Off on Do not use
for hidden preheader

PHP – read CSV file into an array and create files from an array

<?php $file = fopen(‘files.csv’, ‘r’); while (($line = fgetcsv($file)) !== FALSE) {  foreach ($line as $value) {    echo($value.'<br>’); $HTMLFile = fopen($value.’.html’,”w”); $TextFile = fopen($value.’.txt’,”w”); fwrite($HTMLFile,$value); fwrite($TextFile,$value);  }  } fclose($file); ?>

Posted in PHP/MySQL | Tagged , , , , | Comments Off on PHP – read CSV file into an array and create files from an array

PHP – create files from an array

<?php $files_to_create = array(EM_NEO_TIPS_06501,EM_NEO_TIPS_06502,EM_NEO_TIPS_06503,EM_NEO_TIPS_06504,EM_NEO_TIPS_06505,EM_NEO_TIPS_06506,EM_NEO_TIPS_06507,EM_NEO_TIPS_06508,EM_NEO_BABYDEV_02501,EM_NEO_BABYDEV_02502,EM_NEO_BABYDEV_02503,EM_NEO_BABYDEV_02504,EM_NEO_BABYDEV_02505,EM_NEO_BABYDEV_02506,EM_NEO_BABYDEV_02507,EM_NEO_BABYDEV_02508,EM_NEO_JRNY_01501,EM_NEO_JRNY_01502,EM_NEO_JRNY_01503,EM_NEO_JRNY_01504,EM_NEO_JRNY_01505,EM_NEO_JRNY_01506,EM_NEO_JRNY_01507,EM_NEO_JRNY_01508,EM_NEO_LOY_03501,EM_NEO_LOY_03502,EM_NEO_NUTR_04501,EM_NEO_NUTR_04502,EM_NEO_NUTR_04503,EM_NEO_NUTR_04504,EM_NEO_NUTR_04505,EM_NEO_NUTR_04506,EM_NEO_NUTR_04507,EM_NEO_NUTR_04508,EM_NEO_PROD1_05501,EM_NEO_PROD1_05502,EM_NEO_PROD1_05503,EM_NEO_PROD1_05504,EM_NEO_PROD1_05505,EM_NEO_PROD1_05506,EM_NEO_PROD1_05507,EM_NEO_PROD1_05508); foreach ($files_to_create as $value) {    echo($value.'<br>’); $HTMLFile = fopen($value.’.html’,”w”); $TextFile = fopen($value.’.txt’,”w”); fwrite($HTMLFile,$value); fwrite($TextFile,$value);} ?>

Posted in PHP/MySQL | Tagged , , | Comments Off on PHP – create files from an array

@font-face not working in FireFox. Works in Chrome

This from a stackoverflow.com post: The problem was just Firefox messing up with the font-family declaration, this ended up fixing it: body{ font-family:”MyFont” !important; }

Posted in CSS3, HTML/CSS, Web Fonts | Tagged , , , | Comments Off on @font-face not working in FireFox. Works in Chrome

Guitar Single Coil Hum Cancellation in Reaper DAW

I will updated this post once I try this out. I have some noisy guitar  parts, but they occur while I’m playing, so I need to record just the hum/noise to get a noise profile using the plugin. Very existed … Continue reading

Posted in Reaper | Tagged , , , , , | Comments Off on Guitar Single Coil Hum Cancellation in Reaper DAW

Online website scanners (malware, virus, etc.)

Not sure if these are all legit, but here’s a few I have used. https://sitecheck.sucuri.net https://www.siteguarding.com/ http://scanner.pcrisk.com/ https://www.virustotal.com https://app.webinspector.com/ I also created a Norton account, and also use their services, which I’m hoping is legit, useful, accurate, etc. https://safeweb.norton.com

Posted in Web Dev | Tagged , , , , , , | Comments Off on Online website scanners (malware, virus, etc.)

Dynamic Sender Profile

Dynamic Sender Profile You can use personalization in your Sender Profile. You can’t use AMPscript that is set in your email template because the Sender Profile is read before the email template. You can use a content area, as that … Continue reading

Posted in AmpScript, Email Dev, ExactTarget | Comments Off on Dynamic Sender Profile

Great article: I spent 3 months applying to jobs after a coding bootcamp. Here’s what I learned.

Very interesting article… I spent 3 months applying to jobs after a coding bootcamp. Here’s what I learned. https://medium.freecodecamp.com/5-key-learnings-from-the-post-bootcamp-job-search-9a07468d2331#.fm5i2ipmu Also, here’s a great list of interview questions for front-end folks: https://github.com/h5bp/Front-end-Developer-Interview-Questions

Posted in Web Dev | Comments Off on Great article: I spent 3 months applying to jobs after a coding bootcamp. Here’s what I learned.

WordPress and jQuery AJAX … and some PHP

I had an issue where I created a custom form in WordPress using jQuery, AJAX, and PHP. Here’s a quick rundown of the process. I created a custom WP template file with form HTML included. I created a JS script … Continue reading

Posted in AJAX, PHP/MySQL, WordPress | Comments Off on WordPress and jQuery AJAX … and some PHP

Using “jQuery” instead of “$” in WordPress

In jQuery, the dollar sign character ($) is a shortcut used to represent “jQuery”. You can start your expressions like this: $(‘.content’).css(‘color’,’red’); But, other JS libraries and frameworks also use this character, so with WordPress you must use “JQuery” instead … Continue reading

Posted in jQuery, WordPress | Tagged , | Comments Off on Using “jQuery” instead of “$” in WordPress

Background images in Outlook. It ain’t pretty, but it works…sort of

Bulletproof background images Use rock-solid background images in your HTML email with some help from VML and CSS. Why not do the same with our bulletproof button generator?   https://backgrounds.cm/

Posted in Email Dev | Tagged , | Comments Off on Background images in Outlook. It ain’t pretty, but it works…sort of

ExactTarget AMPscript – data extension stuff

Let’s say we want to read a data extension and get some data from it. First we use the “LookupRows” function to get some data from the DE. We are going to assign the results to a variable (multiRows). The … Continue reading

Posted in AmpScript, ExactTarget | Comments Off on ExactTarget AMPscript – data extension stuff

AMPscript – Count records in data extension, show percentages

I had a project where the client wanted the email recipient to take a simple survey by clicking on a certain link that answers the survey questions. It’s a way to fake a form in a sense. What is your … Continue reading

Posted in AmpScript, ExactTarget | Tagged , , , , , | Comments Off on AMPscript – Count records in data extension, show percentages

Add menu to theme in WordPress

“header-menu” is the name of the menu. You can get that name in the Appearance / Menus section, or create a new one, or rename the default menu. <?php wp_nav_menu( array( ‘theme_location’ => ‘header-menu’ ) ); ?>

Posted in WordPress | Tagged , | Comments Off on Add menu to theme in WordPress

CSS Font-Size: em vs. px vs. pt vs. percent

And the debate goes on.   CSS Font-Size: em vs. px vs. pt vs. percent  

Posted in Web Dev | Tagged , , , , , | Comments Off on CSS Font-Size: em vs. px vs. pt vs. percent

Get absolute path of website using PHP

<?php $path = getcwd(); echo “This Is Your Absolute Path: “; echo $path; ?>

Posted in PHP/MySQL | Tagged , , | Comments Off on Get absolute path of website using PHP

WordPress asking for FTP info when trying to install plugins, themes, updates, etc.

I was having this issue with a site and the fix was to add the FTP info to the wp-config.php file. Keep in mind that I had FTP info that worked using an FTP client, but that same info did … Continue reading

Posted in WordPress | Tagged , | Comments Off on WordPress asking for FTP info when trying to install plugins, themes, updates, etc.

Does image file size in emails effect deliverability?

In trying to find info on image file size best practices, I found a few things. ExactTarget will not host an image file over 200KB. That’s not an issue for us as we use a CDN, but something to keep … Continue reading

Posted in Email Dev, ExactTarget | Tagged , , , , , , , , , | Comments Off on Does image file size in emails effect deliverability?

Quick Start: GSAP and Adobe Animate CC

  Quick Start: GSAP and Adobe Animate CC http://greensock.com/animatecc-quickstart

Posted in HTML5 Banner Ads | Tagged , , , | Comments Off on Quick Start: GSAP and Adobe Animate CC

HTML5 banners ad examples – Rising Stars

From Flite.com Easily and quickly create IAB Rising Star units with Flite’s ready-to-use Rising Star HTML5 templates for both mobile and display. These innovative formats consistently outperform, with 2.5x the interaction rate and 2x more interaction time than traditional ad … Continue reading

Posted in HTML5 Banner Ads | Tagged , , , | Comments Off on HTML5 banners ad examples – Rising Stars

HTML5 for Digital Advertising – IAB

Guidance for Ad Designers and Creative Technologists http://www.iab.com/guidelines/html5-for-digital-advertising-guidance-for-ad-designers-creative-technologists/ Guide: http://www.iab.com/wp-content/uploads/2016/04/HTML5forDigitalAdvertising2.0.pdf    

Posted in HTML5 Banner Ads | Tagged , , | Comments Off on HTML5 for Digital Advertising – IAB

HTML5 banners – Google Doubleclick – DCM

I am working on a banner project and just learning about this stuff. I did not create the banners, but I prepared them to be uploaded to DCM. Here’s a tool to validate them – https://h5validator.appspot.com/dcm. That is specifically for HTML5 … Continue reading

Posted in HTML5 Banner Ads | Tagged , , | Comments Off on HTML5 banners – Google Doubleclick – DCM

HTML5 DCM (DoubleClick) banners

I had my first taste of HTML5 banners recently. These were specifically going to DCM (DoubleClick), and here is some info and resources for building and submitting banners to DCM. Each creative must be a zip No zips inside zips … Continue reading

Posted in HTML5 Banner Ads | Tagged , , , , | Comments Off on HTML5 DCM (DoubleClick) banners

Is object in viewport?

I can’t remember if I posted this before, so I am posting again. This fun little script checks to see if a particular object is in the viewport. http://codepen.io/TroyThib/pen/PPOzyv

Posted in JavsScript, jQuery | Tagged , , | Comments Off on Is object in viewport?

How To Start Your Own PHP MVC Framework In 4 Steps?

http://phpocean.com/tutorials/back-end/how-to-start-your-own-php-mvc-framework-in-4-steps/28

Posted in PHP/MySQL | Tagged , , | Comments Off on How To Start Your Own PHP MVC Framework In 4 Steps?

ExactTarget – Send Classifications

https://help.marketingcloud.com/en/documentation/exacttarget/admin/send_classifications/

Posted in AmpScript, Email Dev, ExactTarget | Tagged , | Comments Off on ExactTarget – Send Classifications

Why I DON’T hate Dreamweaver

For the most part, I don’t use Dreamweaver as a code generator or design tool. I used it to write and edit code. These are the things I like about it. If another IDE does all this better, then I am … Continue reading

Posted in Web Dev | Tagged , , , , , , , | Comments Off on Why I DON’T hate Dreamweaver

Introduction to Angular.js in 50 Examples

Introduction to Angular.js in 50 Examples (part 1) https://www.youtube.com/watch?v=TRrL5j3MIvo

Posted in Angular | Comments Off on Introduction to Angular.js in 50 Examples

HTML5 Canvas for Absolute Beginners

    HTML5 Canvas For Absolute Beginners – Part 1

Posted in HTML5 Canvas | Comments Off on HTML5 Canvas for Absolute Beginners

HTML5 Banner Ads – Greensock.com

Solutions for banner ads http://greensock.com/html5-banners  

Posted in HTML5 Banner Ads | Comments Off on HTML5 Banner Ads – Greensock.com

Reaper :: create a MIDI track

MIDI track Go to: Track / Insert virtual instrument on new track Insert / New MIDI item Double-click on new MIDI item to bring up “Piano Roll”. You can select the MIDI itme and click “e” to bring up the … Continue reading

Posted in Reaper | Tagged , , | Comments Off on Reaper :: create a MIDI track

Pulling data from a data extension like a Relational table

Pulling data from a data extension: Pulling data from a data extension outside of the recipient list DE. Let’s say I have a DE that is my list of email recipeints and there is another DE with a list of … Continue reading

Posted in AmpScript, Email Dev, ExactTarget | Tagged , , | Comments Off on Pulling data from a data extension like a Relational table

Import data into a data extension using FTP

FTP data file into “import” folder In ET, go to “Interactions / Import” and click “Create” Name: Your choice File Naming Pattern: This is the name of the file you uploaded using FTP. Make sure to include file extension (.csv). … Continue reading

Posted in AmpScript, Email Dev, ExactTarget | Tagged , , , | Comments Off on Import data into a data extension using FTP

Adding possessive apostrophe to names – AMPscript

So we have some personalization in an email where we want to greet the recipient using their first name. In the example the first name was a pet name and the email was alerting the recipient that it was time … Continue reading

Posted in AmpScript, Email Dev, ExactTarget | Tagged , , , , , | Comments Off on Adding possessive apostrophe to names – AMPscript

Send Email Using SMTP And PHP Mailer

Nice tut: Send Email Using SMTP And PHP Mailer http://talkerscode.com/webtricks/send-email-using-smtp-and-php-mailer.php

Posted in PHP/MySQL | Tagged , , , , | Comments Off on Send Email Using SMTP And PHP Mailer

Email subject lines – how many characters are viewable

I did a quick test to see how many characters show in a subject line. With desktop apps and web-based email clients, it’s not too big of a deal, and the old standard of a 50 character max seems to … Continue reading

Posted in Email Dev | Tagged , , | Comments Off on Email subject lines – how many characters are viewable

Default Track FX

Default Track FX Click on the FX of any track. In the FX window, go to the FX tab. Choose “Save chain as default for new tracks”.

Posted in Reaper | Tagged , , , , | Comments Off on Default Track FX

Item Notes

Item Notes You can add notes to an item by right-clicking on an item and choosing “Item settings / Item notes”.

Posted in Reaper | Tagged , , , | Comments Off on Item Notes

Reaper – Envelopes

Envelopes You can add an envelope to a track where you will see a horizontal line that represents the volume level. You can move the line up and down to increase and decrease the volume. Right-click on the track and … Continue reading

Posted in Reaper | Tagged , , , | Comments Off on Reaper – Envelopes

Getting started with Reaper audio

Getting Started Download and install Reaper FYI – Keyboard shortcuts, file structure, etc. references are from a Windows perspective. You Mac folks are smart and will figure out how to apply it to your system. First things first, go get … Continue reading

Posted in Reaper | Tagged , | Comments Off on Getting started with Reaper audio

JQuery Ajax method: POST not working Windows servers

I was trying to debug a fellow programmers code that was not working. It looked like it was not loading include files that were trying to load using jQuery’s Ajax function. I was only seeing the problem on Windows servers … Continue reading

Posted in AJAX, jQuery, JSON | Comments Off on JQuery Ajax method: POST not working Windows servers

Adding (subject line) actions to Gmail using Schemas

You ever see those buttons in Google email subject lines? I see them mostly on Amazon.com orders where there is a tracking button right in the subject line. Here’s how it’s done, or at least a way to test it. … Continue reading

Posted in Email Dev | Tagged , , , , , , | Comments Off on Adding (subject line) actions to Gmail using Schemas

Change URL hash with JavaScript using location.hash

This fun little function will change the hash (#) in the URL. In this example, I have an input element and it’s contents will populate the hash. On the “keyup” event the “location.hash” function creates or changes the hash to … Continue reading

Posted in JavsScript, jQuery | Tagged , , , , | Comments Off on Change URL hash with JavaScript using location.hash

Javascript Query Strings – get URL variables

Nice sweet and clean function for grabbing URL variable from CSS-Tricks.com. Get URL Variables

Posted in JavsScript | Tagged , , , | Comments Off on Javascript Query Strings – get URL variables

Email Dev: Outlook 2007 and padding

Outlook 2007, and possible other email clients, do allow padding styles to be applied to a table cell (TD), but if you add padding one cell in a multi-cell row, the padding will affect all the cells in that row. … Continue reading

Posted in Email Dev | Tagged , , , | Comments Off on Email Dev: Outlook 2007 and padding

9 Problems With WordPress You Didn’t Know About (And How to Fix Them)

Great post from themetrust.com about WordPress security and performance.   themetrust.com/9-problems-with-wordpress-you-didnt-know-about-and-how-to-fix-them

Posted in WordPress | Tagged , | Comments Off on 9 Problems With WordPress You Didn’t Know About (And How to Fix Them)

How to view your server PHP settings – phpinfo()

<? phpinfo(); ?>

Posted in PHP/MySQL | Tagged , , | Comments Off on How to view your server PHP settings – phpinfo()

Sending mixed-type messages with PEAR::Mail_Mime

Sending mixed-type messages with PEAR::Mail_Mime

Posted in PHP/MySQL | Tagged , , , , | Comments Off on Sending mixed-type messages with PEAR::Mail_Mime

A Complete Guide to Flexbox

A great Flexbox tutorial from css-tricks.com. https://css-tricks.com/snippets/css/a-guide-to-flexbox/

Posted in HTML/CSS | Tagged , , | Comments Off on A Complete Guide to Flexbox