CCode and TCode for MT 3.3 version
I upgraded CCode and TCode to 3.3.01 according to new MT 3.3.1 version.
If you are new to this plugin, you'd better see the old entry.
Requirement
MT 3.3 version
Installation
Download this plugin (or this zip file) and untar it under mt home. ex) $ cd mt_home; $ tar xvfz CTCode-3.3.01.tar.gz Then all files will be located in proper sub-folders as below.- (mt home)/default_templates/obfuscator.js
- (mt home)/mt-static/plugins/alogblog/images/alogblog.ico
- (mt home)/php/plugins/alogblog/Obfuscator.php
- (mt home)/php/plugins/init.alogblog-TCode.php
- (mt home)/php/plugins/function.MTEntryCCode.php
- (mt home)/plugins/alogblog/CCode.pl
- (mt home)/plugins/alogblog/TCode.pl
- (mt home)/plugins/alogblog/lib/alogblog/Obfuscator.pm
- (mt home)/plugins/alogblog/lib/alogblog/CTCode/L10N.pm
- (mt home)plugins/alogblog/lib/alogblog/CTCode/L10N/ko.pm
- (mt home)plugins/alogblog/lib/alogblog/CTCode/L10N/ja.pm
The page which has a comment form or trackback URL MUST have the Javascript contents of default_templates/obfuscator.js file.
For example, if you publish Individual Entry Archive and it has a comment form, then you have to embed the contents of obfuscator.js into the <script> section of <head> part of indiv. template itself. If you already have a script link like <script type="text/javascript" src="my-scritp.js"></script> in indiv. template, just embed the contents of obfuscator.js into my-script.js file. The latter method is better.
* TCode can treat the category trackback, so if you use it, you also have to embed obfuscator.js in MT menu page. Simple method is to embed the contents of obfuscator.js into (mt home)/mt-static/mt.js file's bottom part.
Tag Usages
1. CCode
Insert <$MTEntryCCode$> tag within the comment <form> tag of Individual Entry Archive template and Comment Preview template. Proper inserting position may be as below.
<input type="hidden" name="entry_id" value="<$MTEntryID$>" />
<$MTEntryCCode$>
And then rebuild individual entry archives.
2. TCode
MT's default template tags, <MTEntryTrackbackID>, <MTEntryTrackbackLink>, <MTEntryTrackbackData>, are used. So you don't have to edit templates. Just rebuild individual entry archive if you are not using Dynamic Publishing.
Post a comment