Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#106 2009-03-06 09:13:13
Re: ied_plugin_composer - new plugins never came that easy
azw wrote:
If I have the glz_custom_fields plugin by Gerhard Lazu activated, it sometimes adds its JavaScript and CSS to another plugin if I use the link at the bottom of the page to save the plugin as a php file:
Oooh, yeah, that’s nasty. I guess if your plugin uses </head> anywhere in its code then glz_custom_fields will inject its stuff. Perhaps Gerhard is indiscriminate about on which pages the JS/CSS is applied?
The solution is simple: make glz_custom_fields not active
Cool. A few other possible solutions (untested):
- make the ied_plugin_composer a higher priority than glz_custom_fields
- install the plugin composer before installing glz_custom_fields so it is run before Gerhard’s plugin
- use the plugin cache dir for your own plugin (and/or ied_plugin_composer) so it is always loaded before any database-installed plugins
I’m not sure if any of those will work but my (loose) understanding is that the cache dir is read first and then all other plugins are loaded in the order they were installed, unless overridden with the load order. It may be alphabetical now though (in which case glz_custom_fields still comes before ied_plugin_composer!) I’m not sure.
Thanks for the report.
Last edited by Bloke (2009-03-06 09:17:33)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#107 2009-03-06 09:47:54
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: ied_plugin_composer - new plugins never came that easy
Yep, you guessed right. His code is added right before </head>. Good point.
I think you’re also right that Gerhard adds his JS and CSS to every page. That may not be necessary, so I’ll drop let him know about the conflict.
Unfortunately, 1 and 2 didn’t work.
I doubt that 3 will work, either, since the damage is done when the php file is saved in Composer, before it even gets into the plugin_cache_dir. On my system, its first saved in a temp folder.
Thanks for the quick response!
Offline
#108 2009-03-06 11:17:12
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: ied_plugin_composer - new plugins never came that easy
azw wrote:
I think you’re also right that Gerhard adds his JS and CSS to every page.
Yes, it does :(
Offline
#109 2009-03-08 08:05:36
Offline
#110 2009-03-08 08:29:40
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: ied_plugin_composer - new plugins never came that easy
That’s good news, Gerhard! I’m also glad to hear that the next version is coming along. Thanks!
Offline
#111 2009-04-11 19:39:35
Re: ied_plugin_composer - new plugins never came that easy
Another minor update. v0.83 alters the CSS block output delimiters.
Instead of using <!-- --- BEGIN PLUGIN CSS --- --> it uses <!-- *** BEGIN PLUGIN CSS *** --> when Textiled. The reason is due to a pretty obscure parsing problem that rears its head because the validator sees the first set of --- and thinks the first two dashes are the end of the HTML comment. It then gets very confused and the end result is an invalid page. Hopefully switching to asterisks will keep the validator happy; or at least happier! My pages still complain that the <style> block cannot appear where it does, but that might be some other unrelated problem with my pages. Please report if you have any weirdness with this version after you’ve saved your plugins with it to convert the help files to the new delimiter.
A couple of other minor internal tweaks round off the update.
The next major version is 0.9, which is available for testing if anyone wants it. It requires the latest SVN (approaching TXP 4.0.9) because it supports the new lifecycle management system and larger codespace column. Anyone wanting to try it out, get in touch.
Last edited by Bloke (2009-04-11 19:40:19)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#112 2009-08-20 16:28:10
Re: ied_plugin_composer - new plugins never came that easy
Downloaded and installed 0.83 from here because I have to compile a version of ign_password_protect.
I installed the plugin (using file upload) and it seemed ok, but now I see Restricted Area in my admin – what gives??!
Offline
#113 2009-08-20 16:37:57
Re: ied_plugin_composer - new plugins never came that easy
jstubbs wrote:
but now I see Restricted Area in my admin – what gives??!
After you installed ied_plugin_composer or after you created the ign_password_protect plugin from the composer’s interface? If the former, I assume you are using a Publisher account? If not you’ll see a Restricted Area under Extensions -> Plugin Composer.
EDIT: If the latter then it’s down to igner’s code or the way you uploaded it. Are you editing the existing ign_pw plugin or trying to upload a new one? You need to use the composer’s Upload plugin from PHP file: browser (I assume this is what you mean you’ve done!)
If you list the plugins again from the composer’s tab, do you see ign_pw_protect in the list?
Last edited by Bloke (2009-08-20 16:43:36)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#114 2009-08-20 16:45:41
Re: ied_plugin_composer - new plugins never came that easy
Funny – logged out of Safari and now after opening again I am able to get in. I am using a test version of ign_pw on Jeremy’s GitHub account.
Seems ok now, only thing is the plugin help is screwed up from Plugins > ign_pw, but looks ok from Extensions > ied_ > ign_pw help.
Offline
#115 2009-08-20 16:46:34
Re: ied_plugin_composer - new plugins never came that easy
Yes, I used :Upload plugin from PHP file:”.
Offline
#116 2009-08-20 16:49:19
Re: ied_plugin_composer - new plugins never came that easy
jstubbs wrote:
only thing is the plugin help is screwed up from Plugins > ign_pw, but looks ok from Extensions > ied_ > ign_pw help.
Yes it will. The help in the Plugin Template that you downloaded is raw Textile. The Admin->plugins tab won’t compile it to HTML as it assumes the plugin help is already HTML. The composer doesn’t assume this so it renders both types correctly.
Glad you got it working. Odd behaviour, though.
Last edited by Bloke (2009-08-20 16:49:57)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#117 2009-08-20 17:00:32
Re: ied_plugin_composer - new plugins never came that easy
Is there a way to change the help from the plugins tab – I only installed ied_ to compile Jeremy’s version for testing and will remove it later.
Offline
#118 2009-08-20 17:31:09
Re: ied_plugin_composer - new plugins never came that easy
jstubbs wrote:
Is there a way to change the help from the plugins tab
No but you can do this to convert it to a “proper” (non-template) plugin:
- Click the plugin’s name in the Composer to Edit it
- Scroll to the bottom of the page
- Export as either a standard or compressed plugin then install the plugin as normal using the .txt file in the Admin->Plugins tab OR copy ‘n’ paste the plugin text from the Composer’s ‘distribution’ box and paste it into the Admin->Plugins tab
The plugin help will be compiled to HTML in the process.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#119 2009-08-29 17:22:28
Re: ied_plugin_composer - new plugins never came that easy
v0.9 is released. This one requires TXP 4.2.0+.
Features:
- Support for writing plugins with the new plugin prefs and plugin lifecycle events
- Plugins up to 16Mb may be created
- Latest official plugin template is generated / read
- Backwards-compatible bug fix for pre-v0.83 style blocks
Anyone who used the beta 0.9, please upgrade to this official version as there have been a few changes since then.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#120 2009-12-15 15:35:38
Re: ied_plugin_composer - new plugins never came that easy
Stef, I just uploaded a site I made locally to a Windows server (gasp).
Diagnostics shows “Clean URLs are only supported by Apache, use at your own risk. ?”, but I can live with messy URLs for this job.
Everything else seems OK, except for a bit of strange behaviour from ied_plugin_composer.
I’m running most of my plugins from the filesystem, and as you’d expect, they’re listed there under Plugins that run from plugin_cache_dir: in the ied_plugin_composer tab. But none of them seem to be active. The only extensions tab I have is for ied_plugin_composer, and in Testing mode the front ends shows a heap of Textpattern Warning: tag does not exist errors.
Weird, no? I’m blaming Windows, and even if it turns out to be user error on my part I still reserve the right to blame Windows.
Offline