![]() |
How hard would this be?
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. :)
|
This would be very easy to do.
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. |
Quote:
|
Quote:
|
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.
|
Quote:
|
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.
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=61112" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=61112</a>
|
Quote:
@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. :)
|
Quote:
|
Please don't keep bumping the thread :)
|
Quote:
HTML Code:
<!-- login form --> |
Well the problem with that is that after it logs me in, it brings me back to the same page yet asks me to login again showing that I'm in fact, not logged in. This is my problem, maybe I should have been more clear. Any suggestions on that? Thanks. :)
|
Adding the login HTML to your non vb page will do that, i would add the globals.php includes and code from there. But thats me.
|
Quote:
|
Quote:
|
Quote:
|
this is just an idea couldnt you edit the area where vbulletin shows the closed message and make it exclude certain files, since the files should be following standard setup you can use THIS_SCRIPT and if THIS_SCRIPT is in a certain array then the closed message wont appear.....
|
got this working as long as THIS_SCRIPT is defined you can choose which files receive the closed error message and which dont, so say you had a poetry site but still wanted users to be to view poetry well if the forum was closed before selective file was added they would receive the error message also but now they can view the poetry with just a prompt(the same as the admin gets) at the bottom and top of the screen saying "Alert: The forums are currently turned off!". so basically you can choose what sections not to close off on your site when the forums are closed:)
i think ill release this as a hack:) |
i have release it here: https://vborg.vbsupport.ru/showthread.php?t=70444
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
All times are GMT. The time now is 12:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|