MyBB Community Forums

Full Version: Icon for announcements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hello,
Where is the place to define what icon should be displayed for announcement posts.
Thank you.
WHat icon are u refering to, where you want it ?
Hmm i see, this needs a somehow "big" modification for nothing, as we need to alter the database table of the announcement with 1 new field, and edit the templates, and also add some php lines in the front end, and also edit the announcement manager to allow u to set an icon.

so my suggestion here, is it ok for you to have an icon that is the same for all the announcement ?

regards
Yeah, one icon for all announcements is absolutely enough.
I understand. You are right. Lots of bother for nothing.
Thanks a lot zaher.
then in the forum display templates > forumdisplay_announcements_announcement

find

<td align="center" class="$bgcolor">&nbsp;</td> 

replace with

 <td align="center" class="$bgcolor"><img src="$theme[imgdir]/smilies/ursmile.gif" alt="Announcement" /></td>
regards
Thanks again zaher!
I actually have only forumdisplay_announcement option, and that's the code in there:
<tr>
<td align="center" class="trow1"><img src="$theme[imgdir]/$folder"></td>
<td align="center" class="trow1">&nbsp;</td>
<td width="100%" class="trow1"><strong>$lang->announcement_prefix</strong> <a href="announcements.php?fid=$fid">$announcement[subject]</a></td>
<td align="center" class="trow1"><a href="member.php?action=profile&amp;uid=$announcement[uid]">$announcement[username]</a></td>
<td align="center" class="trow1">-</td>
<td align="center" class="trow1">-</td>
$rating
<td class="trow1" nowrap="nowrap"$postdate $posttime</span></td>
$modann
</tr>
What should i replace in this case?
umm you should have forumdisplay_announcements_announcement make sure that this exists before editing this template.

in anycase, what you might need to replace is this

<td align="center" class="trow1">&nbsp;</td>

regards
Nope, here it is:
[attachment=3180]
Pages: 1 2 3