View Full Version : Expired Raid Icons
Vranx
08-20-2008, 01:21 PM
Sorry if this has been answered already.
I would like to have the icons for expired raids be different then upcoming raid icons. I want people to easily see what raids have passed. Is there a way to change which icon shows up if a raid is expired?
Goodbyte
08-21-2008, 12:18 AM
This isn't anything a template could solve. You have to edit the frontpage.php:
I think you have to change the following line:
$icon = setIcon('_RAID_', $data['icon_name'], $tooltip, 1);
to something like this:$icon = setIcon('_RAID_', ($data['expired']==0?'':'exp_').$data['icon_name'], $tooltip, 1);
I'm not sure whether this works. I didn't tested it.
With this solution you'd have to have for each of your icons an additional icon prefixed with "exp_".
(Currently these files have to be in the same folder as the original ones - so they are shown when creating a new raid.)
This is not a complete solution for your problem! It's just a "Look at this area in the code. Somehow this way you could accomplish what you want."
|
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.