@@@@@@@@@@ (etc)
From: Milan | Posted: 22/01/2006 12:35:02 PM |
[This message was deleted by a moderator or administrator] |
From: Milan | Posted: 22/01/2006 12:35:28 PM |
teehee |
From: Ryan Dwyer | Posted: 22/01/2006 12:44:00 PM |
I'm not sure what I could implement to stop this from happening. I could put each topic title in a div with overflow: hidden. Or I could require a space every 30 characters. |
From: Milan | Posted: 22/01/2006 5:03:45 PM |
maybe check for +/- 30 consecutive @'s |
From: Ryan Dwyer | Posted: 22/01/2006 9:49:18 PM |
I don't want to check for the @ character especially, because there's many other ways to stretch it (like W). I think requiring a space every 30 characters would be fine. The longest English word is antidisestablishmentarianism, and that's only 28 characters.
Oh, and I deleted the first post so the topic is still readable. |
From: Random User | Posted: 23/01/2006 1:20:18 AM |
if (preg_match('/S{30}/', $topic)) {
$error = 'Your topic title contains a single word over 30 characters in length.'; |
From: Ryan Dwyer | Posted: 23/01/2006 5:27:00 AM |
That's exactly what I wrote, apart from the variable name and error message. I had it sitting on my desktop for a few hours, but now I'm going to finally upload it with the rest of the v1.1 update. |
From: Ryan Dwyer | Posted: 23/01/2006 5:37:09 AM |
Okay, updated now. I edited this topic title through phpMyAdmin because that problem has now been fixed, and I want this board to be readable. |