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 |
#152
|
||||
|
||||
Ok, try this.
Right at the top of the page put PHP Code:
PHP Code:
|
#153
|
|||
|
|||
I receive the following error:
Quote:
|
#154
|
||||
|
||||
I am not able to run this and I have gone through the troubleshooting steps that you have provided. I am running my main site on http://website.com and I am running my forum on http://forums.website.com. I've tried using website.com/forums as well, but that is not working either. Other than the steps you have provided, do you have any other recommendations?
The reason I'm still curious is because I had the vBadvanced CMPS working on my website before, and I had it set up the exact same way. However, I am unable to figure out what made what tick. Let me know please. |
#155
|
|||
|
|||
Quote:
|
#156
|
|||
|
|||
Great looking hack!
I've got the basics of it working on my site. However I need to control access based on secondary 'additional' user groups rather than the primary usergroup id. How can I have it check to see if the user is in the array of membergroup id's instead of a single usergroup? Thanks. Scott |
#157
|
|||
|
|||
Hi, i need help please.. i added the login box on the index page, works great. but when i try and access the other pages. i get the following error.
Code:
Warning: main(includes/0.php) [function.main]: failed to open stream: No such file or directory in /usr/home/web/wse90457/index.php on line 180 Warning: main() [function.include]: Failed opening 'includes/0.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/home/web/wse90457/index.php on line 180 also, if you go to http://www.silkroad-oasis.com and login on the box, it logs in and works fine, but if you go to http://silkroad-oasis.com and try and login, it logs you in, but still shows the login boxes. how to fix? Please help. Thanks |
#158
|
||||
|
||||
Quote:
|
#159
|
|||
|
|||
Quote:
ok, Step 3 had already been done. by default? i dont know. I dont both things in step 4, but still i get the following errors on every other page, but it did sort out the login box problem, Code:
Warning: main(includes/0.php) [function.main]: failed to open stream: No such file or directory in /usr/home/web/wse90457/index.php on line 180 Warning: main() [function.include]: Failed opening 'includes/0.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/home/web/wse90457/index.php on line 180 Is there anyway to fix this warning? |
#160
|
||||
|
||||
Quote:
Quote:
Try changing Code:
<?php chdir('/path/to/your/forums'); require_once('/path/to/your/forums/global.php'); ?> Code:
<?php $curdir = getcwd (); chdir('/path/to/your/forums'); require_once('/path/to/your/forums/global.php'); chdir ($curdir); ?> |
#161
|
|||
|
|||
Nope, still same error.
Do i need to put that still in everypage? or just the index page? and if you need me to, i can post the index page php code. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|