For the quickest reply, please use our new Customer Helpdesk and Feedback platform
 
   
 
Extending ejabberd web admin
Posted: 20 January 2011 07:28 PM   [ Ignore ]
Newbie
Rank
Total Posts:  13
Joined  2007-07-24

Is there a correct way to extend the web admin panel (without modifying ejabberd_web_admin.erl)?

I’ve been looking for methods similar to ejabberd_ctl:register_commands so that I can add new sections/pages for configuring custom modules.

Profile
 
 
Posted: 21 January 2011 12:12 PM   [ Ignore ]   [ # 1 ]
Moderator
Rank
Total Posts:  29
Joined  2007-11-26

ejabberd_web_admin runs several events (called like webadmin_*), and several ejabberd modules add hooks for them, like mod_offline, mod_roster, mod_shared_roster, and mod_vcard. There are more examples in ejabberd-modules SVN, like mod_cron, mod_muc_admin, mod_shcommands, mod_statsdx and mod_webpresence.

All those modules add pages to the WebAdmin in different places (global, in nodes, in vhosts, in vhosts-nodes, or in users).

Profile
 
 
Posted: 21 January 2011 08:24 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  13
Joined  2007-07-24

Excellent! Thats exactly what I was looking for, I couldn’t find examples or documentation anywhere about this.

Thanks.

Profile