{"id":488,"date":"2008-06-20T22:55:38","date_gmt":"2008-06-20T22:55:38","guid":{"rendered":"http:\/\/fiveforks.com\/jeb\/2008\/06\/ccode_and_tcode_mt41\/"},"modified":"2011-12-28T00:41:03","modified_gmt":"2011-12-28T05:41:03","slug":"ccode_and_tcode_mt41","status":"publish","type":"post","link":"https:\/\/www.fiveforks.com\/jeb\/2008\/06\/ccode_and_tcode_mt41\/","title":{"rendered":"CCode and TCode MT4.1"},"content":{"rendered":"<p>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 &#8220;Temp41&#8221; blog from scratch just to have a reference set of code to help sort out the mess.<\/p>\n<p>I missed that the javascript template is now &#8220;mt.js&#8221; instead of &#8220;mt-site.js&#8221; 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.<\/p>\n<blockquote><p>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.<\/p><\/blockquote>\n<p>Steps to install CCode\/TCode in MT4 (<a title=\"CCode and TCode\" href=\"http:\/\/fiveforks.com\/jeb\/2005\/09\/ccode_and_tcode\/\">vs. MT3<\/a>.)<\/p>\n<ol>\n<li><a href=\"http:\/\/alogblog.com\/movabletype\/plugins\/ccode_and_tcode_for_mt_40\/\">Download MT4 version<\/a>.<\/li>\n<li>Remove old plug-in code and add new plug-in code in MT system.<\/li>\n<li>Place obfuscator.js code into: mt.js template:<br \/>\nmt41:default_templates:javascript.mtml<\/li>\n<li>Refresh mt.js in each blog to bring it in.<\/li>\n<li>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:&lt;input type=&#8221;hidden&#8221; name=&#8221;entry_id&#8221; value=&#8221;&#8221; \/&gt;<\/li>\n<li>Republish individual archives.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;Temp41&#8221; blog from scratch just to have a reference set of code to help &hellip; <a href=\"https:\/\/www.fiveforks.com\/jeb\/2008\/06\/ccode_and_tcode_mt41\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-488","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/posts\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/comments?post=488"}],"version-history":[{"count":2,"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":636,"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/posts\/488\/revisions\/636"}],"wp:attachment":[{"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/media?parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/categories?post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fiveforks.com\/jeb\/wp-json\/wp\/v2\/tags?post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}