Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
New Extension: Announcement
This discussion has been closed.
Comments
ie member group 1 - annoucement 1
member group 2 - annoucement 2
I also ran into the Parse error: syntax error, unexpected T_STRING bug. It seems to happen whenever you try to put any line breaks into the announcement and then update the announcement again. The line breaks are written into conf/settings.php the first time it is saved, and then only the first line is replaced when the announcement is updated. You end up with extra lines of text that are not enclosed in quotes, and PHP cannot parse it.
One way of dealing with it would be to use PHP's nl2br() function to convert all of the newlines to <br /> tags. Or you could just strip out newlines. Or you could replace the entire value of $Configuration['ANNOUNCE_MESSAGE']. Or ...
Thanks again!
Find the textarea and replace it with
<input style="width:400px" type="text" name="ANNOUNCE_MESSAGE" id="txtMessage" value="' . $this->ConfigurationManager->GetSetting('ANNOUNCE_MESSAGE') . ' "/>