Hi guys. I'm trying to write a mod to do a pretty simple task. However, I've never written a PhpBB mod before, and I can't find any good tutorials/documentation about how to even start the process. I should note, however, that though I've never written a mod for PhpBB, I do have a fair bit of experience with PHP and have written plugins for Wordpress and other software.
So, I've written a script that migrated all my Wordpress users over to PhpBB. However, Wordpress doesn't store IP addresses, so I now have about 900 members all with an IP address of 0.0.0.0. I want to remedy this so that (a) I can use the ban-by-ip feature and (b) so that I don't have to worry about other members of the staff accidentally banning half the forum members!
My thoughts on how to do it are pretty simple: On login, check if the logged IP address is 0.0.0.0. If it is, then set it to be the users current IP address, and move on as normal.
I found some documentation about the DBAL and how I can use the update function to make changes to entries in the table, but I can't figure out how a Mod is actually put together.
So, are there any clear samples of a "bare bones" mod that I can look at?
Also, how can I have my function triggered when the user logs in? I'm used to Wordpress' hook system, so that's where I looked in phpbb, but I'm not entirely sure that's the right course.
Thank-you very much!