vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

bold 12-07-2004 07:01 PM

Quote:

Originally Posted by sv1cec
You are right, I forgot to add the instructions for that, I just updated the file.

Tnx

:) you are doing a good job with this hack.

mcyates 12-09-2004 10:21 AM

Quote:

Originally Posted by sv1cec
I just copied this below, from the installation file. I am sure I have it right there.

PHP Code:

$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6', '6','8','0','Yes','3','All','Yes','Yes','No','Yes','Yes','15')"

Try this!

It worked!!

Thanks, what did you change?

mcyates 12-09-2004 10:31 AM

I just need to add the phrases now as its saying there are duplicates but i'm missing some?

Is there any SQL query i can run which will drop the phrase if it exists and adds them all. The database is fine now, its just the phrases. After the prases are added I can do the file changes.

Thanks in advance, fantastic support.

sv1cec 12-09-2004 11:07 AM

Quote:

Originally Posted by mcyates
I just need to add the phrases now as its saying there are duplicates but i'm missing some?

Is there any SQL query i can run which will drop the phrase if it exists and adds them all. The database is fine now, its just the phrases. After the prases are added I can do the file changes.

Thanks in advance, fantastic support.

Try running the following query in your system:

PHP Code:

select from phrase where varname>='warning' and varname<'we' 

This will show you the phrases which start with 'warning'. All of these are connected to the warning system, so if you do not see anyone that is not related to a warning, then you may execute the following query to remove whichever is left:

PHP Code:

delete from phrase where where varname>='warning' and varname<'we' 

Please make sure that there are no other phrases in the list produced by the first query, except those related to a warning, if there are, then do not run the second one, or else you will delete them.

Rgds

mcyates 12-09-2004 12:02 PM

works thanks!!!

I'll get onto changing the files now. Thank You very much.

sv1cec 12-10-2004 08:53 AM

Quote:

Originally Posted by mcyates
works thanks!!!

I'll get onto changing the files now. Thank You very much.

Most welcome!

mcyates 12-10-2004 10:47 AM

Just query about the atomatic arwings when people post words which are in the censored list. You say you can't prove they said what they said as it replaces the words with **** or whatever symbol you use.

Could you just not make another field (or text box) which the automatic warnings run from? Instead of using the words listed in the censored list, have a warning list and when someone types in a word which is in the warning list, they get warned and the words they typed are still shown as they are not censored.

ALSO you could have (if you want) 3 different boxes for the sevearily of the word.

For examply,

Very Very naughty words: (type words in the box, if uses types in one of the words he gets 5 warning points)

Naughty words: (type words in the box, if uses types in one of the not so nautghy words he only gets 2 points)

Not so naughty: like prick, twat (they will get 1 warning point)
Just a suggestion.

mcyates 12-10-2004 10:57 AM

Also could you add something like this so the public can view the banned members with a ling to the post they got the ban for and when the ban expires:

https://vborg.vbsupport.ru/showthread.php?t=70293

Or will this already work in parralel with this hack?

sv1cec 12-10-2004 01:43 PM

Quote:

Originally Posted by mcyates
Just query about the atomatic arwings when people post words which are in the censored list. You say you can't prove they said what they said as it replaces the words with **** or whatever symbol you use.

Could you just not make another field (or text box) which the automatic warnings run from? Instead of using the words listed in the censored list, have a warning list and when someone types in a word which is in the warning list, they get warned and the words they typed are still shown as they are not censored.

ALSO you could have (if you want) 3 different boxes for the sevearily of the word.

For examply,

Very Very naughty words: (type words in the box, if uses types in one of the words he gets 5 warning points)

Naughty words: (type words in the box, if uses types in one of the not so nautghy words he only gets 2 points)

Not so naughty: like prick, twat (they will get 1 warning point)
Just a suggestion.

All these could be done, but with lot's of coding. At the moment, I am just trapping the censored words, by just comparing the messages, before and after they are parsed by the vB's routine. If they are different, then the user typed bad words, so I issue the warning. If I were to code everything from the beginning, it would take me months (or who knows, weeks? days? hours?).

We'll see, you never know.

But what I wrote before, that I do not know what the user wrote, is not true. If you activate the Automatic PM Warning option, you will see that it adds a report to your AdminCP, in which you can see the original text, as it was typed before being censored. I do not do the same in the simple posts, because it is obvious that whatever got replaced by **** was a bad word. The PM goes from one user to another, the rest of us, do not see it.

Rgds

sv1cec 12-10-2004 01:51 PM

Quote:

Originally Posted by mcyates
Also could you add something like this so the public can view the banned members with a ling to the post they got the ban for and when the ban expires:

https://vborg.vbsupport.ru/showthread.php?t=70293

Or will this already work in parralel with this hack?

You are obviously trying to make me come up with version 3.0???

That's a nice hack, but I agree, it should work with the original userban table, there is no reason to have another one. If you want to store details, such the reason for the ban or the URL that got that person banned, it can be done with extra columns in the original table. Also, it will not work with AWS, because AWS is using the userban table and I do not plan to alter it to use another one (redundancy, I hate it).

This is an interesting idea. Maybe next week. The weekend I am too busy taking care of the twins. At the moment, one of them is sitting in my lap (the other one is still asleep), playing with the Sun's keyboard, which has exceeded its buffer and is beeping every time he presses a key. He really enjoys it!! When they are both awake, I have to go!!! LoL

Rgds
---------
John


All times are GMT. The time now is 02:08 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.01766 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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