« TypePad Hacks Now Has A Squidoo Lens | Main | Can You Spot the New Hack I Implemented Here Today? »

John T. Unger

Turning Off Comments Site-Wide with Advanced Templates

John T. Unger April 17, 2006

I asked Craig McGinty to write a quick tutorial on his method for turning off comments site-wide without losing existing comments in the process. Here's his reply (with some edits for style). Thanks, Craig!

The problem of comment spam came up in a post from Neville Hobson, whose archived Typepad site was being hit by spammers.

Bud Parr devised a method that works for TypePad blogs that do not use advanced templates (Basic or Plus accounts). It involves exporting posts, changing the code in any text editor using search and replace, then reimporting the posts to TypePad. My own version requires you to have a Pro account in order to cut the comment form element from the entry-individual template. This retains existing comments while preventing spam software from automatically posting junk comments.

Before you start changing any templates please be sure you have a back-up copy. This method requires few changes so things should run smoothly. Tips on safely working with advanced templates can be found here.

  1. Go to the Design tab for the blog you wish to edit.
  2. Near the bottom of the page, locate and click "Create new template module." Give your new template a name of entry-individual by typing it in the "Template Name" field. (If you already have a template module called "entry-individual," just edit it and skip to step 3.)

    Navigate to this page in TypePad's Knowledge Base (preferably in a new tab or browser window) and copy the entry-individual template module code.

    Return to your new TypePad module, and paste the code you just copied into the Template Body field.

  3. Scroll down until you see the following line of code:
    <$MTWeblogIncludeModule module="comment-form"$>
    (it should be near the very bottom).
  4. Deleting this line of code will ensure the form for leaving comments is no longer displayed. Existing comments will remain.
  5. Click save and republish your site.

Here is an example of how a page looks, with an existing comment still displayed.

Tags: , , , , , , , , , ,

More Like This: Advanced Templates , Hacks for Comments

Comments

The comments to this entry are closed.

TrackBack

TrackBack URL for this entry:
https://www.typepad.com/services/trackback/6a00d8341c4fdf53ef00d8352a969853ef

Listed below are links to weblogs that reference Turning Off Comments Site-Wide with Advanced Templates:

typepad hacks is a typepad featured weblog typepad hacks is listed on Alltop social media

Subscribe

Email RSS Comments  
Subscribe to TypePad Hacks with email Read TypePad Hacks posts via RSS Join the conversation at TypePad Hacks via RSS (comments feed) subscriber count

Search

Socialize

Twitter Logo
    follow typepadhacks on twitter

    Read and reply to the 100 most recent comments at the TypePad Hacks Community Page


    Grazr

    Colophon

    Powered by TypePad
    Member since 03/2005

    TypePad Status

    Creative Commons License