MyBB Community Forums

Full Version: announce themes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

My forum have different parts with a theme for each part, but when you read an announce, the default theme is displayed.

It is possible to display the good theme ?

Thanks
Yes, it is. AdminCP -> Templates -> Modify / Delete -> Default Templates -> Expand -> announcement
Try this:
Open global.php, find:
$valid = array(
Add after:
"announcements.php",

Open announcements.php, find:
eval("\$announcements  .= \"".$templates->get("forumdisplay_announcements_announcement")."\";");
Before, add:
$afid = ($announcement['fid'] != -1) ? $announcement['fid'] : $fid;

Admin CP --> Templates --> Modify/Delete --> Expand your template set --> Forum Display Templates --> forumdisplay_announcements_announcement
Find:
<a href="announcements.php?aid={$announcement['aid']}">
Replace with:
<a href="announcements.php?aid={$announcement['aid']}&amp;fid={$afid}">

See if that works. Untested code
Yes, it's work fine !!!

Thank you !

Do you remember this mod for the new release ?