I did post this over on the Xenforo forums but I think I'm likely to get a more appropriate answer over here as it's more of a design/structure based query.
I currently have a website which builds upon our vbulletin installation (manually checks that you're logged in, creates pms through the database etc). I've been planning for a long time to do a re-code for the site as I wanted to make it OOP and even started something in that respect.
However in recent weeks I've been thinking about using a framework for it. I'm heavily considering using a xenforo license I've just bought and interacting with that instead of Vbulletin. So the Zend Framework would be the natural choice considering that is what xenforo uses. Though I understand it'll be a steep learning curve.
The thing I'm trying to work out at the moment is the best way to structure it all. Currently we have a subdomain (forums) which just points at a sub directory with all the vBulletin code inside it.
I'd want to continue to do this (having a subdomain point at the forums) but structurally to me it doesn't make sense if libraries are put into this subdirectory seeing as I'd want to use those libraries for the rest of my site and it certainly doesn't make sense to have the Zend library twice lol. This is because the way it comes by default the libraries are within the web root:
and the index.php routes it through the library files.
So the normal way I would imagine would be to just stick all of the xenforo code into a forums sub folder. But then if I want to make use of the libraries (Zend or XenForo) then I would need to do so through the forum directory. I also need to keep in mind the upgrade process for the forum code. I don't mind uploading code to multiple places but I wouldn't want to have to keep making manual changes every time I do an upgrade.
Basically I'm just looking for a bit of advice on the best way to try and structure it.