Helpful Information
 
 
Category: vB5 Programming Discussions
Cocdeigniter vB integration

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?

Sorry I have nothing to add, unfortunately... I have a question, though

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.

I am looking to do this with my new VB5 site and wondering if you have any tips?

I gave up messing about trying to integrate vB in Ci and built my own forum system in CI. I've coded forums before by hand, but it's much quicker and easier in CI and there are no compromises - it works the way I want, has the features I want, isn't bloated with features I don't need, and it's light weight and efficient. My site uses HTML5 Boilerplate (http://html5boilerplate.com/) and Twitter Bootstrap (http://twitter.github.com/bootstrap/) (see ci hb5 and bootstrap combi here (https://github.com/vesparny/codeigniter-html5boilerplate-twitter-bootstrap)) so my forums do too which means I don't have to waste any time on restyling and it looks and works great on mobile devices too. To be honest, although my forum isn't completely finished yet, it has taken less time to make than it took to integrate vB into the hand coded development of my site. In fact I actually spent more time searching the web for how to integrate vb with CI than I spent building my own forum system! So I'd recommend you have a go at building your own - you'll find it very rewarding! I used 1 x model, 3 x views and 1 x controller. My site uses CKEditor (http://ckeditor.com/) and HTMLPurifier library (http://htmlpurifier.org/) so my forum makes use of those too. My only issue now is that I have a vB license going spare.

Nice.

How do you find these nice libraries? I find when I search for stuff like that I need to wade through tons of outdated crap.

ha ha I found them by wading through tons of outdated crap! :)

google needs to add a "Recency" filter










privacy (GDPR)