35mm
02-25-2013, 04:11 PM
Hi all, It's been a while! I'm developing a large site in Codeigniter and want to integrate vB into it. The first rough development of the site I hand coded without a framework, and got the full integration I was after i.e. member registers to main site, and is automatically registered on vB too. Member logs into main site and is automatically logged into vB too. Main site header and footer are displayed on vB pages. Basic site functionality such as message alerts work on vB pages too. It all looks and behaves like one site. I only want to use vB for it's forums as the site has it's own private messaging system, profiles etc.
My hand coded dev simply includes the site's main functions.php in vB's global.php and starts a site wide session. I redirected vB's register, login, profile, messaging etc links to the features on the main site. vB's DB tables are within the main site's DB (shared DB). The main site uses the same password / salt hashing as vB and when a user registers it creates a member account in the main site DB tables and duplicates it in the vB tables. It would be more efficient for the site just to use the vB user table, but I don't want the site to be reliant on vB in any way - more the other way round - hence two lots of user tables.
I'm new to Codeigniter, but I'm enjoying working with it. I've been using vB forums for many years now and vB is my forum system of choice, so I don't want to switch to another forum system for this and future projects if I can help it. I'm currently working with vB4.x but am posting here because I'll be upgrading in due course.
So the question is, what's the best way to integrate? Can I include a Ci model in vB globals.php? Would I have to build some kind of bridge between Ci and vB? I could include header and footer with ajax if needs be, but I'd rather include them properly via php and vB's plugin system as I did with the hand coded dev. How best to do this with Ci/vB?
My hand coded dev simply includes the site's main functions.php in vB's global.php and starts a site wide session. I redirected vB's register, login, profile, messaging etc links to the features on the main site. vB's DB tables are within the main site's DB (shared DB). The main site uses the same password / salt hashing as vB and when a user registers it creates a member account in the main site DB tables and duplicates it in the vB tables. It would be more efficient for the site just to use the vB user table, but I don't want the site to be reliant on vB in any way - more the other way round - hence two lots of user tables.
I'm new to Codeigniter, but I'm enjoying working with it. I've been using vB forums for many years now and vB is my forum system of choice, so I don't want to switch to another forum system for this and future projects if I can help it. I'm currently working with vB4.x but am posting here because I'll be upgrading in due course.
So the question is, what's the best way to integrate? Can I include a Ci model in vB globals.php? Would I have to build some kind of bridge between Ci and vB? I could include header and footer with ajax if needs be, but I'd rather include them properly via php and vB's plugin system as I did with the hand coded dev. How best to do this with Ci/vB?