vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Word replacement change (https://vborg.vbsupport.ru/showthread.php?t=211694)

mdawg 04-20-2009 05:32 AM

Word replacement change
 
I understand how the obscenity thing works so that if anyone enters a bad word or word I choose, it changes it to ****
How do I make it so that, say, anytime someone enters a certain word it changes it to another?

Example,
every time someone enters the word
yellow
it changes it to the word
green

etc. +

Lynne 04-20-2009 02:29 PM

Replacement Variables will do that. However, they will work on the whole site, not just in post text.

mdawg 04-20-2009 05:20 PM

I am being advised not to do this with replacement variables. Any other choice?

Lynne 04-20-2009 06:49 PM

Sure, write a plugin (use the postbit_display_complete hook location) that does find and replace - str_replace

mdawg 04-21-2009 04:36 PM

Is there a plugin/mod like that on the site, or has anyone already written one?

Would this plugin also then work for this
https://vborg.vbsupport.ru/showthrea...51#post1794951

mdawg 04-27-2009 06:26 PM

No one has written this plugin?

Lynne 04-27-2009 06:36 PM

Sure it's been written. I've posted an example a couple of times lately as this has been brought up a couple of times lately.

BlueNinjaGo 04-28-2009 01:09 AM

This might be a stupid suggestion, but wouldn't it be possible to make the word you want to replace, be replaced by a smilie?

For example... I had a user abusing the ">_>" face/image.... It started bugging some other users... So i just set an embarrasing smilie text with ">_>" and it changed all the faces retroactively.

Couldn't you, in theory, make an image, upload it as a smilie, and set the replacement text to whatever you wanted?

DragonBlade 04-28-2009 01:12 AM

For Valentines Day on my forum, I -did- make the censorship option a heart "smilie" instead of "*" . XD It was pretty lulzy.

mdawg 05-01-2009 09:14 PM

Quote:

Originally Posted by Lynne (Post 1800078)
Sure it's been written. I've posted an example a couple of times lately as this has been brought up a couple of times lately.

Can you tell me where to find the plugin here? Thanks so much.

Lynne 05-01-2009 09:25 PM

I'm not gonna look for what I posted, instead I just did a search on "replac*" in "all mods" "titles only" and found this which should help you - Word Replacement


All times are GMT. The time now is 05:49 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.01117 seconds
  • Memory Usage 1,727KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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