Search

Phrase

Display

 

Category

   

Order

 

Pagesize

Results

If the result list is too large, please consider these hints

  • Reduce the number of websites.
  • Add more keywords.
  • Use quotes for building terms from keywords. For example, the phrase banner image searches for all articles containing both words. However, "banner image" searches for the exact two-word phrase.
610 hits12345678910

81. Dynamic vs Static

Movalog, Tutorials, 28 KB, 1055 words

Preparing the way from the dynamic system that's going to be coming in MT 3.1 lets discuss the differences between a dynamic and static way of managing content and clear up any doubts.

Static templating is how MT has been all these years. Everytime you make the smallest change or post a new entry you need to rebuild every single page it is connected to for the change to show up. Rebuilding these pages cause physical files to appear in various directories.

With dynamic templating this is all resolved. No more files, no more rebuilding. With 3.1 you can chose how you want MT to act ie: •

Fully Dynamic - every single template is taken and parsed from the database when requested •

Fully Static - there are...

continue reading ...

82. HTMLArea

Movalog, Tutorials, 31 KB, 1212 words

For a few months, I had deliberated adding a WYSIWYG Editor into the Movable Type entry screen and when Typepad implemented an editor into its interface I got jealous. So, here's a way to implement the very powerful HTMLArea into Movable Type (currently only Internet Explorer, Mozilla browsers and other Gecko based browsers supported)

1. Download HTMLArea 3.0 rc-1 and upzip it 2. Upload the files to a folder called htmlarea in your StaticWebPath 3. Open up tmpl/cms/header.tmpl and add the following in <head>...</head> tags

<script type="text/javascript"> _editor_url = "<TMPL_VAR NAME=STATIC_URI>htmlarea/"; _editor_lang = "en"; </script>...

continue reading ...

83. Concerning Spam

Learning Movable Type, Tutorials, 27 KB, 1771 words

Updated August 29, 2005. Originally posted in 2004.

Spammers have discovered bloggers and sooner or later if you allow comments or trackback pings on your weblog you will get spammed.

Blog spam appears in many flavors:

1) Basic comment spam. The spammer leaves a short uneventful message in a comment field in one of your entries. The spam comes from the URL placed in the comments URL field. These URLs link back to every conceivable scam. The spammers leave URLs here to create a link from your site to theirs, thus increasing their Google ranking. Spammers are also now linking to legitimate sites that have not cleared their pages of comment spam, thus increasing the Google rank...

continue reading ...

84. Configure Active Plugins

Movalog, Tutorials, 31 KB, 1012 words

I find the Configure Active Plugins list on the MT front page very useful, however this list has been getting longer and longer and I install more and more plugins that register on there. Eventually this bugged me (big surprise eh?) and I decided to move that to its own page. Click the thumbnail to the side for a larger image.

First open up lib/MT/App/CMS.pm and find around line 40

'list_blogs' => &list_blogs,

and add right underneath it

'list_plugins' => &list_plugins,

Next around line 342 (at the end of sub list_blog) fine

$param{no_breadcrumbs} = 1; $app->build_page('list_blog.tmpl', \%param); }

and add after it

sub list_plugins { my $app = shift;...

continue reading ...

85. Adding a Sidebar to the Default Archive Templates

Learning Movable Type, Tutorials, 24 KB, 989 words

The default Movable Type MT3.2 templates come with a sidebar on the right side of the Main Index page, but not on any of the individual entry, monthly, or category archive pages.

There are two basic ways to add a sidebar to archive pages. The easiest for beginners is just to copy and paste the existing sidebar code into the correct place in the archive templates. The slightly more involved, but much preferable method is to create a separate file with the sidebar code and use a PHP include or an MT include to include the file into the various templates. You can also very easily move a sidebar from the right to the left side of your weblog pages.

Where is the Sidebar Code?

The MT3.2 stylesheets and...

continue reading ...

86. Approve/Moderate All

Movalog, Tutorials, 30 KB, 1004 words

In the early days of MT 3, when I had unreg'd comments set to moderate, I really wanted to have an approval all button as I would read the comment in the email notification I received. Since then that feature request has not progressed so I decided to take matters into my own hands. As the screenshot shows, at the end of this hack you will end up with two buttons on the comments listing screen. This buttons will allow you to mass approve/moderate comments by checking the boxes of the corresponding entries.

First of all open lib/MT/App/CMS.pm and find on approximately line 32 the following

'approve_comment' => &approve_comment,

and right after it

'approve_confirm' =>...

continue reading ...

87. Rebuild This Template

Movalog, Tutorials, 30 KB, 1060 words

UPDATE 09/06: Rebuild Site

One of my favourite features in MT 3.1 is the "Rebuild This Template" button that appears when you save a template. When you click that button it doesn't popup another window for you to confirm the rebuild, no, it just rebuilds then and there. Unfortunately the button at the bottom of the page doesn't do the same. Also because my template body field is huge, that bottom button is quite far down so I have to scroll for a bit. These two annoyances led me to hack the edit_template.tmpl file found MTDIR/tmpl/cms/, this hack is only available in MT 3.1 and greater. If you feel uncomfortable with hacking files but would like to have this hack, please contact me and I will quote you a price for the installation....

continue reading ...

88. Smarty. MT. Dynamic

Movalog, Tutorials, 28 KB, 1017 words

Smarty Docs

Now that Smarty is built into MT, you've got a whole load of new features that you can use. Just have a look at the documentation everything discussed in those docs are available to MT users, the only difference is instead of single braces you need to use double, for example where in the Smarty docs it gives you a line like this {include file="sidebar.php"}

when you implement that into MT it will need to become {{include file="sidebar.php"}}

This was chosen over the single braces because the single braces can cause problems when you start writing Javascript. None-the-less if you really wish to use single braces, find in your mtview.php template the following line (thanks...

continue reading ...

89. Cool IRI for a permalink

alogblog, Plugins, 20 KB, 1422 words

World Wide Web has been mainly constructed with US-ASCII, even for URL. But in now and future, WWW will shift from US-ASCII only world to Internatinalized world with the help of Unicode, UTF-8, IRI, and so on.

If you are European, or Asian, or others, you would write an entry by your own language, therefore the title of it also will be with yours. However, the default MT removes or deforms non US-ASCII characters in title to make an entry basename for permalink URL(It is completely right in URI side). As a result, they couldn't enjoy full features of MT that can create Cool URI. Only English users could do.

This plugin makes your permalinks as Cool IRI...

continue reading ...

90. What the... Flock 0.5pre?

MovableTweak, News, 26 KB, 1013 words

It's calling itself "the social browser" and claims to be the champion of Web 2.0.

Visit the site and you'll find humongous type and a free-spirited blurb about the way the web should work, but what is Flock and should you be excited about it? It claims to be one of the first browsers that emphasizes the internet sharing experience, allowing you from within the browsers interface to add and share del.ic.ious links (cf. my post about that), post to and manage your blog(s), add and share Flickr photos and act as a fully functioning RSS news reader. Those are some ambitious goals and certainly some vital needs in this new age of Internet.

Internet Explorer essentially...

continue reading ...

91. MT InlineEditor 1.1

Movalog, Tutorials, 31 KB, 993 words

This new version introduces inline editing for comments by the commenters. A cookie is set when the person hits the post button on the comment form. The cookie is set to expire in 5 minutes so the person must make any edits within five minutes.

Download MT-InlineEditor_1.1.zip. Preserve the directories in the zip starting from your root MT directory (therefore files in the extlib/ folder in the zip go into MT's extlib/ directory and mt-ie-cookiecheck.php goes into your root mt directory etc.)

For every blog you want this enabled on, you will need to create two index templates of the two text files in the zip (mt-inlineeditor.php and mt-inlineeditor.js) I've used MT Tags in those...

continue reading ...

92. Staggered Category List

Movalog, Tutorials, 30 KB, 1205 words

UPDATE: No more CSS, have MT auto indent.

The "Primary Category" drop down menu just lists the categories sorted alphabetically and doesn't obey the category heirarchies you may have setup. This is especially annoying if you have several similarly named sub categories under different parent categories. So here's a hack that will change the way that field works, the categories will now obey the category heirarchy as shown in the screenshot (click for a larger view) It's probably best to note that I'm not the most perl savvy and this code may not be the most efficient/quickest/best way to do it but it works for me.

You'll need CMS.pm, open it up. Replace everything between

## Load...

continue reading ...

93. Quicktags for Comments

Movalog, Tutorials, 31 KB, 985 words

Many people wanted to know how I implemented these guicktags into my comments form. So here's a quick tutorial for that. In your comments form find

<p><label for="text">Comments:</label> <MTIfAllowCommentHTML> (you may use HTML tags for style)</MTIfAllowCommentHTML><br/> <textarea tabindex="4" id="text" name="text" rows="10" cols="50"></textarea></p>

and replace it with

<div class="quicktags"><p><label for="text">Comments:</label> <MTIfAllowCommentHTML><script src="http://www.movalog.com/mt/js_quicktags.js" type="text/javascript"></script><script type="text/javascript">edToolbar();<...

continue reading ...

94. Sort Entry Listing

Movalog, Tutorials, 34 KB, 1518 words

On the forums, someone recently commented on how the listings in MT could be improved with greater sorting flexibility. I thought that it was a very good idea and so after a bit of hacking managed to get the entry listings to be sorted, it would be easy to adapt this for the comments and trackbacks listing.

This hack will add ascending and descending sorting capabilities to the title and date fields. The rest you can use the Filter option for.

First, you'll need CMS.pm, around line 2411 in the list_entries sub, find the following

my %arg = ( 'sort' => 'created_on', direction => $sort_direction, ($limit eq 'none' ? () : (limit =>...

continue reading ...

95. Merging your blogs

Movalog, Tutorials, 31 KB, 1233 words

UPDATE: Multiblog 1.1 has been released which fixes bugs with the GlobalListings. I have updated the tags in this tutorial to correspond to MultiBlog only.

Have you got two or more blogs that you would like to 'merge.' By merge I mean show all entries on one page, chronologically and inline - for a greater understand take a look at my blog. The front page shows entries from the main blog plus the sideblog - the sideblog entries are formatted differently, the little bars !

The plugins you will need are: * MultiBlog * GlobalListings

Multiblog does have the GlobalListings plugin built into it, but at the time of writing this tutorial that section of the plugin didn't work. So I am using...

continue reading ...

96. The New Themes - Making Sense of it all

Movalog, Tutorials, 33 KB, 1540 words

Tutorial cross posted on Learning Movable Type and Movalog.

With Movable Type 3.2, Six Apart launched a new markup and stylesheet structure that has also unified their three platforms. These new templates and stylesheets (from now on referred to as themes) have been called tag soup due to the sheer number of <div>s and indents.

What a mess - why did they do it?

The new themes can be quite intimidating the first time you come across them however Six Apart have created these new themes for several reasons: • First of all, Typepad, LiveJournal and Movable Type now share exactly the same markup. This means that a theme will work on any of these three platforms and designers can...

continue reading ...

97. Full Featured FCKeditor on Movable Type

alogblog, Plugins, 23 KB, 1763 words

This plugin enables you to use WYSIWYG editor easily and customzably in Movable Type. There are many available open WYSIWYG editors. I've used HTMLArea and FCKeditor. Both are very good, even though they give some loads to your PC. But as time goes by, this load could be trivial.

My alogblogMTinterface plugin uses many alternate templates. Therefore the users who use my alogblogMTinterface might have some troubles in personally adapting other WYSIWYG editors. Of course I also have the same trouble whenever new W~G editors or its MT plugins are released. So I decided to provide W~G in it independently.

One of the powerful features of FCKeditor is the Media...

continue reading ...

98. Sorting Categories Any Way You Please

MovableTweak, Tutorials, 28 KB, 1279 words

Strange adding a category called categories... but I digress.

Two Roads Diverged...

I've been working on a new blog in which I want to sort the categories in order other than alphabetical. Now, there is an quick and ugly solution, and there is a time-consuming and beautiful solution. First, we'll look at the ugly way of sorting your categories of the U.S. Presidents:

The Easy, Ugly Way

Create first category for Washington, only call it 01:Washington. Create second category for Adams... name it 02:Adams. So and so on through the U.S. Presidents. When Movable Type builds your page, it catches those initial numbers and puts them in order by number. A...

continue reading ...

99. Leadin Macro

Brad Choate, Tutorials, 50 KB, 1273 words

Lead-ins are an eye-catching mechanism usually found in print publications. Recreating that effect for the web is easy to do, but it could be easier. Wouldn't it be nice if there were a 'leadin' tag that you could use to identify the word or phrase you want to style like that? Well...

MT-Macro to the rescue! Actually, the technique described here utilizes 3 of my Movable Type plugins. All functioning...

continue reading ...

100. Blendy - Blog Entry Distributor

alogblog, Plugins, 19 KB, 1170 words

I would categorize a BLOG content into mainly two groups. One for Broadcasting my opinion, which can be one about a social, political, technical, or entertainmental stuffs, to the world. I want as many people as possible to listen my voice. And the other is wholly for LOGging my personal affairs. I don't care who would see it or not.

Then, what means do I have in order to broadcate my post? How can I provide more opportunity for the world to take something from my posts? It can be possible by using meta blog sites, various syndication feeds, trackback pings or so. Are you satisfied?

...

continue reading ...

Comments

You want to post some comment? Please use the announcement post on the Movable Type Weblog.

If you want to give some feedback concerning a specific query, please use the feedback button that is shown after a search has completed.

mgs | September 27th 2005