I am updating the banner plugin (http://docs.cacti.net/userplugin:banner) for PIA 3.1/Cacti v1.1.x (1.1.10).
For those who don't know what it is, it is a plugin you can use to display a banner at the top of Cacti so that users can be informed of certain events (for instance Scheduled Downtime, etc.).
Currently I am running into two problems.
Cacti doesn't support the "body_style" plugin hook anymore. I have replaced the <body> tag in include/top_graph_header.php and in include/top_header.php to:
Code: Select all
<body <?php print api_plugin_hook_function("body_style", "");?>>
Because the plugin takes in some room on the last two themes the scroll bar is changed. If for instance try to change a users Theme, the Return and Save buttons drop off the screen, so you can't select them.
Attached my codechange for the the plugin, I haven't changed the original developer, because he did a lot more than me.
I hope someone can help me on how I could integrate the plugin better into the net Plugin Architecture?
Thank you in advance.