Jay, How many config keys are in your @config_keys array? My guess is: about 8 or 9. It doesn't look like your code here is doing any caching either. The ...
... I don't remember at this point, but for MT-Blacklist 2.0, I currently have 24 (8 strings, 2 integers, 8 booleans and 6 array refs). I will most likely...
... MT::Request is a singleton class (i.e. it's only ever created once per execution). You can access this global instance with the instance method: my $r =...
... Hash: SHA1 ... 'config_data' is just an arbitrary label? It's a free-for-all stash? Are there namespace conflicts with anything else in the program (e.g. ...
... Hash: SHA1 ... Yes, yes, no, and I don't know. :) - -- David Raynes <rayners@...> I am just a figment of my own imagination. http://www.rayners.org...
... Hash: SHA1 ... Ahhh! See that's what was confusing me... The initial instance need not stay in scope. For instance, the following prints "Jay": ...
... Hash: SHA1 ... Exactly. The global instance is stored as a variable in the MT::Request class, not in the scope in which it was requested. Glad I could...
... Hash: SHA1 ... Ezra, can you give us a rundown of what IS being cached in MT 3.0D? MT-Blacklist v1.x cached anything it might have to use twice (config, ...
There seems to be no way to distinguish between Published and Draft entries via the XML- RPC interfaces. It seems that mt.getRecentPosts returns all the recent...
... Hash: SHA1 ... According to my quick skim of the code (searching for the status method mostly), I did not see any methods that will return an entry's...
... It would be fine - except that (as a skim of the code will show you) the code base actually has scope for *four* statuses - not just the regular two. The...
Hi guys, Can someone be kind enough to share a bare skeleton code that can be used to power a config part for a plugin? Nothing fancy, just the ability to use...
I've updated my code that uses $ctx->{__stash}->{entries} with the delay code sent earlier. Is there any way to make sure it's working? Or is it safe to...
http://www.movabletype.org/docs/mtapi_mt_plugindata.html shows how I can insert and retrieve arbitary plugin data. But how do I update an already existing...
I think one problem might be that you're uncondtionally declaring a new plugindata object about halfway through. If you've loaded one, you don't need to...
... Hash: SHA1 Hey all, Does anyone have any idea how one might go about setting up Internationalization for plugins? I've been playing around with it and so...
I'd be interested too. I've set up my template(s) with MT_TRANS tags, though that might not be the best way about it... or I might not have done it in the...
... Hash: SHA1 I've been playing around with it (in case no one came up with an answer) and have since found that even subclassing MT (or stealing the language...
... I may be missing something, but can you not simply add phrases to the Lexicon hash(es) from your plugin code at load time? It wouldn't be as clean as...
... Hash: SHA1 God, I hate when I send an email and it's completely unclear... What I would like to be able to do is have MT accept a plugin's lexicon as...
... Hash: SHA1 Interesting idea, except that I think that the phrases are not held in memory but instead loaded by Maketext at build time. From MT.pm: { my...
... Hash: SHA1 Okay, so the hackish version of making this work is as follows: Subclass MT:App and use that as your plugin application. Copy (from MT.pm) the...
I am having trouble understanding how callbacks works.. In my case I have a plugin function that needs to be called in the context of the App/Comment.pm...
We've already talked about callbacks, and that the callback you're executing isn't going to affect the rest of the code following the callback (at this point)....
... Hash: SHA1 ... Not to toot my own horn, but it sounds to me like you could use the alternate comment script that I have been developing over the last week:...
... Hash: SHA1 ... It returns control to the post method in rayners::ExtendedComments (replacement for the post method in MT::App::Comments). If an undefined ...
That could still be a potential problem for me. I guess the issue is not with your plugin design but the way the original App::Comment is coded. What if I set...
... Hash: SHA1 ... Well, if you set your callback priority to be larger than 4, it will execute after all of the original MT code, and that would still be...