Business Interchange Group - MT Tips Archivestag:businessinterchangegroup.com,2009-10-11://412010-01-24T12:21:56ZSpecializing in enhancing your business on the WebMovable Type Pro 4.32-enEnabling PHP on your servertag:businessinterchangegroup.com,2009://41.14492009-12-31T15:18:52Z2010-01-24T12:21:56ZHosting providers have different requirements to enable PHP on the servers you use. Our experience is: GoDaddy: Requires all Web pages containg PHP code have the .php file type. icdSoft: Enable PHP by creating an .htaccess file in the root...Mervhttp://BusinessInterchangeGroup.comGoDaddy: Requires all Web pages containg PHP code have the .php file type.

icdSoft: Enable PHP by creating an .htaccess file in the root directory and adding the following code:

AddHandler application/x-httpd-php5 .php .html .htm

We can continue using .html as the file type and when PHP is embedded using

<?php
... my php code ...
?>

the server interprets it appropriately.

If in doubt, save yourself some time. Look for enabling PHP in the server support help pages or contact your hosting provider support staff.]]>
Adding optional page layouts to MT 4+ themestag:businessinterchangegroup.com,2009://41.14482009-12-29T22:15:23Z2010-01-24T12:22:46ZMervhttp://BusinessInterchangeGroup.com
There are instances when it is desired to have page layout options in the MT 4+ themes besides wtt, twt, tw, wt, mw and wm (w=wide, t=thin, m=medium). A case in point: on our personal Blog Providence (using the MT Professional Black Theme) we wanted a full Page width with no sidebars to display a Google Calendar and Google Map the entire width. Here's how we got it:]]>
@import url(<$mt:StaticWebPath$>themes-base/blog.css);
@import url(<$mt:StaticWebPath$>addons/Commercial.pack/themes/professional-black/screen.css);
The themes-base/blog.css is the standard setup for all themes and contains the css definitions for the various layouts. We added the following:

The standard Page layout is wide-medium (wm) defined in the Page archive template with this code:

<$mt:Var name="page_layout" value="layout-wm"$>

The "page-layout" variable is later used to set the content style. We have two Pages created: "Road calendar" and "Road map" requiring the wide layout. Here is the code we added to the Page archive template (right after the standard value above):

Add the content to the pages and you will have a single wide page layout. Here are my examples:Road CalendarRoad MapMovable Type: Run Periodic Tasks on GoDaddy Hostingtag:businessinterchangegroup.com,2009://41.14392009-11-26T12:32:17Z2009-12-31T17:05:27ZWe experienced an issue running periodic tasks on GoDaddy's servers. "Periodic Tasks" is a tool in the MT library that allows many functions to be run in the background such as publishing entries in the future (Write Entry => Publishing => Status => Scheduled).Mervhttp://BusinessInterchangeGroup.com
The GoDaddy cron setup wizard requires a full path address to run-periodic-tasks but the resulting cron command is: