vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   move thread if censor word is in $message (https://vborg.vbsupport.ru/showthread.php?t=51216)

flame 04-05-2003 02:20 PM

move thread if censor word is in $message
 
k, i have this setup it, successfully moves the thread to the set forumid BUT only if the word is the first word in the message field,

Can anyone give me any pointers on how to make this search the whole messgae field if it finds the censorword it then moves the thread to the specific forum (basically for mod approval/editing)

thanks

Flame

Xenon 04-05-2003 03:03 PM

hmm do you want it for every word in the censorship or just for a special one?

if you want it for every word you can compare the message before and after censoring, and if they are different move the thread

flame 04-05-2003 09:09 PM

Sorry i should have explained myself a bit more, all my forbidden words are replaced with ***forbidden*** so basically i would like the script to check for that word if found then its moved to admin approval forum, at the moment its only finding word if it like this

***forbidden*** etc bah blah

not in this context

there is a ***forbidden*** word in this sentance

Hope this helps

Flame

Xenon 04-06-2003 11:00 AM

use the strstr function of php :)


All times are GMT. The time now is 10:04 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.00906 seconds
  • Memory Usage 1,706KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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