more on portfolio









August 2008
M T W T F S S
« May «-»  
 123
45678910
11121314151617
18192021222324
25262728293031






 

How to: Block Spambots for phpBB

Log entry of March 22nd 2008 06:51:05 pm
Filed under: How To, PHPbb, PHPbb Mods, phpBB Related
This is a clever idea in blocking spambot for phpbb 2 (for phpbb 3, click here).

It was posted by jalaln, a member from phpbb community. This modification is to block registrations from timezone GMT-12 that is used by almost all spambots.

Here’s the coding: # #—–[ OPEN ]—————————————— # includes/usercp_register.php # #—–[ FIND ]—————————————— # if ( !($row = $db->sql_fetchrow($result)) ) { message_die(GENERAL_ERROR, ‘Could not obtain next user_id information’, ”, __LINE__, __FILE__, $sql); } $user_id = …

How to: Load a template in *.TPL

Log entry of September 4th 2007 08:40:45 am
Filed under: How To, MODs Tip, PHPbb, phpBB Related
Here’s a unique code line that I’ve discovered while fooling around with Phpbb. $template->set_filenames(array(’newfile’ => ‘newfile.tpl’)); $template->assign_var_from_handle(’PASTEFILE’, ‘newfile’); This coding was found while I was editing Function_Post.php inside the Includes folder. Apparently, the script actually calls out another template (eg: SIDEBAR.tpl ) onto a main template( eg: INDEX_BODY.tpl).

You might be lost right now… and be worried cause I’m not explaining.

For those who know how to modify PhpBB internal organs, this code will …