PDA

View Full Version : vb censor ship on non vb page


Thug
08-15-2005, 09:24 AM
Hi basicaly i was wondering if its possbile to add the censored words on my VB to work on a non VB page aswell
without having to make a new system like whateva words in my vb censorship will not show on non vb

Thug
08-21-2005, 09:57 PM
anyway to doit

sabret00the
08-22-2005, 12:01 AM
theirs a function for it, check the showthread.php/functions_showthread.php :)

Thug
08-22-2005, 08:43 AM
can anyone help me a little more then that
but thanx

Thug
08-25-2005, 03:18 PM
bump

Andreas
08-25-2005, 03:26 PM
$censored = fetch_censored_text('This fucking Text needs to be censored');

Boofo
08-25-2005, 03:28 PM
How did you pull that off, you potty-mouth? ;)

Andreas
08-25-2005, 03:30 PM
Well, if I let the Censor censor the Word (eg. ++++ing), the Example would make no sense, wouldn't it?

Thug
08-25-2005, 03:39 PM
im confused hehe
ok im the thickest guy alive
so someone explain how to set it up and get it working on a non vb page
example i have a index page with the word join and i want it censored
how do i set it up

ok i got http://www.oh-twadi.com/censor.php
that working using

<?php

$badWords = array('Note', 'bush');

function replacebadwords($string,$badword_array) {
foreach ($badword_array as $v) {
$newstring = "";
for($i = 0; $i < strlen($v); $i++) {
$newstring .= "*";
}
$string = str_replace($v,$newstring,$string);
}

return $string;
}

$text = "Note mom is george bush's grandma.";

$text = replacebadwords($text,$badWords);

echo $text;

?>



But how do i get it to work on www.oh-twadi.com page

Boofo
08-25-2005, 04:05 PM
Well, if I let the Censor censor the Word (eg. ++++ing), the Example would make no sense, wouldn't it?

No, it wouldn't. I was just wondering how you bypassed it on here is all.