Movable Type

In MovableType, I have always found it annoying to have two clicks to get to the trackbacks, but the comments were available from the first page after login.

Therefore this hack. I wanted to add a 'trackback' link to the homepage.

To do this, in your installation, find the directory movabletype/tmpl/cms

Look for the file list_blog.tmpl

Back this up - if in the command line, type

cp list_blog.tmpl list_blog_backup.tmpl

Then in the file; find the line which reads:

<TMPL_IF NAME=CAN_EDIT_ENTRIES>
<li><img alt="<MT_TRANS phrase="Comments">" src="<TMPL_VAR NAME=STATIC_URI>images/mininav-comments.gif" width="9" height="11" border="0" /><a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=list_comments&blog_id=<TMPL_VAR NAME=ID>"><MT_TRANS phrase="Comments"></a></li>
</TMPL_IF>

After this, add the line:

<TMPL_IF NAME=CAN_EDIT_ENTRIES>
<li><img alt="<MT_TRANS phrase="Trackbacks">" src="<TMPL_VAR NAME=STATIC_URI>images/mininav-trackbacks.gif" width="9" height="11" border="0" /><a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=list_pings&blog_id=<TMPL_VAR NAME=ID>"><MT_TRANS phrase="Trackbacks"></a></li>
</TMPL_IF>

Save the file.

Note that mininav-trackbacks.gif does not exist, so you can either use nav-trackbacks.gif by editing the above, or copying the graphic shown here into movabletype/images. Or you could just remove the 'img' tag!

Remember, if it all goes pear shaped, you can restore your backup by:

cp list_blog_backup.tmpl list_blog.tmpl

Of course, this may have to be redone when MT3.2 is released! Oh, by the way, if sixapart want to use that icon, then please go ahead!

I have also modified it to add a WYSIWYG button and a reset activity log link, I mention these so that I only have to look in one place if I ever need to re-do the mods.

My reset activity log link is a little different to the tip on 'the girlie matters' as I am using an icon (feel free to copy, do not link to mine):

<div class="icon"><a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=reset_log&magic_token=<TMPL_VAR NAME=MAGIC_TOKEN>"><img alt="" src="<TMPL_ VAR NAME=STATIC_URI>images/frontnav-activity-log-delete.gif" width="19" height="25" border="0" /></a></div>
<div class="label"><a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=reset_log&magic_token=<TMPL_VAR NAME=MAGIC_TOKEN>"><MT_TRANS phrase="Reset Activity Log"></a><br />
<MT_TRANS phrase="System activity, logins"> - <MT_TRANS phrase="Reset Activity Log"></div>