Textpattern Forum

You are not logged in. Register | Login | Help

#11 2006-03-17 06:06:09

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 700

Re: ied_plugin_composer - new plugins never came that easy

This is a great idea. I installed it and had good luck with everything but the browse to upload button. I posted the results in pastebin at <a href=“http://pastebin.com/606919”>Link</a>.
Something along these lines for exporting the current theme from a site to a portable plugin from which it could be installed into another site would also fill a gap.

Offline

#12 2006-03-17 06:21:25

Inspired
Plugin Author
From: Kiev, Ukraine
Registered: 2005-01-28
Posts: 87
Website

Re: ied_plugin_composer - new plugins never came that easy

Thank you for the feedback, rsilletti, I will have to look into what could happen with the upload function. Somehow it works well for me when I test it.
You should also note that you cannot upload anything, only php files formatted the composer’s way (as of 0.3 regular php files can be uploaded as well) – what it exports should also be imported fine.

(sorry, I didn’t quite get the idea of the second line of yours) ah, now i understand that you are talking about themes, well, yeah that’s a good idea too, perhaps for another good plugin.

The php file to import must may have this format:

<code>
<?php
plugin php code
/*
—- PLUGIN METADATA —-
Name: txp_pugin_name
Version: 0.1
Type: 1
Description: this plugin does a lot of things
Author: Joe Smith
Link: http://example.com
—- BEGIN PLUGIN HELP —-
<p>plugin help</p>
—- END PLUGIN HELP & METADATA —-
</code><code>*</code><code>/
?>
</code>

Last edited by Inspired (2006-04-30 21:13:49)


Plugin Composer — admin plugin to write your own plugins

Offline

#13 2006-04-10 01:22:51

Inspired
Plugin Author
From: Kiev, Ukraine
Registered: 2005-01-28
Posts: 87
Website

Re: ied_plugin_composer - new plugins never came that easy

To the joy of plugin developers ied_plugin_composer now supports plugin_cache_dir!
It will now list files in that dir and let you publish your plugins right from there (just use the template I posted above).

Happy coding!


Plugin Composer — admin plugin to write your own plugins

Offline

#14 2006-04-29 21:34:35

Inspired
Plugin Author
From: Kiev, Ukraine
Registered: 2005-01-28
Posts: 87
Website

Re: ied_plugin_composer - new plugins never came that easy

0.4 is out

The name of the plugin, the last non-editable field, is now editable too. “Delete” button you saw on plugins page is back for ease of deleting your quick experiments.
What’s more there’s now interface for editing plugins in your plugin_cache_dir and their metadata.


Plugin Composer — admin plugin to write your own plugins

Offline

#15 2006-04-30 09:41:47

Skubidu
Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: ied_plugin_composer - new plugins never came that easy

Hi Inspired!

I haven’t tested this new version (I will soon!) but I have a feature request: I often copy and paste my code from an application with syntax highlighting. Therefore I normaly need to wrap my code with <? ... ?> or <?php ... ?>. Would it be possible to strip these tags, if I save my plugin?

Thank you again for this plugin. It saves me so much time…
Nils

Offline

#16 2006-04-30 20:16:34

Inspired
Plugin Author
From: Kiev, Ukraine
Registered: 2005-01-28
Posts: 87
Website

Re: ied_plugin_composer - new plugins never came that easy

Hi, Skubidu, does plugin upload from php file work for you?
Also, could you elaborate more on why exactly you do the copy/pasting, because the plugin is being designed to make copy/pasting unnecessary (you can publish the plugins in files in plugin_cache_dir with one click, as well as you can upload the plugin code from file in which case first and last lines will be stripped) (emm, or is copy/pasting convenient).

Yura


Plugin Composer — admin plugin to write your own plugins

Offline

#17 2006-04-30 20:46:17

Skubidu
Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: ied_plugin_composer - new plugins never came that easy

Hi Yura!

Forget my request! You’re right – I don’t need to paste anything.
I must have been stupid! I misunderstood your upload features. Sometimes it’s to easy to believe.

Thanks for listening and forget my request…

Nils :o)

Offline

#18 2006-04-30 22:23:44

marios
Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: ied_plugin_composer - new plugins never came that easy

Inspired, wonderfull, I think that this should be voted for as the most usefull plugin of the year.

I have been using it a lot to learn some silly basic php, and to get some insight in Dean’s superb coding architecture.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#19 2006-05-07 14:32:49

net-carver
Member
From: UK
Registered: 2006-03-08
Posts: 1,648

Re: ied_plugin_composer - new plugins never came that easy

Hello Yura,

thanks for all your work on this plugin. Just wondering if you had thought about adding any textile support to the help authoring?—TinyMCE looks sweet but not everyone is using it and the default plugin compile/upload/install/check help cycle is quite time consuming at present.

I was thinking that your plugin could lighten this up for plugin devs using textile for the help format. Because your plugin is already installed in TXP and has the textile object at hand, could it add some metadata about the help section format and then have your edit page handle running it through textile to generate a ‘help preview’ or something that would cut out the upload/install/view cycle.

Regardless of the response, thanks for your work.


Steve
Textile | My plugins on GitHub | @netcarver

Offline

#20 2006-05-08 17:42:11

Inspired
Plugin Author
From: Kiev, Ukraine
Registered: 2005-01-28
Posts: 87
Website

Re: ied_plugin_composer - new plugins never came that easy

Oh, hey! Actually it was Tranquillo who emailed me the idea and contributed the code for TinyMCE support even before i thought about formatting for the help area so i just went with it. Perhaps using textile would be more obvious othervice :) and i will probably have to look into this option.


Plugin Composer — admin plugin to write your own plugins

Offline

Board footer

Powered by FluxBB