Question mark for missing item icon

Miscellaneous code snippets and examples that members have posted

Question mark for missing item icon

Postby PleegWat » Sun Jan 21, 2007 10:31 am

Ingame, if the icon for an item isn't loaded yet, the game displays a ? icon. Since this icon is in the interface image pack, we can use an .htaccess file to show this icon if the correct icon isn't available (EG in case of an old icon pack).

Look up the directory containing your interface images (default www.example.com/roster/img/Interface/Icons/). In that directory, create a file called .htaccess with the following content:

Code: Select all
ErrorDocument 404 /roster/img/Interface/Icons/INV_Misc_QuestionMark.jpg


If your roster isn't in /roster, or you keep the interface images elsewhere, make sure to adapt the path to the icon appropriately.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Return to Code Cache

Who is online

Users browsing this forum: No registered users and 0 guests

cron