Page 1 of 1

mixed event/plugin plugin question

Posted: Sat Aug 12, 2006 6:00 pm
by AzRAeL
I now try to do an ajax-chat plugin - i found usable code in the liveseach plugin which also uses the "external_plugin" event hook, which i think i need for this. however, i wanted to display the chat application as a sidebar item, which runs me into problems.

Afaik a sidebar plugin cannot use event_hooks and only sidebar_plugins can output HTML to the sidebar. Am i right?

Now my question:

- Do i have to make 2 plugins?
- if so, is it possible to deploy both plugins in 1 package?

Re: mixed event/plugin plugin question

Posted: Sun Aug 13, 2006 1:55 pm
by garvinhicking
Hi!

Have a look at the serendipity_plugin_smiletag plugin? I think that comes kinda near to it?

Anyways, on to your real question:
Afaik a sidebar plugin cannot use event_hooks and only sidebar_plugins can output HTML to the sidebar. Am i right?
Exactly.
- Do i have to make 2 plugins?
That would be the best way, yes. You can set up "dependencies", like if you look at the templatedropdown+templatechooser pair of plugins. Or the adduser plugin.
- if so, is it possible to deploy both plugins in 1 package?
Yes, you can put both plugins into the same directory.

Best regards,
Garvin

ty

Posted: Sun Aug 13, 2006 2:33 pm
by AzRAeL
thanks a lot