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
![]() 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 |
#182
|
||||
|
||||
![]() Quote:
https://vborg.vbsupport.ru/showpost....98&postcount=2 |
#183
|
|||
|
|||
![]()
Hi, I baaaack
![]() I have another question: I'd like to lock up an entire page based on vB usergroup, and it seems like there is a problem doing this... here is the error I get: Quote:
Quote:
|
#184
|
|||
|
|||
![]() Quote:
Once I do this, I can no longer login to the control panel. Are there any solutions to this? |
#185
|
||||
|
||||
![]() Quote:
Wrapping the HTML in those tags is fine, however when you wrapped the PHP inside the echo tags everything breaks as you have found out. If your wrapping a mix of HTML and PHO you need it in a format like this. PHP Code:
Hope thats a bit more clear. If your still having problems just post the first dozen lines or so of your page or so. |
#186
|
||||
|
||||
![]() Quote:
|
#187
|
|||
|
|||
![]() Quote:
|
#188
|
|||
|
|||
![]()
Something maybe worth mentioning is that to prevent script issues from happenning(due to path changes) You can do something like this:
Code:
$cwd = getcwd(); chdir('/path/to/your/forums'); require_once('/path/to/your/forums/global.php'); chdir($cwd); |
#189
|
|||
|
|||
![]()
Ok, now I am having trouble with any quotes being used within the document. Is there a way around this? I am using this code on a template, and my client is using quotes, which is causing an error.
Quote:
|
#190
|
||||
|
||||
![]()
Since the chdir code must be first on the page, how do you handle the sending of headers (like cookies)?
|
#191
|
|||
|
|||
![]()
I have a question...
I am using the script in other folders, and it wont then login... For example: Main directory: public_html/ Forum Directory: public_html/forums/ Say I have a page in public_html/support/ The script doesnt login, or logout properly, but If I login to a page before the /support/ directory it works okay. Otherwise only pages in the public_html folder works. Any help? I have changed the codes inserted in the page to reflect the change, (ie. ../forums/login_inc.php) like that. |
#192
|
||||
|
||||
![]() Quote:
|
#193
|
||||
|
||||
![]() Quote:
|
#194
|
||||
|
||||
![]()
Good hack, got it running successfully finally.
But when someone who is banned on my forums is watching the website and is still logged in they get the forum banned message (which doesn't look well). |
#195
|
||||
|
||||
![]() Quote:
|
#196
|
|||
|
|||
![]()
Works perfect on 3.6.0.
I added a little code in the login_irc.php to inform users that they can proceed to the forums. Code:
//Added by Sparky-s 25/08/06 echo "<a href=\"".$forumpath."index.php"; echo "\">"; echo "<font size=\"1\" face=\"verdana\">You may click to proceed to the forums.</font></a> "; echo "<font size=\"1\" face=\"verdana\">You may also </font></a> "; I'm mainly using this as a cover page for users with access masks before they get to the forum. I'm not sure it it has been altered already like this, as I couldn't be bothered reading 14 pages. ![]() I assume I'm allowed edit the login_inc file? Thanks. Sparky |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|