View Full Version : New Posting Features - Prevent Character Abuse In Posts
Dismounted
04-10-2007, 10:00 PM
Prevent Character Abuse In Posts
Description:
Prevents multiple characters from being used in posts.
Request:
https://vborg.vbsupport.ru/showthread.php?t=144317
Installation:
All the installation information is in the package.
Changes:
3 Plugins
13 Phrases
Change Log:
12/04/2007 - Version 1.1
- Added A Heap Of Requested Features
11/04/2007 - Version 1.0
- Initial Release
Dismounted
04-11-2007, 07:22 AM
/me Reserves
tobias_t
04-11-2007, 10:39 AM
That was very fast, and works like a charm, thanks so much! :)
NFLfbJunkie
04-11-2007, 11:33 AM
Would it be possible that this MOD also prevent users from using trailing periods (i.e., .....)?
Dismounted
04-11-2007, 11:35 AM
Yes, I'll do it later.
NFLfbJunkie
04-11-2007, 01:07 PM
Excellent! Thanks.
PinkDaisy
04-11-2007, 01:08 PM
Can this somehow be worked in for threads too?? lol
bada_bing
04-11-2007, 03:40 PM
Can you have it so that its only applied to certain usergroups?
TheMilkCarton
04-11-2007, 07:08 PM
I was wondering what happened to this. There was a thread about this and we never heard back from you.
I think the ultimate product would allow you to set usergroups, what punctuation you can block, and how much punctuation until it starts getting limited. :) And of course applying this to more than thread titles.
Just my $.02
Dismounted
04-12-2007, 06:39 AM
Hack Updated!
12/04/2007 - Version 1.1
- Added A Heap Of Requested Features
TheMilkCarton
04-12-2007, 08:41 AM
Wow amazing job!!
Will install! Thank you so much for this. :)
bitdefuser
04-12-2007, 02:26 PM
Wow, I must say; this is pretty good! I'll provide some examples for those skeptical users.
Example for thread title (Before):Test...... @@@@ !!!! #### $$$$ %%%%% !@#$%.After:
Test. @ ! # $ % !For posts (Before):
test
Test...... @@@@ !!!! #### $$$$ %%%%% !@#$%.
Test...... @@@@ !!!! #### $$$$ %%%%% !@#$%.
Test...... @@@@ !!!! #### $$$$ %%%%% !@#$%.
Test...... @@@@ !!!! #### $$$$ %%%%% !@#$%.
Test...... @@@@ !!!! #### $$$$ %%%%% !@#$%.
.......
.....
This is a test. I love tests!!! . Tests are cool. Jim walked down the street.
Jim. Jim. Jim. I love Jim. The cat! Wow, the cat! I love cats! ! ! ! ! Test test@@@
@#$%!.
ARGH!!@@!#@##$@#!$..1.1.1..1After:
test
Test. @ ! # $ % !
Test. @ ! # $ % !
Test. @ ! # $ % !
Test. @ ! # $ % !
Test. @ ! # $ % !
.
.
This is a test. I love tests! . Tests are cool. Jim walked down the street.
Jim. Jim. Jim. I love Jim. The cat! Wow, the cat! I love cats! ! ! ! ! Test test@
@
ARGH!1.1.1.1Great work! :)
Edit: My banned characters are: !@#$%.
xlguy
04-26-2007, 03:40 PM
It kind of works, but...
If a user writes "Hello!!!???" and you have a limit of 1, then it strips out all the ???. Instead it *should* make it "Hello!?"
HTH.
Dismounted
04-27-2007, 06:13 AM
That's how it works I'm afraid. I'll have a look to get around it, but that's how the regex works.
xlguy
04-27-2007, 09:46 AM
Thanks for looking in to it, I wonder whether it can loop the routine on each character or something?
4x4 Mecca
04-28-2007, 10:45 PM
Does this add a query to the threaddisplay?
Dismounted
04-29-2007, 05:33 AM
No, all the required information is already fetched in $vbulletin->options.
djbaxter
04-29-2007, 06:48 PM
Any plans for a slightly more aggressive companion add-on to this one called "Prevent Character Assassination in Posts"?
Dismounted
04-30-2007, 05:56 AM
What would be different?
paul41598
05-02-2007, 12:14 AM
The comma seperated exempt option doesnt work b.t.w. You can put in 1 usergroup ID, but you can't do more than 1 with a comma. Seems your missing a line or two of code ;)
Dismounted
05-02-2007, 07:26 AM
I'll have a look into it :).
Phillip Chapman
05-10-2007, 12:31 AM
I had a request for this hack. One of the common uses of legal repeated characters is for a series of three ellipses like "..." so what I would like to see is an option to change any string of four or more periods to three periods. This is something especially important to forums that have stories and fan fiction. In addition, two periods could be set to change to one or three as the admin saw appropriate.
Dismounted
05-10-2007, 11:36 AM
Why don't you just set the max depth to 3?
Phillip Chapman
05-10-2007, 04:34 PM
Why don't you just set the max depth to 3?
I'd rather not set the max depth to three because I want all other characters to be limited to one instance. Since an ellipses is a legal form of grammar it might be worth making an exception in this case.
Thanks for your consideration.
Phillip Chapman
05-11-2007, 06:48 PM
One more feature that would be fantastic would be an option to limit one paragraph return at a time in posts. Since some people like to leave a lot of excess space in posts this would be a great way to automatically remove that excess.
Maybe this is your design, but it seems that when posted in advanced mode that your hack is automatically applied whereas in quick reply the user gets a warning. It would be nice if the hack was applied invisibly on a quick reply message as well.
Again, thanks for all the work that you have put into this so far.
Dismounted
05-12-2007, 09:05 AM
1./ I'll have a look at it.
2./ That is just the nature of vBulletin. I could probably do a workaround, but it'd probably use more resources so it'd do more bad than good.
mhmd1983
05-29-2007, 06:28 PM
installeeeeeeeeeeeeed hope you didn't block that ;)
mhmd1983
05-29-2007, 06:34 PM
ok it doesn't work with Arabic language , but it still a nice mod
Dismounted
05-30-2007, 01:52 AM
That's because Arabic uses non-standard characters.
In the screenie, its spelt Befgore not Before, just so you know :)
Dismounted
07-07-2007, 07:04 AM
I've fixed that bug in my own files ages ago, it's minor, so I didn't make a new release of it.
puertoblack2003
09-23-2007, 12:45 PM
i received this error when i was replying to a post
Warning: preg_replace() [function.preg-replace]: Unknown modifier '\' in \newthread.php(135) : eval()'d code on line 35
Warning: preg_replace() [function.preg-replace]: Unknown modifier '\' in \newthread.php(135) : eval()'d code on line 40
Dismounted
09-24-2007, 05:46 AM
What is your banned character list?
puertoblack2003
09-24-2007, 04:48 PM
What is your banned character list?
!?.@$%&*":;?/><{}\|
does that look crazy...lol i wanted those characters there lot of my members use that and looks tackey.
also i noticed that i enabled that in post and it's still giving me errors.
thanks pb
Can't work with the multi-character language like chinese.....
Dismounted
09-25-2007, 06:56 AM
does that look crazy...lol i wanted those characters there lot of my members use that and looks tackey.
also i noticed that i enabled that in post and it's still giving me errors.
thanks pb
The character / (forward slash) is causing the errors. I'm looking into solutions.
Can't work with the multi-character language like chinese.....
Yes, I already know this. It can't be helped.
Kwikms
02-01-2008, 08:51 AM
If you could place a rule for every character individually it would be perfect.
puertoblack2003
09-06-2008, 06:49 PM
The character / (forward slash) is causing the errors. I'm looking into solutions.
Yes, I already know this. It can't be helped.
any updates on this hack i really love to have it..thanks
xlguy
02-04-2009, 10:28 AM
Has anyone tried this modification with 3.8.x? I would love to get something like this, it's a great mod and I can't believe it's still not part of the default program!
Dismounted
02-05-2009, 03:56 AM
It should work on 3.8.x, but I am not 100% sure.
puertoblack2003
02-05-2009, 04:51 AM
yep it works through 3.7 and 3.8
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.