session management is a huge thing, that is deeply integrated into a bunch of different files ( functions.php, auth.php, the different dbals and template files....)Kjtocool wrote:No mod will do all of what I want, so I need to heavily modify something. I like doing it all from scratch simply because it lets ... or forces ... me to learn what everything is doing. Thus when changes are needed or additional functionality critical, I'm not held hostage by a mod that i don't fully understand.
As for not needing the standalone ... that may be true if I was going to use phpbb as my root, but I'm not. The site will look like:
So essentially ... the forum will have it's own template engine, and the main site will have a simplified and streamlined version. They will be partially integrated, but disparate systems. There are many benefits to this, the main being a complete reduction in code bloat. I don't need a lot of what's included in common.php, I don't even need a lot of what's included in the template classes. So I'll remove it, have a much simpler and smaller code base to include, and it will make development that much easier. This way I can basically keep the two systems running separately, with the only true integration point being session management and leveraging the forum's database to house registered users, which was the goal. The other key gain is I can now use their template engine apart and independent of the forum's engine.
Seconded, what I've done was extended the base class into my own DBAL - Its parameter binding is awesome, which I utilise in my own private phpBB mods sometimeseviL<3 wrote:You may be interested it PDO, the database abstraction layer that comes with PHP5.
I'd like to see the sessions class you got from phpBB. If you could make this available to look at id be very grateful.
I currently use the dbal as well. The dbal + templating system makes quite a good simple framework i've found.
The only addition i have made to the dbal is so that by default it returns objects from the database instead of an array.
Well done phpBB!
I created the sessions class for my personal use. The thing was that the phpBB sessions class had a lot of stuff I did not need, so i created my own instead. I am in the process of doing a bit of a start up and releasing different pieces of software that will use user management, so I'll just plug this in, and done.nanothree wrote:just out of interest what benefits does your session class bring?....