vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User-Selectable Optional Language Replacement Censor (https://vborg.vbsupport.ru/showthread.php?t=53640)

Chris M 05-31-2003 06:17 PM

Well surely you would just have:

Code:

// User-Selectable Optional Language Replacement Censor by 006
if ($bbuserinfo[usecensor]!=0 or $bbuserinfo[userid]==0) {
$bbcode=eregi_replace("wordtocensor","replacewith", $bbcode);
$bbcode=eregi_replace("wordtocensor","replacewith", $bbcode);
}
// User-Selectable Optional Language Replacement Censor by 006

I have a few suggestions for the next version if I may?:)
  • List of censored words
  • User can add their own words
OR
  • List of censored words
  • User can suggest words to be censored

:)

Satan

007 05-31-2003 06:20 PM

Fixed. I also noticed that vb.org was parsing the replacement values, so I changed the install file to .php.

To answer your question before. The else isn't really necessary... (edited. I took it out. My bad!) :)

Chris M 05-31-2003 06:21 PM

Ok, but IMO having an }else{ statement for nothing seems wasted;)

Luckily, in the .txt file I downloaded, the replacements were OK, it was just because I copied them from the .txt file into my post;):)

Satan

007 05-31-2003 06:23 PM

I took it out now. I originally had something in there but decided it wasn't needed. I see what you meant. lol

*Wonders what he was thinking*

007 05-31-2003 06:28 PM

Quote:

Today at 02:17 PM hellsatan said this in Post #11
I have a few suggestions for the next version if I may?:)...

As much as I hate to hardcode variables it was my only choice because I don't know any other way to do it. If you want to do that feel free and PM me and I will update the install file.

You'd get credit of course. :)

Chris M 05-31-2003 06:29 PM

Not to be a pest, but you made another typo;)

in registeradult:
Code:

<normalfont><b>se language filter?</b></normalfont>
=
Code:

<normalfont><b>Use language filter?</b></normalfont>
:)

Satan

Chris M 05-31-2003 06:30 PM

Quote:

Today at 08:28 PM 006 said this in Post #15
As much as I hate to hardcode variables it was my only choice because I don't know any other way to do it. If you want to do that feel free and PM me and I will update the install file.

You'd get credit of course. :)

Ok sure:) I'll have a tamper around and see what I can come up with:)

Satan

007 05-31-2003 06:38 PM

Fixed the typo.. lol

You're killing me man.. j/k lol :)

Thanks! :p

Chris M 05-31-2003 06:49 PM

It works very well:)

Maybe thread titles could do with it as well;)

And i'm working on the list thing;):)

Satan

007 05-31-2003 07:25 PM

Quote:

Today at 02:49 PM hellsatan said this in Post #19
Maybe thread titles could do with it as well;)
Satan

I see what you mean.. Which file are thread titles censored? I' sure there is a way to make this also work with the standard censoring feature to, but for now you just have to turn it off...

I will look into that. Good idea.


All times are GMT. The time now is 12:41 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.01132 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete