2008-12-23, 02:22 PM
Well, the icon indicator for global announcements is hardcoded in modcp.php, which makes it rather difficult to change the image without changing the default image.
However, I have a suggestion on changing this:
Open /modcp.php
Find:
Replace With:
Find:
Replace With:
... This will make the images for the icons read from the theme's image directory, instead of just images/minion.gif or images/minioff.gif
However, I have a suggestion on changing this:
Open /modcp.php
Find:
$icon = "<img src=\"images/minioff.gif\" alt=\"({$lang->expired})\" title=\"{$lang->expired_announcement}\" style=\"vertical-align: middle;\" /> ";
Replace With:
$icon = "<img src=\"".$mybb->settings['bburl']."/".$theme['imgdir']."/minioff.gif\" alt=\"({$lang->expired})\" title=\"{$lang->expired_announcement}\" style=\"vertical-align: middle;\" /> ";
Find:
$icon = "<img src=\"images/minion.gif\" alt=\"({$lang->active})\" title=\"{$lang->active_announcement}\" style=\"vertical-align: middle;\" /> ";
Replace With:
$icon = "<img src=\"".$mybb->settings['bburl']."/".$theme['imgdir']."/minion.gif\" alt=\"({$lang->active})\" title=\"{$lang->active_announcement}\" style=\"vertical-align: middle;\" /> ";
... This will make the images for the icons read from the theme's image directory, instead of just images/minion.gif or images/minioff.gif