vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Prevent Character Abuse In Posts (https://vborg.vbsupport.ru/showthread.php?t=144549)

Dismounted 04-10-2007 10:00 PM

Prevent Character Abuse In Posts
 
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.
Quote:

Example for thread title (Before):
Code:

Test...... @@@@ !!!! #### $$$$ %%%%% !@#$%.
After:
Code:

Test. @ ! # $ % !

Quote:

For posts (Before):
Code:

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..1

After:
Code:

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.1


Great 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

Quote:

Originally Posted by Dismounted (Post 1244901)
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.

Luky 07-06-2007 02:26 PM

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


Quote:

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

Quote:

Originally Posted by Dismounted (Post 1345718)
What is your banned character list?


Quote:

!?.@$%&*":;?/><{}\|

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

Naco 09-24-2007 06:27 PM

Can't work with the multi-character language like chinese.....

Dismounted 09-25-2007 06:56 AM

Quote:

Originally Posted by puertoblack2003 (Post 1346146)
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.
Quote:

Originally Posted by Naco (Post 1346210)
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

Quote:

Originally Posted by Dismounted (Post 1346617)
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.


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01310 seconds
  • Memory Usage 1,807KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete