Tip of the Week

Friday, April 4th, 2008

Here's the 'tip of the week'! (Even though there hasn't been a new post in weeks :P) Do you want to display item/unit/building information on your PBBG, but find that your tables are getting too big, and your divs are cluttering up the page? Use tooltips to display this information in ...

Formatting User-Submitted Text

Sunday, March 2nd, 2008

If you are a PHP and/or a PBBG developer, then I'm sure you know about the problems associated with user-submitted text. If not sanitized properly, your website could be the victim of XSS attacks and SQL injections. In this article I will discuss what methods I use to protect my ...

Tip of the Week

Wednesday, February 13th, 2008

Do you use the header() function to redirect users? Here's a little tip: use the exit statement right after you redirect. Why? Imagine this: You have some code that runs after the redirect (the user was redirected because he did not have the correct permissions to view the page), and that code ...

What a PHP Developer Needs

Thursday, January 10th, 2008

What does a PHP developer need? Especially for coding PBBGs? In this post I will list some tools, services and scripts that I use, and some that I should use. It's your choice to use them as well or not, but I find them to be extremely helpful. The tools ...

Using the Keyboard for Map Movement

Wednesday, January 9th, 2008

This is just a little snippet of code I used to use on one of my games that had a map to explore. If you also have a map in your game, and if you don't support keyboard movement, shame on you! Playing with keyboard movement is much easier and funner ...