Hey everybody.
I am looking to replace the default "groups" and "user" icon through a plugin, but it looks like the icons are handled a special way (especially for group). I found this old page:
https://elgg.org/pages/view/839193/how-to-change-elggs-default-usergroup-profile-icons
but I feel like it would no longer apply to the newest version of elgg.
Thanks,
- Ben
(P.S: I used to be a member of the community a few years ago & I made quite a few plugins. Excited to be developing with elgg and looking forward to sharing some new plugins with the community.)
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.
- foka_patrick@foka_patrick
foka_patrick - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 1 like
- Ben Potter@bpmct
Ben Potter - 0 likes
groups/defaultlarge.gif
500
mod/groups/graphics/defaultlarge.gif
groups/defaultmedium.gif
500
mod/groups/graphics/defaultmedium.gif
groups/defaultsmall.gif
500
mod/groups/graphics/defaultsmall.gif
groups/defaulttiny.gif
500
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 1 like
- Ben Potter@bpmct
Ben Potter - 0 likes
You must log in to post replies.in the root of plugin you will see graphics folder, in this folder you have default icon of groups. delete it and put your own on the same name
Don't delete anything.
Icons are in the view system these days, so you should be able to replace them in a plugin just like any other view. Enable the developers plugin and you will see how file locations map to view names in View inspector
Hi Ismayil. Thanks for the response :)
I actually checked the view inspector and I found these file locations:
mod/groups/graphics/defaulttiny.gif
I'm still a little thrown off because they aren't in the views/ folder of the groups plugin so I don't know how I would go about overriding it in a different plugin. It has to do with the elgg-plugin.php right?
Nope.
Override these:
in start.php of your own plugin.
Learn more on http://learn.elgg.org/en/stable/guides/hooks-list.html#other - - entity:icon:url section
Awesome! Got it working. Thank you for your help!
Looking forward to being back in the elgg community.