![]() |
|
![]()
![]()
![]()
![]()
![]()
![]()
|
![]() How to: Block Spambots for phpBB
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
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 … |
|
© Copyrights DSDexigns.Com 2008 | Powered Wordpress 2.5.1 | Flavored Shades By Andy D. Hajime | Proudly Hosted Pacific Asia Technologies DSDexigns by Andy D. Hajime is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License. Views, Contents, Elements and Usage of DSDexigns.Com are based on your agreement to our Terms of Use and Policies. |
|