vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Censorship with Mobile API (https://vborg.vbsupport.ru/showthread.php?t=283733)

Bundschuh 05-31-2012 08:19 AM

Censorship with Mobile API
 
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:
Code:

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


All times are GMT. The time now is 11:42 AM.

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.01020 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete