The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Simple vB User login and access control on non vB pages Details »» | |||||||||||||||||||||||||||
Simple vB User login and access control on non vB pages
Developer Last Online: Nov 2011
Hack Description
This is a cutdown version of the user authentication and access control system I use on the non vB pages on my website. This uses the vB 3.5 login system to log you in and out. It allows you to move between your forums and other pages on your site while remaining logged in. It allows you to do things such as restrict pages by usergroup, display different content depending on a user being logged in or not. For example, you can have banner Adds displying to non members only, and/or let members access to specific content. Ive cut it down to the bare minimum that it needs to work, no fancy stuff such as avatars, PM's, or even formating. I will try and offer support, but work and family commitments mean I dont have much free time. This code is a mix of my own, and pieces I have used from other hacks that are floating around. This script has been confirmed as working on
Changelog Version 1.30 (24th April 2007)
Version 1.20 (2nd December 2006)
Version 1.10 (4th Feb 2006)
There is no functionality changes or bug fixes between these 2 releases. Version 1.0 (17th November 2005)
Deluxe Version of this hack is now available Has Avatars, PM's, Number of Posts etc. Click Here Click on Install If you have this script installed then please click on the install link because;
Donations First of all, to be clear. This script is 100% free. However if you feel an urge to donate I'm not going to say no. Donations can be made at http://www.billspaintball.com/vb3/bd_donate.php Show Your Support
|
Comments |
#232
|
||||
|
||||
Updated
Download the update from the first post, and see the 2nd post for additional workarounds for the 404 on Expired passwords and cross domain login issues. |
#233
|
|||
|
|||
This is exactly what I was looking for! One question though, what if I want the user to be redirected to the main page (the non-vb page where the login is) after the login instead of the forums homepage. What would I need to change?
|
#234
|
||||
|
||||
They are redirected back to the page they logged in from.
|
#235
|
|||
|
|||
It's taking me to the forum home page though instead of back to the site's index page. :\ Any thoughts?
|
#236
|
||||
|
||||
I get logged on when I hit the"logon" button on the custom site page. It temporarily redirect me to the VB login.php page and recognizes me and says welcome in the VB splash screen.
It then redirects me back to the page I logged in from with the same login box as if I haven't logged on. If I run the code below on it's own it works properly and takes me back to the page I used for logon and welcomes me without the login text boxes. 1) Any idea what might be causing this, 2) Can you specify where it should redirect to if you don't want to be redirected to the logon page again? Thanks Quote:
|
#237
|
|||
|
|||
Still need some help with this myself. Also, I'm placing this code on all of my external forum pages, and while it shows me logged in on the main one, if I go to another page, it shows up saying I need to login again. Is there something I need to do with the cookies that I'm not aware of?
|
#238
|
|||
|
|||
I'm having problems with 3.6.7 PL1
I'm seeing this at the very top of my external page, but everything else works. Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php(237) : eval()'d code on line 2 |
#239
|
|||
|
|||
Great hack ive installed it.. i just have a small query.. i would like my users to login and be redirected to a custom php file ive made, a page for members at the same time i would like the forum and user login session to be still active...
Cheers! |
#240
|
||||
|
||||
Hello guys,
When I run sample script (test.php), I'm getting an error about headers: I've checked script and there are no spaces before first 4 lines of code. By the way, I see this only when I logged out. When I logged in (through vBulletin), I see this: How can I fix this? PS: I have lastest vBulletin version installed. And the installation is fresh (just one thread). |
#241
|
|||
|
|||
This works wonderfully, but one question. How would I pull the password value out before it gets encrypted? I need that value for my main site's login script which I'm calling from login.php for the forums.
Any ideas? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|