Portal Announcement help.
Freakout Offline
Junior Member
**
Posts: 4
Joined: Aug 2016
Post: #1
Portal Announcement help.
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
08-21-2016 08:28 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #2
RE: Portal Announcement help.
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..


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
08-25-2016 03:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Freakout Offline
Junior Member
**
Posts: 4
Joined: Aug 2016
Post: #3
RE: Portal Announcement help.
Oh wow thanks for that but yeah can be a pain in the neck.
09-09-2016 10:11 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: