mixed event/plugin plugin question

Creating and modifying plugins.
Post Reply
AzRAeL
Regular
Posts: 22
Joined: Sun May 28, 2006 7:45 pm

mixed event/plugin plugin question

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: mixed event/plugin plugin question

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
AzRAeL
Regular
Posts: 22
Joined: Sun May 28, 2006 7:45 pm

ty

Post by AzRAeL »

thanks a lot
Post Reply