Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 06-14-2005, 09:59 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Willard Reece
Create a new setting and call it flagwords. where?
explain more please
In the vBulletin Options - where exactly is up to you to decide
I'd most likely place it in Censorship Options.
Reply With Quote
  #12  
Old 06-14-2005, 10:27 PM
Willard Reece Willard Reece is offline
 
Join Date: Aug 2002
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
In the vBulletin Options - where exactly is up to you to decide
I'd most likely place it in Censorship Options.
your saying add the name flagwords to the Censorship Options without the {} and save it and edit functions_newpost.php
and that should do it?
or please show an example of what your saying.....

whats throwing me off is you said create a new setting
Reply With Quote
  #13  
Old 06-14-2005, 10:39 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, create a new Setting:

Open the Setting/Option Group where you want it to appear and click Add Setting.
See screenshot.

Please note that debug mode must be turned on to add new settings.
Attached Images
File Type: png setting1.png (30.9 KB, 0 views)
Reply With Quote
  #14  
Old 06-14-2005, 10:53 PM
Willard Reece Willard Reece is offline
 
Join Date: Aug 2002
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where do I turn on debug.... thought I knew but guess not
Reply With Quote
  #15  
Old 06-14-2005, 10:58 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
$debug 1
in config.php
Reply With Quote
  #16  
Old 06-14-2005, 11:02 PM
Willard Reece Willard Reece is offline
 
Join Date: Aug 2002
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The bold below causes a file error when adding a thread

Warning: strpos(): Empty delimiter. in /includes/functions_newpost.php on line 313



if (!empty($vboptions['flagwords']))
{
$found = false;
$lcpost = strtolower($post['message']);
foreach (explode(' ', strtolower($vboptions['flagwords'])) as $flagword)
{
$found |= strpos ($lcpost, $flagword); [U] }
if ($found) {
$post['visible'] = 0;
}
}

Quote:
Originally Posted by KirbyDE
Let's say you've specified bad words as the words that should trigger this.
Now a user posts

Then this post will go into the moderation queue.


Sure. Create a new phrase postflagged with appropriate text in phrasegroups Email Subject Text and Email Body Text.
Then place the following code after $post['visible'] = 0;

PHP Code:
eval(fetch_email_phrases('postflagged'$bbuserinfo['languageid']));
vbmail($bbuserinfo['email'], $subject$messagetrue); 

can you also explain this better?
Reply With Quote
  #17  
Old 06-18-2005, 04:08 PM
Byron Byron is offline
 
Join Date: Oct 2001
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am looking for a script to assist moderating.

It will be good if there is a script that can check all new posts and detect words from a list.

If any word from the list is detected, it will send an email to an email address.

This way we can be notified immediately when any sensitive words are in a new post.
Reply With Quote
  #18  
Old 06-21-2005, 08:49 PM
nmorris666 nmorris666 is offline
 
Join Date: Jun 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I am trying this as well. I have the code in the functions_newpost.php, and the flagwords setup. I attached the setup. Any ideas?
Attached Images
File Type: jpg badbad.jpg (51.2 KB, 0 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:35 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.05404 seconds
  • Memory Usage 2,255KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete