Improved plugin template for Textpattern:
http://vigilant.tv/documents/tp/zem_tpl.php.txt
Features:
Since the code is now inline, rather than an escaped string, it will be displayed correctly by syntax-highlighting editors.
Use it as you would the old template: copy the file to abc_myplugin.php, edit the appropriate sections, and run it at the command line or load it in a browser to compile.
Instructions are in the file. Author name, URL and plugin version are set as per the old template. Help text and code are placed between ”—- BEGIN” and ”—- END” tags. Textile will automatically be used to process the help text if classTextile.php is found in the PHP include path.
30 August 2004, 16:47 by zem ·
Commenting is closed for this article.
Alex is a software developer from Melbourne, Australia. Threshold State is his consulting business.
“Labor is committed to introducing mandatory ISP filtering.” – Stephen Conroy, the new Communications Minister.
An excellent, minimal text editor for Windows.
All *.wordpress.com blogs have been blocked in Turkey – apparently because of one person, Turkish creationist Adnan Oktar.
The Opera browser team measured the percentage of people who use certain features. Several popular feature requests turned out to be unused, or almost so.
— ramanan Sep 1, 09:48 am #
— Dean Allen Sep 26, 08:42 pm #
I haven’t updated it yet because there are still plenty of people using older releases. Though I haven’t been watching closely, I don’t think the new format is in wide use yet.
— zem Oct 4, 07:10 am #
Has this yet been updated for the new format as Dean mentioned?
— Eric Nov 20, 07:51 pm #
And in other news, is this alternate format why I have not been able to cut and paste plugin code into the text box as of RC1? It always gives me an “Unrecognized format” error.
— Mark (Remillard) Dec 1, 12:24 am #
You can install old style plugins in RC1 by copying and pasting the base64 encoded text within the quotes, e.g.
$plugin='thisbitistheplugin';— Alex Dec 22, 04:05 am #
— andrew Mar 14, 06:58 am #
.txt.file extension.The reason I ask is because I’ve noticed that if you use this template and try to download the plugin in Firefox/Mac that it just returns a “blank” page (I say “blank” because if you view source you can grab the plugin text but for the common user it just appears like a dead link).
Are you using some mime type jiggery-pokery or rewriting – or have you just gone to saving the output as a text file?
— andrew Apr 1, 03:11 pm #
— Vexeffexx Oct 12, 05:09 am #