Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-28-2010, 04:07 PM
hotslot's Avatar
hotslot hotslot is offline
 
Join Date: Mar 2010
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Does anyone know how to censor entire sentences ?

I understand the censor tool in vbulletin admin sucks and only lets you do like 1 word at a time and eliminates it from all threads.. I'm looking to edit a predefined sentence that occurs on all my threads.
Reply With Quote
  #2  
Old 10-28-2010, 04:39 PM
mmfgamer5 mmfgamer5 is offline
 
Join Date: Mar 2010
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try wrapping it in {}.

{SENTANCE}.

I'm doubt it will work, but it's worth a shot.
Reply With Quote
  #3  
Old 10-28-2010, 05:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can try something like this:

hook location - postbit_display_complete

PHP Code:
$word = array(
'word 1',
'word 2',
);
$link = array(
'new words 1',
'new words 2',
);
$this->post['message'] = str_replace($word$link$this->post['message']); 
Reply With Quote
  #4  
Old 10-28-2010, 06:43 PM
hotslot's Avatar
hotslot hotslot is offline
 
Join Date: Mar 2010
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mmfgamer5 View Post
Try wrapping it in {}.

{SENTANCE}.

I'm doubt it will work, but it's worth a shot.

Tried that

Nope doesn't work.

It's the $100 question right now.

--------------- Added [DATE]1288295059[/DATE] at [TIME]1288295059[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
You can try something like this:

hook location - postbit_display_complete

PHP Code:
$word = array(
'word 1',
'word 2',
);
$link = array(
'new words 1',
'new words 2',
);
$this->post['message'] = str_replace($word$link$this->post['message']); 
I will try that now thanks!

--------------- Added [DATE]1288297327[/DATE] at [TIME]1288297327[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
You can try something like this:

hook location - postbit_display_complete

PHP Code:
$word = array(
'word 1',
'word 2',
);
$link = array(
'new words 1',
'new words 2',
);
$this->post['message'] = str_replace($word$link$this->post['message']); 
I think that would work however would the "word 1" have to be in BBCODE or HTML ?

Regards

alan
Reply With Quote
  #5  
Old 10-28-2010, 11:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may enter html in there, but not bbcode. It has to be what is in the parsed template.
Reply With Quote
  #6  
Old 10-29-2010, 12:22 AM
hotslot's Avatar
hotslot hotslot is offline
 
Join Date: Mar 2010
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You may enter html in there, but not bbcode. It has to be what is in the parsed template.

Thanks Lynne, I'm using the hook and html code but its still not working.. When I think its close I get an error wont load the thread. Can I pm you with extra details ?

warm regards
Reply With Quote
  #7  
Old 10-29-2010, 01:06 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hotslot View Post
I understand the censor tool in vbulletin admin sucks and only lets you do like 1 word at a time and eliminates it from all threads.. I'm looking to edit a predefined sentence that occurs on all my threads.
Because it wont block an entire sentance is hardly a valid reason to say it sucks. Word censors are just that, designed to censor words. Ive never come across anyone that needs to do such a thing (or indeed, a forum software designed to do it).
Reply With Quote
  #8  
Old 10-29-2010, 01:37 AM
hotslot's Avatar
hotslot hotslot is offline
 
Join Date: Mar 2010
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Because it wont block an entire sentance is hardly a valid reason to say it sucks. Word censors are just that, designed to censor words. Ive never come across anyone that needs to do such a thing (or indeed, a forum software designed to do it).
I have to disagree. There is many times when "spam" words like Click Me or Try for Free should be censored. You don't want to censor the basic word all over the forum but if added together You would.
Reply With Quote
  #9  
Old 10-29-2010, 02:22 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post the code you are using so we can see what is going on.
Reply With Quote
  #10  
Old 10-29-2010, 03:41 AM
hotslot's Avatar
hotslot hotslot is offline
 
Join Date: Mar 2010
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Post the code you are using so we can see what is going on.
PM sent :up:

--------------- Added [DATE]1288331351[/DATE] at [TIME]1288331351[/TIME] ---------------

It could always be done in the Replacement Variable Manager. Problem with that is You can only do about 5 words tops at once. Is that a safe and affective way of doing so though ?
Reply With Quote
Reply


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 02:11 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.04977 seconds
  • Memory Usage 2,268KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_php
  • (7)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete