Info for Developers (Plugins, Skins, and Languages)

  1. 8 years ago

    Toby

    14 Nov 2011 Administrator

    Plugins

    esoTalk gamma contains a powerful new plugin architecture which will make developing plugins easier and more flexible. There are three main ways that plugins can extend the esoTalk core:

    1. Add event handlers that are called when an event is triggered (aka. hooks.)
    2. Create or override controller methods.
    3. Override core classes by registering substitutes in a factory object.

    Currently there is no documentation on plugin development, but it is high on my priority list to get this done. In the meantime, I encourage you to look at the two plugins that come with gamma (BBCode and Debug) to get a bit of an idea as to how the plugin architecture works.

    Please note that events (hooks) have not been added throughout the esoTalk code yet.

    Skins

    In gamma, skins are very similar to plugins in that they are plugins—just a special type of plugins. Technically speaking, a skin can do anything that a plugin can do. However, for consistency's sake, a skin should only really ever add stylesheets to the controller via the init event.

    Separate from the default skin, Proto, esoTalk includes a base stylesheet and images in the skins/base/ directory. Any skin can include this stylesheet and then define additional styles in its own stylesheet to make it unique. This means that skins won't be affected by esoTalk software updates which add or change interfaces. For an example of how this works, see the Proto skin.

    Again, there is currently no documentation on skin development, but I'll be working on it soon.

    Languages

    Languages are structured similarly to how they were in the old version, but there are too many definition additions/removals to list so it won't be possible to directly use an old language pack in gamma.

    Language packs can also contain separate definition files which are specific to plugins, and automatically included if the plugin is loaded. For an example of this, see the definition files in languages/English/.

  2. I have to admit, you've done an awesome job. Already recommending this to my fellow developers and going to start working on plugins soon.

  3. toby and esotalk is awesome.

  4. I'm planning on developing some plugins and writing documentation for the API

  5. Edited 8 years ago by iugo

    gamma .

    Thank you, @Toby.

  6. How do we get the icon for each language? Like the English package in esoTalk now, the icon is the flag of the UK.

  7. Edited 8 years ago by petsagouris

    @Meow How do we get the icon for each language? Like the English package in esoTalk now, the icon is the flag of the UK.

    Put the icon of the country flag of the language in a file named "icon.png" inside the folder of translation. The icon should be precisely 16px wide 11px tall.

  8. -image-

    It uses a unique style, so people cannot just put an icon.

  9. Although you can "just put an icon" the "unique style" is from here: http://www.famfamfam.com/lab/icons/flags/
    Those are free icons.

  10. i want chinese supported...

  11. and avatar gif

  12. Henry

    16 Nov 2011 Moderator

    @metalbug and avatar gif

    Animated GIFs will not be supported due to security reasons.

  13. Animated GIF files hurt people's eyes.

  14. @Meow Animated GIF files hurt people's eyes.

    Yes. I believe that is one of the security reasons @Henry was talking about.

  15. By the way, will there be a thread for requesting plugins?

  16. @Meow By the way, will there be a thread for requesting plugins?

    There is a channel for it, http://esotalk.org/forum/conversations/plugin-requests+

  17. ram

    18 Nov 2011 Moderator

    Hello,
    I'm just discovering this new version. I'm wondering how long thread are handled now there is no more pagination.
    Does it display all messages month by month or like 20 by 20, or anything else ?

  18. Henry

    18 Nov 2011 Moderator

    I know there's no examples long enough on this board yet. But see the timeline to the right of the posts? That's how.

  19. @Henry I know there's no examples long enough on this board yet. But see the timeline to the right of the posts? That's how.

    Are Original Post, November and Now enough for a long conversation?

  20. Henry

    19 Nov 2011 Moderator

    @Meow Are Original Post, November and Now enough for a long conversation?

    They will grow as the thread grows.

  21. Newer ›
 

or Sign Up to reply!