Let's say I have a plugin called MTMyPlgin. This plugin accepts a few attributes and can be used only in the 'entry' context. I would like to be able to use it...
... The MT tag parser doesn't understand nested tags. It sees the > at the end of the EntryTitle tag, thinks it's closing the MyPlugin tag, and then chokes...
Hi to all ... Please help me ... please , give me the address of the chatrooms (in yahoo or...) Or Forums , where poeople discuss blogs and weblogs ...! ( not...
Amir Azemati
amir@...
Aug 3, 2003 3:57 pm
204
I wrote a plugin that needs to rebuild another blog. I am using this code: my $mt = MT->new; $mt->rebuild(BlogID => $otherBlogId); It is possible for the other...
I've been giving some thought to better plugin configuration also, but I was thinking of something much simpler then what you propose. I of course was only...
... Well, thank you for your advice. Although a little bit of details about the reasons why this is (always?) such a really bad idea would have helped me...
... As long as you /guaranteed/ that you'd never trigger a rebuild of the blog itself then you *might* be able to make it work. Otherwise you'll end up in an...
... Yes I see it (btw, this is why I posted this question with a similar scenario in the first place.) In the context of your example, what I was asking for is...
Claude... It's still not clear to me what you are trying to do from a functional level as opposed to a programatic one. Why would you need to trigger a rebuild...
(Reposting - got an unexpected error from yahoogroups's form and the first post still did not show up...) ... Ok, you asked, so here I go ;) I am creating a...
I am quite new to perl and MT. Looking at the source of plugins to understand how to do certain things, I see this piece of code over and over again: local...
... local applies to "$ctx->{__stash}{entry}". local means that any changes made to that value will be reverted when we exit the block. I think it's called...
I'll add to Felix's answer. $ctx->{__stash}{$entry} is directly accessing a hash while $ctx->stash('entry') is a method call and interface to the data stored...
... Yeah, but the problem with that is the value doesn't get restored if the processing throws an error with 'die'. You have to do something like this: { my...
Hi Dear, At the moment; Excuse me for my bad english . I have a question (or a request :) In this addresse "markpasc" write a help for make quick links weblog...
Is there any way to get information about the current template that is being built? I want to create a plugin or tag that lets me access the current templates...
... MTEntries ... There isn't a direct way -- that wouldn't be easy to implement. However I think you can achieve such an effect. Without knowing the internals...
... Even if you do this, the real problem is that a global attribute is applied only after the container tag has been built. In this case, the entire block of...
... Good point, Tim. ... That is precisely what I decided to do. The file can be controlled via a module if the user would like that and a file has other nice...
Jay, I can reply to a couple of your specific points separately, but first I'd like to suggest a completely different approach. There's a way a plugin might be...
... This is a great idea. I hadn't really thought of it, although way back when, this is how I got MT-search to work without hacking MT. I think you are...
... So, I am well along in the plugin development. So far (with your help Kevin), my plugin blocks posting of comments AND trackbacks containing items on the...
... Hash: SHA1 Jay, ... Heh. :) A bit of background: All of the database-backed objects (MT::Comments, MT::TBPing, etc) inherit from MT::Object. An MT::Object...
Thanks Ben, It helped very much. It WOULD have helped more had I read BEFORE I successfully identified and overrode load and load_iter under the right context...
... traces ... I just realized that if I back them out and go for the easier route, people who use Adam Kalsey's SimpleComments plugin (like me!) will be left...
Jay, one small thing that you may have already taken care of in MT-Blacklist: Perl throws a warning when you redefine a subroutine. MT itself won't display...