Yes, but I will start working today or tomorrow on making this properly since the "hack" was just to cut time :). I will post how I did it when i'm finished.
As switchers from vb to xenforo we had an issue last night. Our Malware-Scanner reportet an included <?php tag in one of the imported avatars. We stored our avatars in our database before.
While XenForo itself doesn't permit to upload this picture, it was imported. An option to check for...
That means the best solution will to override it in $helpers and use the original source code to maintain the standart-behaviour. At least it is a lot cleaner then hacking it in the core itself.
I feel silly now... I wondered why my listener on load_class didn't work and your mentioning of "static" triggered my brain to work properly.
Thanks. You were right.
( XenForo/Template/Helper/Core.php => _getDefaultAvatarUrl() )
Hi,
for a heavily bridged forum I need to replace the avatars with ones I fetch from our login-service.
We want to keep the standart Xen-Foro-Avatars (custom, gravatar) and just replace the default one with the corresponding avatar for the user.
My main problem is that I can't manage to find...