Archive for June 2013

Gannett: Week 3

Still no server access, but the email blast and its authoring tool are coming along well. I’ve spent less time on Codecademy this week than I’d've liked, but that’s because the authoring tool was completed this week. I haven’t put it online yet, but it allows the Lantern’s editors to choose between a few different formats for the top story of the page.

The worst bug I encountered this week was a lone, unclosed [

Brains aside, I wonder how many poorly-written xkcd.com-parsing scripts will break on this title (or ;;

The authoring tool is set up to take the email blast template, but I'm waiting for final approval from the Lantern's editors, my supervisors, and myself before I throw the email template's HTML into the variables of the JavaScript powering the authoring tool. Right now, all it does is generate test code:

From: "The Lantern" 
To: <%to%>
Subject: 
X-BulkMail-Envelope-From:  
MIME-version: 1.0
Content-type: multipart/alternative; boundary="Boundary_foo"

This is a multi-part message in MIME format.


--Boundary_foo
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT





open table for ad
	Image = http://f.benlk.com/edu/Lantern/email-files/ad-728.jpg
	Link = http://www.thelantern.com/advertise-with-the-lantern
close table for ad

email table top
	button bar tr
	lantern header tr
	topstory tr opening HTML
	Text-only top story:
		Headline: 
		Link: 
		Blurb: undefined

	topstory tr closing HTML
	Middle ad
		Image = http://f.benlk.com/edu/Lantern/email-files/ad-468.jpg
		Link = http://www.thelantern.com/advertise-with-the-lantern
	Bottom table top
		Bottom table left column top
		#2-title,#2-url,#2-blurb
			Story 2 title: “”
			Story 2 url: 
			Story 2 blurb: 
		Bottom table left column bottom
		Bottom table right column top
			Bottom table right sidebar ad
				Image = undefined
				Link = undefined
		Bottom table right column bottom
	Bottom table bottom
Footer, including links to Lantern contacts and advertising



–Boundary_foo–

Gannett: Week 2

The server for the new Lantern website is not yet ready, so I’ve been working on other things, specifically the template for the email news blast, and a tool to help editors author it.

Along the way, I’ve brushed up on my CSS and HTML, and have picked up a bit of PHP and jQuery from Codecademy. My progress can be seen on my Codecademy profile.

The tool I’m working on for authoring the email blast has form and some functions. It has the option to create an arbitrary number of stories, and then use those to generate the HTML of an email to be fed into OCIO’s Bulkmail system.

So far, the generation is the problem. I’m getting better at JavaScript and jQuery, but I suspect that I shall end up taking the Codecademy JavaScript course.

I’ve also learned about and made use of the Twitter Bootstrap CSS library in my email template tool.