I need to introduce a minor change to the messages in each of the following files:
path/vendor/elgg/elgg/js/lib/elgglib.jspath/vendor/elgg/elgg/views/default/page/elements/messages.php
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.
- iionly@iionly
iionly - 0 likes
- Reuven@reuven
Reuven - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Reuven@reuven
Reuven - 0 likes
You must log in to post replies.Not knowing what you want to change I would say if overridding works for you just do it this way.
I want to add a "close" text to the system messages, e.g. <p style="text-align: right; color: #e8f907;">close</p>.
Below you'll see my added code to messages.php and elgglib.js. It works well when I change the core (temporarily of course). I've not yet overridden it with a plugin but I believe it will work. However, I think that since the system messages are triggered by events, it should be possible to add the code through a plugin hook, but I do not know how to do it.
Thank you very much.
---------------------------------------------
In messages.php the code is:
please note my added code in the comment "my addition".
And in elgglib.js, the code is:
please note my added code in the comment "my addition".
Just override this view:
as
And this:
as
Where add location of your rewritted elgglib.js instead of
Works great.
views/default/elgg.js.php is new to me... good to know :)
Thank you very much RvR