OK, I'll solve this one then.
Like I suspected, it was the blank spaces that were causing problems.
I changed the code
Code:
Content visible to verified customers only.
so that I removed all the blank spaces in front of $setting</textarea></td></tr>"; Basically this part of the code has to be in one single line and then there are no spaces.
I discovered some additional bugs but I'll describe them tomorrow.