Jump to content
MakeWebGames

Recommended Posts

Posted
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 =]

Posted
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.

Posted

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%

Posted
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

Posted

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. :)

Posted
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.

Posted
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

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...