I'm developing a site and the original plan was to have a registration system for the main site that allows users to post reviews. I'm also going to be using vBulletin for the forum. This has me now thinking that I probably should just use the forum registration system for the main site. I don't want a portal and in fact I don't want the main site to have statistics from the forum on it (such as latests posts, etc). The only thing I want to integrate would be the registration system so tha the users can log in and use the main site. I may also integrate a number of users online (not a who's online, though). How hard would this be to do? Thanks.
Just ensure to require_once 'path/to/forum/global.php'; on every PHP file outside of the forums directory, so to tie it in with the forum system.
Thanks but that royally screws up my main site, especially if the board is turned off. Is there an easier way to get the login code only? I want to be able to put a small phrase that tells them they aren't logged in. Thanks.
Thanks but that royally screws up my main site, especially if the board is turned off. Is there an easier way to get the login code only? I want to be able to put a small phrase that tells them they aren't logged in. Thanks.
If you want to base login's on your main site soley on cookies it is easier to do. If you want to mimic vB's way exactly your are going to have to get creative with your main site. Your going to have to deal with the session hash for instance.
If you want to base login's on your main site soley on cookies it is easier to do. If you want to mimic vB's way exactly your are going to have to get creative with your main site. Your going to have to deal with the session hash for instance.
Well I don't want them to register on the main site, I can provide a simple link to that. I just want them to be logged in before they can post a review. In fact, they don't even have to login on the main site, they can login on the forums but when they visit the main site, I want the main site to be able to tell whether or not they are logged in, and if they are, then allow them to do whatever they need, and if not, then post a link to the forums. I hope that makes sense. If so, how hard would it be to do this? Thanks.
Take a look at the HTML for the login box on the VB page. You should be able to duplicate this code on your page and it will allow you to log in using vb.
Thanks nexialys, but the problem with that link is that it uses global.php and that interacts with the forums which means if the forums are turned off then it shows that huge vBulletin box on main page and I don't want that.
@SteveMoody: I'll take a look at it and see what I can find. Thanks!
Perhaps I'm not looking in the right place, but where would I find the HTML login code for vBulletin? I've looked in index.php and the FORUMHOME template and didn't find it in either. Am I just not looking in the right place? Thanks.