Jump to content
MakeWebGames

Recommended Posts

Posted

Re: [MCV2]SHOUTBOX[MCV2]

can someone edit it to fix with crazy-t's spam filter

Under that add

function filter_badwords($filter)

{

global $c;

$sql = mysql_query("SELECT `bad_words` FROM `tpl_badwords`", $c) or (mysql_error());

$row = mysql_fetch_array($sql);

$wod = explode(", ", $row['bad_words']);

foreach ($wod as $new)

{

$filter = str_replace(trim($new), "***", $filter);

}

return $filter;

}

Now in the function called, mail_send()

Find:

$subj replace with $subj = filter_badwords($_POST['subject']);

Under that find: $msg replace with $msg = filter_badwords($_POST['message']);

Posted

Re: [MCV2]SHOUTBOX[MCV2]

 

can someone edit it to fix with crazy-t's spam filter

Under that add

function filter_badwords($filter)

{

global $c;

$sql = mysql_query("SELECT `bad_words` FROM `tpl_badwords`", $c) or (mysql_error());

$row = mysql_fetch_array($sql);

$wod = explode(", ", $row['bad_words']);

foreach ($wod as $new)

{

$filter = str_replace(trim($new), "***", $filter);

}

return $filter;

}

Now in the function called, mail_send()

Find:

$subj replace with $subj = filter_badwords($_POST['subject']);

Under that find: $msg replace with $msg = filter_badwords($_POST['message']);

All you have to do is add that in shoutbox, and then when a message is enterted like i just looked at the code put

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

But you got to fix it in there.

  • 11 months later...
Posted

is there any free shoutbox available for mcv2? i been looking but seems all that were available are no longer n i was so hopin to have a shoutbox instead of a chat for my place

any and all help is as always greatly appreciated

thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...