Maybe it is a simple change if one knows the internals of this particular class. I don't, but I can offer a less elegant solution until some more knowledgable person comes around.
Take the code from the answer that you mentioned, and add the following definition before \begin{document}
.
\newcommand\mychapter[2][\mychapterheading]%
{\def\mychapterheading{#2}%
\chapter[#1]{\parbox[b]{\linewidth}{#2}}%
}
As an example consider the following document.
... Code from the other posting up to \begin{document} ...
... Definition of \mychapter above
\begin{document}
\tableofcontents
\chapter{Lorem ipsum dolor sit amet, consectetuer adipiscing elit}
\mychapter{Lorem ipsum dolor sit amet, consectetuer adipiscing elit}
\mychapter{Lorem ipsum dolor sit amet,\\consectetuer adipiscing elit}
\mychapter[Lorem ipsum dolor sit amet, consectetuer adipiscing elit]%
{Lorem ipsum dolor sit amet,\\consectetuer adipiscing elit}
\end{document}
This leads to the following table of contents and chapter headings:





The heading of the first chapter is formatted according to the original chapter definition. The second one uses the new definition, but leaves line breaking to LaTeX. The third one contains a manual break, that is also used for the table of contents. Finally, the fourth example also contains a manual break, but the optional argument of the new command contains the chapter heading without line break, which is what goes into the table of contents.