The migration to Gallery 2.0 is now complete. I spent some time over the last couple of days to find ways to integrate Movable Type and Gallery. In both cases, lack of time to delve into APIs forced me to take some shortcuts.
These examples rely on the use of Cold Fusion as a scripting language. They could probably be adapted to PHP instead, but then again, I don't have much time to learn PHP beyond simple editing of existing code.
Displaying Gallery content from Movable Type
Gallery offers a nice way to embed images from remote pages. By simply looking at the URLs used by the image-block option of Gallery, I came up with the following modules for Movable Type :
<CFOUTPUT>
<CFHTTP url="#gallery2url#?g2_view=imageblock.External&g2_blocks=randomImage" resolveurl="no" />
#CFHTTP.FileContent#
</CFOUTPUT>
This module displays a random image from the Gallery. Change the value of 'g2block=' by 'viewedImage' to display the most view image. '#gallery2url#' is a cold fusion variable to the URL of the 'main.php' page of your gallery.
The switch of this site to the new 3.2 version of Movable Type took a little longer than expected but it was well worth the wait !
After using it for a couple of days, I keep finding little changes here and there, interface improvements, better icons... overall, the new Administration is clean and streamlined. More importantly, it makes sense.
I won't go into the main features of this new version. Other sites such as Planet Movable Type are doing that in a much better way than I would.
One word of warning though if you are using IIS6 and Perl 5.6 on Windows like I am. Some Perl scripts included in the new version simply refused to run.
That can be a problem if the script you are trying to run is 'mt-upgrade.cgi' or even 'mt.cgi'.
It turns out the path to the new perl libraries was not defined properly. Thanks to a quick email to Six Apart's support line (answered by Brad Choates no less :) ), a solution magically appeared in my inbox.
Simply add these 3 lines to the '.cgi' files using the new 'Boostrap' method :
use File::Basename;
use File::Spec;
use lib File::Spec->catdir(dirname($0), "lib");
(These lines should be added right after 'use strict;').
Now I just have to find enough time to study the new system of styles and the StyleCatcher plugin.
In answer to the initial criticisms about their new licenses, Six Apart has announced the following changes :
Check out the full announcement about MT3.0 licenses for more details.
They have made impressive concessions and showed that they are not only willing to listen to their customers, but they are also acting based on their suggestions. They should be commended for that.
This is my contribution to the informal survey started by Six Apart about the ways people are using Movable Type in the real world. It is rare enough to see a company listen to its users so quickly and be wiling to make changes where other companies would just have ignored the outcry and told everyone to just live with it.
So... how are we using MT ?
Not as frequently or as extensively as I would like I am afraid.
We are using 2 blogs with 2 authors (my brother and myself). Each blog is made up of a main blog and a secondary one to keep track of lists of links.
I also customized a couple of templates in the source code itself to replace the default editor by an HTML embedded editor (FCKedit). This is not working a 100% (still getting odd ’timeout’ messages from MT from time to time on long entries) but it is enough to get the job done.
I would not mind paying for a personal license as long as it covered more than 1 author (I can see that being a recurring theme on blogs shared by multiple members of the same family) and allowed tinkering with the source code.
I really hope this survey will result in changes to the terms of licenses.
Like many others, I was looking forward with excitement to see what the new version of Movable Type had to offer. Since the announcement was made a few days ago of a new version, Movable Type 3.0, and a new licensing scheme, ’disappointment’ and ’confusion’ are more applicable to the situation.
In the middle of the outcry (amplified by a recent feature in Slashdot), some popular blogs are trying to keep a cool view of what is happening. Check out Brad Choates answer to the debacle..
For those who have not heard yet (and who still care), Six Apart announced their free version of MT3 will be restricted to 1 author and 3 blogs. To their credit, they have answered to the outcry following the announcement with a detailed clarification about MT3 pricing change where they announced a revision of the license already (5 blogs instead of 3).
I came late to using a blog for my website, and although I am not posting frequently enough to justify calling this site a real blog, I can easily understand how people who are already paying for their internet access and their hosting are upset to find out they have to pay for an upgrade to something that was free when they first got it.
The answer may look simple - keep the existing version or move to another blog system altogether. The first solution means keep using a software that will become more and more obsolete each day. The other solution means accepting to go through setting up yet again and migrating past data into a new system.
I will probably keep this version (still free) until the dust settles, and switch to a personal license when I have a chance.
I have been trying to replace the default entry textarea by an HTML editor such as this one ( FCK Editor - FREE web based HTML editor )
Getting the editor to work is relatively straight forward. Just install the zip files in their destination on your website, edit the editor javascript (or .htc) files to point to the new location and copy/paste the HTML code from the test pages into the ’edit_entry.tmpl’ template (MT/tmpl/cms folder).
Problems showed up when I tried to edit an entry : all HTML codes were replaced by their escaped equivalent.
For example : </A> becomes & lt ;/A & gt ;
This makes WYSIWYG editing completely useless. But the good news is - I finally got it to work...
Continue reading "How to replace the default entry textarea by an HTML editor" »
