What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed Server icons

Clement

Freaky Coder
Staff member
Oh ok well it's complicated to debug.
But yes please do and tell me if you are experiencing it too.
 

Nicolas

New Member
I'm experiencing this bug as well - and server icons is the only reason I have this add on!
Note that, in my use case, we do not let users select their own icon - we sometimes give icons as prizes and set them from the Admin CP. These do not display, and this behaviour persists whether or not I check "Apply changes to username customization" and whether or not I check "Force user icon(s)".
 

Nicolas

New Member
That's right - server icons simply do not display next to usernames. There are no errors logged or displayed anywhere.
And, since @madness85 was able to duplicate the error on a fresh install it seems like you should be able to duplicate that behaviour on a test board as well, no?
 

madness85

Member
Remove from templater.php

Code:
                    // Skip incorrect definition (server icons starting by fas)
                    if ($icon['type'] == 'srv' && strpos($icon['icon'], 'fas') !== 0)
                    {
                        continue;
                    }

Works now.
 

yrex

New Member
Where exactly do we upload the images? The info is outdated.
  • Server icons are loaded from the data (or another name if you renamed it) folder of your xF installation.
    Icons shall be located in the xfa/trophiesenhancement/icons subdirectory.

I tried src/addons/XFA/TrophiesEnhancement/icons/ but still no icon


EDIT:
Also tried data/XFA/TrophiesEnhancement/icons/ same result, as if I didnt upload anything
 
Last edited:

Clement

Freaky Coder
Staff member
Could you rather try with the following bit of code instead of removing:
PHP:
// Skip incorrect definition (server icons starting by fas)
if ($icon['type'] == 'srv' && strpos($icon['icon'], 'fas') === 0)
{
    continue;
}
 
Top