Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2025-09-24 05:32:20

vistopher
Plugin Author
Registered: 2025-09-15
Posts: 13
Website GitHub

Plugin Packer (Base64GZ)

The few that I tried were broken. Only thing working for me was through a CLI, which I hate. This is a very simple packer, not a full composer suite or anything like that. You write up your plugin.php in the Textpattern template style, then paste to get your code packed so it is copy-pastable in either B64 or B64GZ. Created primarily for my own usage but also happy to share. This basically does the exact same thing as the CLI code. Some security in place to prevent abuse (2mb cap, cannot execute code). Tested on 4.8.8.

Github here:
https://github.com/thyelite/Base64GZ-Plugin-Encoder-Packer-for-Textpattern/

Last edited by vistopher (2025-09-24 05:34:46)

Offline

#2 2025-09-24 05:57:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,986
Website GitHub

Re: Plugin Packer (Base64GZ)

Great stuff for those people on 4.8.8. Fills a void left behind by the lack of ied_plugin_composer.

From 4.9.0, plugins can be compiled natively from the Plugins panel (although I think it only creates .zip files, not .txt like yours).


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2025-09-24 07:54:36

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,031
Website GitHub

Re: Plugin Packer (Base64GZ)

vistopher wrote #340640:

Created primarily for my own usage but also happy to share.

Great to see some new faces making plugins. Thanks for contributing.

Bloke wrote #340641:

From 4.9.0, plugins can be compiled natively from the Plugins panel (although I think it only creates .zip files, not .txt like yours).

4.9 can export to zip or compile to a txt plugin file natively :-)


TXP Builders – finely-crafted code, design and txp

Offline

#4 2025-09-24 08:20:22

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,031
Website GitHub

Re: Plugin Packer (Base64GZ)

One more thing: it’s not very common, but plugins can also include a data block, for example for including an external library in a plugin (see, for example jcr_email_enkode. As far as I can tell, your plugin doesn’t (yet) support that. See this post and ais_txpplugin_packager for more details.


TXP Builders – finely-crafted code, design and txp

Offline

#5 2025-09-24 08:29:49

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,986
Website GitHub

Re: Plugin Packer (Base64GZ)

jakob wrote #340642:

4.9 can export to zip or compile to a txt plugin file natively :-)

You’d think I’d remember that, since I coded it 🙄


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2025-09-24 15:44:44

vistopher
Plugin Author
Registered: 2025-09-15
Posts: 13
Website GitHub

Re: Plugin Packer (Base64GZ)

jakob wrote #340643:

One more thing: it’s not very common, but plugins can also include a data block, for example for including an external library in a plugin (see, for example jcr_email_enkode. As far as I can tell, your plugin doesn’t (yet) support that. See this post and ais_txpplugin_packager for more details.

Thanks for letting me know. Just added support for data blocks. Looking forward to the eventual release of 4.9.0, as I am reluctant to test beta releases on my (home)server. Good to know that this functionality has been incorporated!

I’m also fine-tuning one more plugin, which automatically converts images upon upload to webp & generates multiple sizes of images (based on user settings) for responsive use with a simple txp tag in articles.

Last edited by vistopher (2025-09-24 15:50:22)

Offline

Board footer

Powered by FluxBB