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.
Sweet & simple.
ok
Hello, thanks for this mod. How can I realize it? I have installed it on my Elgg engine (Elgg 1.8.16): http://dunkle-biene.honey-bees.de but after activation I cannot see any changes.
Please help me. Thank You.
Best regrads
Kai
here's an update for this which correctly uses the current gravatar url format and also uses elgg's default images if no gravatar is available (and you have customised your default elgg images):
1.9?
It is compatible without any changes, I just marked it explicitly. It's fastest to just give plugin a shot on 1.9 install and look for problems.
Nice! And still works with 2.2.3. However, there's a "WARNING: Deprecated in 2.2". Fix:
ura souls default-hack is included but commented out. Not everybody wants to send their URLs to gravatar and most are probably happy with gravatar's default-icon.
I made a PR with all the stuff in comments plus more reliable default URL calculation, including for Elgg 3. Anyone want to test it out?
Right, if (empty()) is less elegant but faster than @. And may i suggest
That of course is way slower, but speed doesn't matter at all in this case, imho. Also,for something thats meant to be included in the next release, function_exists() is not neccessary. Above, i've overdone that. Same goes for $pixels = @$sizes[$size]['w'] or 40; If elgg_get_icon_sizes() doesn't return something useful, elgg is broken, no need to try to fix it in a tiny little plugin.
I reworked it a bit. @ is unwise because it suppresses everything (not just what the author expected). Value assignments should always be standalone statements. Elgg guidelines suggest ?: only when it fits a single line.
IMO, we should only support the latest Elgg version. Not too keen on doing the a-la WordPress function_exists.