LPH
Well-known member
This code works but doesn't use
Second Question:
With the above code, the HTML is shown; however, the
NoticesList()
or getNotice()
. I wasn't sure how to call it. In fact, in general, this is a stickler for me. Notices.php is in the src\XF ..
Code:
$notices = \XF::app()->get('notices');
foreach ( $notices as $noticeItem ) {
if( $noticeItem['notice_id'] == $instance['noticenumber'] ) {
echo $noticeItem['message'];
}
}
Second Question:
With the above code, the HTML is shown; however, the
{name}
isn't rendered. This also fails to take into account any options chosen in the XenForo options for Notices. Eventually, the avatar option chosen should show next to the notice.