Jordan Palmer Posted February 19, 2010 Author Posted February 19, 2010 What did ya do? i'd personally just filter preferences with something like You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then why even bother filtering the output of username (also register should be filtered). Most game's wont have that, So filtering the outputs right now is the best option. At least this way they only have too replace one file =] Quote
Joshua Posted February 19, 2010 Posted February 19, 2010 That preg replace thing I've noticed if you start off with a few letters i.e jsdaha'/.akjafsd it sometimes slips through tho :\ Quote
Zero-Affect Posted February 19, 2010 Posted February 19, 2010 That preg replace thing The preg_match function i used isn't preg_replace but ok, i have been testing and see no issues at all (i don't use the replace because what's really the point, the users wouldn't know their usernames if it stripped half of it away). if coded properly i don't see how anything should slip through. Quote
Joshua Posted February 19, 2010 Posted February 19, 2010 I'll give it a run on Mcaddons someone posted the function formatter isnt defining as well would you need to add $str to the global for each function or perhaps add the formatter function to global_func to make it easier? j/c as i'm not 100% Quote
BludClart Posted February 19, 2010 Posted February 19, 2010 I could only get it to work like this mate,Any reason why? :) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Jordan Palmer Posted February 19, 2010 Author Posted February 19, 2010 Took a look, Fixed it up =] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Jordan Palmer Posted February 19, 2010 Author Posted February 19, 2010 I'll give it a run on Mcaddons someone posted the function formatter isnt defining as well would you need to add $str to the global for each function or perhaps add the formatter function to global_func to make it easier? j/c as i'm not 100% Nope, $str represents the string/value =] Good question though :P Quote
Joshua Posted February 19, 2010 Posted February 19, 2010 Yer I knew that much but I was curious why it wasnt carrying over into the functions themselves >,< again i just kinda glanced at it, :P Quote
Jordan Palmer Posted February 19, 2010 Author Posted February 19, 2010 Yer I knew that much but I was curious why it wasnt carrying over into the functions themselves >,< again i just kinda glanced at it, :P Well I have a working version now so everyone else should have one =] Quote
CrazyT Posted February 19, 2010 Posted February 19, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Build it into one query. Like You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Three queries into one query. :) Quote
Jordan Palmer Posted February 19, 2010 Author Posted February 19, 2010 Didn't think off doing that. Thanks CT =] Quote
Joshua Posted February 19, 2010 Posted February 19, 2010 At the risk of sounding stupid list ($feddedusers, $mailbannded, $forumbannded) = mysql_fetch_row($sql); fetch_row or fetch_array? Quote
CrazyT Posted February 19, 2010 Posted February 19, 2010 Didn't think off doing that. Thanks CT =] Your Welcome. :D At the risk of sounding stupid list ($feddedusers, $mailbannded, $forumbannded) = mysql_fetch_row($sql); fetch_row or fetch_array? mysql_fetch_row() - Retruns a numerical array. And no not $db->fetch_row on mccodes. Quote
Nicholas Posted February 20, 2010 Posted February 20, 2010 i like this recode, had to remove formatter on each line it was on to get it to work. but its a great recode +1 mate. :) Quote
Jordan Palmer Posted February 20, 2010 Author Posted February 20, 2010 i like this recode, had to remove formatter on each line it was on to get it to work. but its a great recode +1 mate. :) Why did you have to remove formatter(); function? It should work. It did for me. I'll have to re-take a look -_- Thank's though Quote
Jordan Palmer Posted February 20, 2010 Author Posted February 20, 2010 I have added a screen shot 8o to prove this script is fully working for me.. 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.