tips and tricks for movable type

add shortcut to reset activity log
May 07, 2005

In a previous mini-tip, I noted the URL to reset your Activity Log. With the introduction of magic tokens in Movable Type 3.16, that method isn't going to work now.

Being that I'm lazy about resetting my own Activity Log, and that I'm often too impatient to wait for the log page to load all the way so I can get to the normal reset option at the very bottom, I just hacked a shortcut into the Main Menu of my Movable Type installation.

The file to modify is tmpl/cms/list_blog.tmpl. Look for the section of code that starts with this (at about line 45):

<TMPL_IF NAME=CAN_VIEW_LOG>

and then right after this line:

<br style="clear: left;" />

add the following:

<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></div>
<br style="clear: left;" />

(Line breaks added for display purposes are indicated by »; these breaks should be removed from the code!)

Save the file and upload it back to the server in ASCII mode.

Log into Movable Type and you should now see the link in the Shortcuts:

resetlog.gif

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 1
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/217)

» Movable Type
Excerpt: 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...
Weblog: Murky.org
Tracked: 08.22.05 05:21 AM