Posts Tagged “freelancing”

Have been doing a little freelance lately, mainly involving integrating new functionality with phpBB.
Using the existing code speeds up development and minimizes redundant code. Below is the code needed to use the default database object in phpBB.

define('IN_PHPBB', true);
$phpbb_root_path = './../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
 
$sql = "SELECT * FROM " . A_TABLE . "
			WHERE rank_special = 1
			ORDER BY a_title";
if ( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR,
	'Could not obtain ranks data', '', __LINE__, __FILE__, $sql);
 
}
else echo "Query successsful";
Tags: ,
Warning: Division by zero in /home/content/p/r/o/project00/html/blog/wp-content/plugins/geshi/geshi.php on line 2310

Warning: Division by zero in /home/content/p/r/o/project00/html/blog/wp-content/plugins/geshi/geshi.php on line 2310

Warning: Division by zero in /home/content/p/r/o/project00/html/blog/wp-content/plugins/geshi/geshi.php on line 2310

Warning: Division by zero in /home/content/p/r/o/project00/html/blog/wp-content/plugins/geshi/geshi.php on line 2310

Warning: Division by zero in /home/content/p/r/o/project00/html/blog/wp-content/plugins/geshi/geshi.php on line 2310

Warning: Division by zero in /home/content/p/r/o/project00/html/blog/wp-content/plugins/geshi/geshi.php on line 2310

Warning: Division by zero in /home/content/p/r/o/project00/html/blog/wp-content/plugins/geshi/geshi.php on line 2310

Related posts:

  1. phpBB mod uninstallation – tedious I was experimenting with phpBB (a PHP-based forum board) recently and was doing some mod...
  2. Syntax Highlighting with GeSHi and csh_geshi plugin Pasting code in Wordpress is not an easy task, Wordpress will tend to mess it...

Comments 1 Comment »

I was experimenting with phpBB (a PHP-based forum board) recently and was doing some mod installation via easyMOD. It was a breeze, though you have to watch out for occasional errors. Manually installing a large number of mods, backing up can be a real pain. You also have to careful and not screw up. Here’s what they have to say about installing mods safely.

Installing a mod, whatever size it is and whatever your skills in HTML/PHP/phpBB are is always a very risky operation. Doing it live, even if the mod has no bugs and even if you use easyMOD to be sure to make no errors while applying a mod sounds so like a little crazy.

If you’re going to manually uninstall mods, you might go a little crazy. Uninstalling via easyMOD is somewhat easier, but you have to take note of the order that the mods were installed, as the changes are applied in a stack-based fashion, first-in-last-out.
What this means is that you have to carefully consider what you are going to install and in what order to install them. If you have installed 10 mods and want to uninstall the 3rd mod (based on time of installation), then you have to do 7 un-installations and 6 installations. Yeah, that’s tiring. I’m guessing this can be automated though.

Tags: ,

Related posts:

  1. phpBB forum – using the default DB object Have been doing a little freelance lately, mainly involving integrating new functionality with phpBB. Using...
  2. Maven2 – installing 3rd party JARs Have a little time these few days, trying to get familiarised with Maven2. Not for...
  3. Installing PHP 5.2.5 on Windows XP for Tomcat 6.0.13 – Issues resolved I was playing around with the idea of doing a small personal PHP project, and...
  4. Sitex 2007 Needed to get some computer stuff, so hopped down to Sitex to pick up some...

Comments 1 Comment »