mcwacko Posted March 23, 2009 Posted March 23, 2009 HI I AM A REALLY NOOB CODER BUT ALSO NEW I WOULD LIKE A SHOUTBOX ON MY WEBSITE WHICH IS MCCODES V2 ANYONE THINK THEY COULD HELP ME WITH ONE??? :? Quote
Karlos Posted March 23, 2009 Posted March 23, 2009 Re: [MCV2]SHOUTBOX[MCV2] http://www.iamwicked.net/mods.php?page=free Quote
Dave Posted March 23, 2009 Posted March 23, 2009 Re: [MCV2]SHOUTBOX[MCV2] http://www.iamwicked.net/mods.php?page=free Remember kids... this mod needs protection from injections :) Quote
Sparkz Posted March 29, 2009 Posted March 29, 2009 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']); Quote
(((TOLK))) Posted March 29, 2009 Posted March 29, 2009 Re: [MCV2]SHOUTBOX[MCV2] Is there anything you can do to hide the shoutbox Quote
DELETE ME NOW! Posted March 29, 2009 Posted March 29, 2009 Re: [MCV2]SHOUTBOX[MCV2] http://www.iamwicked.net/mods.php?page=free Remember kids... this mod needs protection from injections :) Your still a kid your self :P Quote
DELETE ME NOW! Posted March 29, 2009 Posted March 29, 2009 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. Quote
seanybob Posted March 31, 2009 Posted March 31, 2009 Re: [MCV2]SHOUTBOX[MCV2] There's a v2 shoutbox here: http://seanybob.net/index.php?act=mccodes Quote
RedQueen Posted March 8, 2010 Posted March 8, 2010 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 Quote
Renkia Posted March 13, 2010 Posted March 13, 2010 I Have a shoutbox for V2. Add me and ill keep having a look around my computer. MSN: [email protected] Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.