We've talked about this with Srokap, who has written a basic plugin that does this: https://github.com/Srokap/srokap_plugin_installer
This plugin does exactly what you're discussing. We're reluctant to pull it into core because of the security concerns that arise when users have an apache-writable plugin directory. There were some alternative approaches discussed, but nothing has been implemented yet.
Breet, how about my update services plugin? I developed with Cash and the plugins notify about new releases.
Its safe and help the admins to keep the site up to date.
Ps.: Cash talked about turn our plugin a core plugin, one year ago. But we never talked again.
the icons.php is pointing to the png file in the _graphics. and if i upgrade elgg later, unless i remember to copy that folder over too i would lose it. i guess id have to maybe change where the icons.php is looking for the png file and point it to a plugin folder that will come with me
That's correct, though you don't have to override the entire icons.php file if it's just that small change you're making, you can just redeclare the css class .elgg-icons {} with the location of your replacement image.
Sometimes items are registered at the point of 'pagesetup' - just before all views are rendered. You are unregistering them at the system 'init', which happens before pagesetup. So to make sure you get them all you should unregister the items in pagesetup with a high priority (running last).
// in my init function
elgg_register_event_handler('pagesetup', 'system', 'myplugin_pagesetup', 1000);
// global function
function myplugin_pagesetup() {
// unregister menu items here
}
Finally for the izap videos, underscores get converted to hyphens for class names, so it's most likely izap_videos_videos
thanks heaps for the tips Matt.
once "izap_videos_videos" didnt work, i realised i could go search for the register event in the plugin and find out.
it was "izap-videos:videos"
Big time Costa. Thanks to you and people like you, I'm now a cadre :).
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.