Web hosting colocation - CHAPTER 11 MODIFYING PHPBB 343 Listing 11-7

CHAPTER 11 MODIFYING PHPBB 343 Listing 11-7 shows an example of using message_die(), excerpted from viewtopic.php. Listing 11-7. Using message_die, from viewtopic.php sql_query($sql)) ) { message_die(GENERAL_ERROR, “Could not obtain topic information”, ‘’,. __LINE__, __FILE__, $sql); } . . . ?> In Listing 11-7, viewtopic.phpis trying to perform the first part of the query to the database. If this step fails, phpBB produces a General Error message, which notifies the user that topic information could not be identified, and gives the line of the file in which it failed, as well as the offending SQL statement. This permits the user to give debugging information to the developer. I recommend copious output of details in your error messages, as this can be of immense help to you as you work through creating your modifications, particularly if they are relatively large. Releasing Your Modifications to the Community An open-source community is only as successful as the quality of contributions it receives. While it is ultimately your call, I strongly encourage you to release any original modifications you make to the phpBB community at large. With your modifications released to the community, you help to cultivate the evolution of phpBB even further. Your work can receive criticism and enhancement. Plus, you never know when one of your features may be adopted in a future release! Here, I will give some pointers on how to release your modification to the community at large. Using the Hack Template The phpBB Group offers a hack template, which encourages consistency in each hack s installation instructions. You more than likely have noticed this template in the hacks you have browsed and installed. The consistency goes a long way toward opening the hack community to more and more people. Listing 11-8 shows an example of a hack documented with the template. This hack will lead you through making two small modifications to the lang_main.php file for the English language pack.
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

Leave a Reply