Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Off-Topic
»
Archive
»
Really Old Stuff
»
PUB (Php Über Board)
(Moderator:
De KoFfie©
) »
Suggestion: Fixing the quote error
« previous
next »
Print
Pages: [
1
]
Author
Topic: Suggestion: Fixing the quote error (Read 3741 times)
AsakuraHao2004
RAM-TORTOISE!!
Exemplar
Posts: 1,623
AIM: dakutenshisdemon YIM: desimodontidae
Suggestion: Fixing the quote error
«
on:
September 06, 2005, 06:53:35 PM »
ok, I can guess the main reason of the quote error is because people fail to realize that it's case sensitive. So I figured, seeing as how you can do that whole thing where it turns bad words into asterisks, maybe you can make it to where "quote" would turn into "QUOTE".
Or, alternativly, maybe you could make it to where either entry would be valid for quoting.
Logged
AKA Desimodontidae. If you're seeing this profile, Im probably at school.
If i were a clown, would you hold me when I'm down?/I wish I had someone to make me drown/So many people don't know that it's so damn hard to be a clown/I am the clown with the giant frown/My heart is in a state of being upside down...
White Dwarf
The Count
Agent
Posts: 948
Gone.
(No subject)
«
Reply #1 on:
September 06, 2005, 06:59:23 PM »
The word cencor with quote into QUOTE, I like it
Logged
Come closer, I don't bite...
WWW.66Seven.co.uk
WarxePB
Action Sue
Royal
Posts: 3,601
What killed the dinosaurs?
(No subject)
«
Reply #2 on:
September 06, 2005, 09:31:45 PM »
That is actually a good idea, and it doesn't sound like it'd be too hard.
That won't solve the problem entirely, though. There's still the chance of misspelling the tag or forgetting one of the brackets or the backslash on the end tag. But those can't really be fixed automatically.
Logged
Blog:
The Gigaverse
Twitter:
Initial Chaos
GhostClown
Loved by few, Hated by many, Respected by all.
Exemplar
Posts: 1,988
(No subject)
«
Reply #3 on:
September 06, 2005, 10:48:02 PM »
Just make the censor change all typo's into the full quote, it would probably be around 5-6 different typo combinations but it could work.
Logged
GaryCXJk
<strong>Official Charas.EX Team Member</strong>
Exemplar
Posts: 1,586
FOUR OH FOUR'D
(No subject)
«
Reply #4 on:
September 07, 2005, 03:49:31 PM »
Or, just preg_replace it instead of str_replacing it. It works better than str_replace.
However, seeing as it can also cause a no multi-quoting thing, I have another idea: preg_match. preg_match all
Quote
, then all
. Then compare the size of both arrays. If it doesn't match, then it will only str_replace / preg_replace it until either one has no more entries to be replaced.
Oh, and please, get rid of the case-sensitivity on the quote-side too. You already did it with the
-tags.
Logged
Play it now!
Charas Breakout DX
Area91: for MUGEN and RPG Maker VX Ace stuff
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Off-Topic
»
Archive
»
Really Old Stuff
»
PUB (Php Über Board)
(Moderator:
De KoFfie©
) »
Suggestion: Fixing the quote error