MyBB Hacks

Full Version: Portal Announcement help.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys I have hit a dead end everywhere, I have asked every developer I know and already asked at the MyBB community forums so here I am as my last resort.

Aight guys lets dig into it now,

Basically I'm redoing the whole default MyBB Portal to fit my needs, I'm using the Material Design by google and it is all good and well but now the announcements are a big pain in the neck. It basically takes the markup you make the in portal_announcment template and uses it for all announcements, What I want isdifferent markup/layout depending on the announcement . I have no idea whether this is possible in MyBB without some hardcore coding or whatsoever so please do share your views

Cheers Smile
Different template by announcement? Find and modify:

PHP Code:
eval("\$announcements .= \"".$templates->get("portal_announcement")."\";");


By announcement:

PHP Code:
eval("\$announcements .= \"".$templates->get("portal_announcement_".$announcement['tid'])."\";");


You will need to create a new template for every announcement. It doesn't seems convenient to me..

Oh wow thanks for that but yeah can be a pain in the neck.
Reference URL's