"enter characters" do not exist, you most supposely mean newlines and bytes for those vary. Additionally the word censor doesn't accept raw HTML either. However, doing this manually with an SQL query might work. But keep in mind that word censors affect almost everything, not only post texts.
Code: Select all
.post br + br + br + br {
display: none;
}
I'll try that, thanks!Ger wrote: ↑Thu Jul 06, 2017 8:52 am Most simple solution would be to add a simple CSS rule:
This simply hides 4 sibling breaks within a post. It doesn't affect anything else besides post content.Code: Select all
.post br + br + br + br { display: none; }
I have a forum that allows Guests to post. Some don't like the main topic of discussion so they spam with long blank posts just to be disruptive. I ban IPs, but it would be nice to have something automated to not even have to worry with itKevC wrote: ↑Thu Jul 06, 2017 8:55 am Are these actual spam accounts or just normal people on the board having a 'game' of making the posts longer?
If it's the former, you're better off stopping the spam before it even happens.
If it's the latter, it's your board, make rules and enforce them. If people can't be sensible start putting them on moderation queues or ban them for a bit until they learn.