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?
mixed event/plugin plugin question
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: mixed event/plugin plugin question
Hi!
Have a look at the serendipity_plugin_smiletag plugin? I think that comes kinda near to it?
Anyways, on to your real question:
Best regards,
Garvin
Have a look at the serendipity_plugin_smiletag plugin? I think that comes kinda near to it?
Anyways, on to your real question:
Exactly.Afaik a sidebar plugin cannot use event_hooks and only sidebar_plugins can output HTML to the sidebar. Am i right?
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.- Do i have to make 2 plugins?
Yes, you can put both plugins into the same directory.- if so, is it possible to deploy both plugins in 1 package?
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/
# 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/