MyBB Community Forums

Full Version: [Theme] ModCP - Announcements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
$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
I like this idea!Smile