Hi everyone,
I want to override a core library function named tags.php and replace it with the function with similar name in /lib directory of my plugin. I've tried writing elgg_register_library('tags', elgg_get_plugins_path().'my_plugin/lib/tags.php'); in start.php file of my plugin (inside my_plugin_init function) but it doesn't work. how can I do that ?
I've read previous discussion about this issue but the answers were ambiguous, so I'd really appreciate that you help me with writing the proper code for this matter (and not just explaining by words)
Thanks in advance
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.
- Evan Winslow@ewinslow

Evan Winslow - 0 likes
- sprite@sprite

sprite - 0 likes
- Steve Clay@steve_clay

Steve Clay - 0 likes
- override the css/elements/components view and change the .elgg-tags li.elgg-tag:after rule.
- override the input/tags view and change the implode there.
- register for the plugin hook ("action", "all"). In your handler function, do something like this:
You must log in to post replies.You cannot override those functions.
What is it you're trying to accomplish? That would help us give you a better direction to go.
Ok, I want to change tags delimiter from ',' to '-' by changing implode and explode functions. how can I do that properly so that all tags inputs and outputs are affected?
Changing the tag delimiter would be difficult to do correctly. Here's one hack:
This should work for each form that uses "tags" as the name of the input/tags view, but blindly rewriting input is a brittle solution.
My advice is to not do this.