CCode and TCode MT4.1

| | Comments (0) |

One confusing part of upgrading to MT4 is all that all the new templates and my old templates end up all mixed together. I created a "Temp41" blog from scratch just to have a reference set of code to help sort out the mess.

I missed that the javascript template is now "mt.js" instead of "mt-site.js" and that both were still being generated. Since this is where I store the CCode/TCode javascript (anti-spam), it was important to retire mt-site.js and get the obfuscator function into mt.js.

CCode and TCode works in before saving spam feedbacks to MT system. CCode/TCode makes it very difficult for spam-bots to guess tb URL and the required ct input fields. Target ct/tb URLs to send spams are calcuated from unrevealed entry/trackback data and obfuscated by Javascript.

Steps to install CCode/TCode in MT4 (vs. MT3.)

  1. Download MT4 version.
  2. Remove old plug-in code and add new plug-in code in MT system.
  3. Place obfuscator.js code into: mt.js template:
    mt41:default_templates:javascript.mtml
  4. Refresh mt.js in each blog to bring it in.
  5. Install the tag into the Comments Form template. This is an improvement because the new sub-template approach means only updating one sub-template vs. multiple templates under MT3. Put it under this line:
    <input type="hidden" name="entry_id" value="<$MTEntryID$>" />
    <$MTEntryCCode$>
  6. Republish individual archives.

Leave a comment

About this Entry

This page contains a single entry by Jeb published on June 20, 2008 10:55 PM.

SMTP Inbound on Domino was the previous entry in this blog.

Jonas Brothers Stuck in the iMac 20 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.31-en

Good Reads

Flickr Badge

www.flickr.com
This is a Flickr badge showing items in a set called Wallet. Make your own badge here.