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.6 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.10 (24th April 2007)
Version 1.0 (2nd December 2006)
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 |
#152
|
|||
|
|||
This hack looks like it will work for my site, but before I try it, will it work with version 3.6.8?
|
#153
|
|||
|
|||
ok we have a version that will allow someone of a certain primary group to see the page like this:
<?php if ($vbulletin->userinfo['usergroupid'] == '6' ) { echo "This is only visible to people in usergroup 6";} ?> has anyone worked out how to do it with a secondary group? i.e. if they are members of 3 or 4 groups and the page is available to them as a secondary member?? |
#154
|
|||
|
|||
Quote:
I have vbexternal, tried this fix but it still just redirects me back to the page after logging in and instead of it showing I am logged in, it shows the log in box. I have also checked my cookie settings as well. Running 3.6.8 Anyone know how to get it to work correctly? |
#155
|
|||
|
|||
I'm having problems with this.
I have my forums at domain1.com/forums/ and a site at site1.com I've followed all the instructions and everything and its not working correctly. If I clear my cookies, I login and it redirects me to site1.com and shows me as logged in however in the address bar there is ?s= then the long session ID string. If I navigate to another page, this goes and I'm logged out. Any idea whats going on here? I'm pulling my hair out over this! The connection to the vB files is working, the redirect is working, but it is not setting the cookies correctly. I've tried the cookie domain as blank, .site1.com, .domain1.com and its just not working. It keeps me logged in on the forums, just not the site. I've got root access so can modify any settings if needed (however I don't think its server-side related). Thanks for your time & hard work. |
#156
|
|||
|
|||
Does anyone know if this hack will work with iframes? Specifically, it I have the login box and login detection code within an iframe (say login.php), and this iframe is part of index.html, if I enter my username/password in the login box, it seems to recognize that I've logged in, but it won't redirect me back to the main page, which is index.html. It seems to redirect back to my iframe page, login.php, which is not the behavior I want. Does anyone know how to make it redirect to the main page, index.html, which includes my login.php in an iframe? This is my first time using this hack.
|
#157
|
||||
|
||||
I get this errors:
Code:
Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591 Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591 Notice: Undefined index: HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618 Unable to add cookies, header already sent. File: c:\programmi\easyphp1-8\www\webcity\includes\class_core.php Line: 1591 Code:
<?php $curdir = getcwd (); chdir('webcity'); require_once('webcity/global.php'); chdir ($curdir); ?> <html> <head> <title>Web City</title> </head> <body> <?php require_once('login_inc.php'); ?> </body> </html> |
#158
|
|||
|
|||
Hi, been using this for a while its great, wondering if its possible to allow additional user group members to access a certain page? Not only primary.
|
#159
|
|||
|
|||
Quote:
The same Problems by me since I have upgrade to MySQL 5 Have you fixed it? |
#160
|
||||
|
||||
No man, I'm still waiting for a reply.
|
#161
|
|||
|
|||
Quote:
chdir('webcity'); require_once('webcity/global.php'); should be something in the format of: chdir('/home/webc/public_html/webcity'); require_once('/home/webc/public_html/webcity/global.php'); Code:
Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591 Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591 Notice: Undefined index: HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|