PDA

View Full Version : Censorship with Mobile API


Bundschuh
05-31-2012, 08:19 AM
Hello,

in admincp I have activated the censorship and added some bad words to the list.
If a new post is created all bad words are replaced with the *-char (default).

Is it possible to reject the post request and list all words to the user which he has to remove from his message to be able to send his message?
I couldn't find any option to set.

Using the mobile api methode "newthread_newthread", I will get an error in the postpreview node:

array(2) {
[0]=>
string(11) "censorfield"
[1]=>
string(60) "sendmessage.php?api=1"
}"
}

The message will not be posted but I can't give the user the information which words are forbidden.

Summarized again, I need to know if
1. there is a way to return/show the forbidden words entered in admincp to the user with the api response
2. there is an mobile api method to get all forbidden words

Thanks in advance. Greetings.
Bundschuh

Bundschuh
06-05-2012, 10:26 AM
I've found an existing mod for rejecting post with bad words:
https://vborg.vbsupport.ru/showthread.php?t=255546

But this mod doesn't returns the info to the user which words he should correct to post reply.
I think I have to come with my own approach on this.

Greetings
Bundschuh