Category: Web Building

Slow Publishing in Movable Type caused by ImageValidate plugin

This blog runs on the Movable Type engine, selected mainly because I like the fact that it publishes a static HTML file for each article.

For a long time, Movable Type appeared to be slowing down at publishing posts, particularly ones containing many images. It could take anywhere from a few seconds to five minutes or more just to publish an article! Yet when the images were not uploaded as Movable Type “assets” but simply added using HTML image tags, the publishing went much faster.


Continue reading

Using the Qualtrics API with PHP and javascript to create custom reports

Qualtrics.com is an extraordinarily full-featured online survey application that offers nearly every type of built-in report on your survey data you could ever want. But eventually, there comes a time when nothing but a custom report will do. Or you may want to integrate Qualtrics data into another application. For those times, Qualtrics has an extensive API which allows access to both data and functionality.

Qualtrics University doesn’t have many details of how to use the API, so to help you get started, I’m providing an example of how I used the Qualtrics API with a PHP proxy and Adobe’s Spry Framework to build a simple custom report.


Continue reading

Date-controlled random rotating banner script

This script text and HTML from an XML listing, based on the end date. It scans through the list, finds the first section with an end-date greater than today’s date, then pulls random banner text/HTML from that section. The example shown here uses a flat color banner with white text, but you could also use this same script to generate image or flash-based banners. I’ve also added a nice jQuery fade-in effect but that is optional.

View Demo

Download source files

Continue reading

A SCORM-Ready Template: Part 5A. Captivate Quizzes – Introduction

Although Captivate has its own SCORM interface, its reliability in our LMS over the last few years has become increasingly problematic. Data gets lost, quizzes score incorrectly, or do not complete at all, and there is a lot of frustration. 

At the same time, there has been increasing demand from subject matter experts and educators for inexpensive, easy to learn tools like Captivate that leverage their Powerpoint skills but have plenty of flexibility and options for interactivity. So something had to be done to make Captivate useful again.

What I decided to do was to turn over all the SCORM communication for Captivate activities to our HTML template, which doesn’t have the communication issues of the Adobe products. Using the SCORM template as a wrapper does not add a lot of work to a project, in fact, it requires only one line of code to add a scored Captivate or Presenter quiz to a template-based learning module.

Any type of scored Captivate file will work – both question slides and interactive slides. The module can handle one or more Captivate quizzes, either by themselves, or in combination with other types of content and quizzes, such as Questionmark Perception or the template-based interaction quizlets.

Continue reading

Settings to get Drupal 7 working on Hostgator

At the moment, Hostgator’s default PHP version is v.5.2.4, although version 5.3 is available. Drupal 7 requires 5.3, so until they make it the default, it is necessary to manually tell Drupal where to find PHP v. 5.3. Do this by adding

Action application/x-hg-php53 /cgi-sys/php53
AddType application/x-hg-php53 .php 

to an .htaccess file located in the public_html directory of your site. If Drupal is not at the root of your site, and you don’t want to change the entire site over, it works just as well to modify the .htaccess file in the Drupal directory.

An .htaccess file is just a text file named “.htacess” which can contain many different types of directives understood by the apache server.

Continue reading