CCode and TCode for MT 4.0
If you are new to this plugin, you'd better see the old entry.
Before installing this new 4.0 version, please delete previous version files.
Requirement
MT 4.0 version
Installation
Download this plugin and untar it under mt home. ex) $ cd mt_home; $ tar xvfz CTCode-4.0.00.tar.gz
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.
License
Relased under the Creative Commons License.
Version History
- 4.0.00: Upgraded according to MT 4.0 version.
- 3.3.01 : Upgraded according to MT 3.3 version.
- 3.2.03 : Missing <$MTCategoryTrackbackLink$> tag added. Thanks id.tiiop for notifying me
- 3.2.02 : nocode="1", "2" attributes are added in ID/Link. Thanks dusl for this option.
- 3.2.01 : for MT 3.2, PHP plugin added.
- 1.0 : for MT3.17
Post a comment