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 |
#122
|
|||
|
|||
I get this Error
Code:
Notice: Undefined index: HTTP_REFERER in /var/www/web1/html/vb3/includes/class_core.php on line 1574 PHP Code:
Snatch |
#124
|
||||
|
||||
Sorry about the lack of support.
We have just had a new addition to the family 3 weeks ago and Ive been kinda busy. |
#125
|
||||
|
||||
Quote:
Have you tried section 5 of the troubleshooting guide to rule out other scripts interfearing? |
#126
|
||||
|
||||
I'm having the same problems.
PHP Code:
Keeps saying I'm not allowed in, and when I print_r $vbulletin->userinfo is returns a userd of 0. Help! |
#127
|
||||
|
||||
Have you tried just the sample code in "Troubleshooting - step 5" yet?
(refer to this post https://vborg.vbsupport.ru/showpost....98&postcount=2 ) If so, what happened? |
#128
|
||||
|
||||
Quote:
PHP Code:
The contents of $vbulletin->userinfo are not being filled when the script is on avplay.com. |
#129
|
||||
|
||||
Im pretty sure its related to cookies somehow.
Do both your forums use the same cookie prefix? |
#130
|
||||
|
||||
Quote:
|
#131
|
||||
|
||||
Anyone got any ideas on this one? Can this hack work on a website on the same server but with a different domain?
|
#132
|
||||
|
||||
Did you try the edit at the end of step 4 in troubleshooting?
|
#133
|
||||
|
||||
I'm trying to restrict access to pages based on Usergroups, but I can't figure out what I shoud do with the code you provided. I have tried it in different locations on the page, but whether I'm logged in or not it always shows me the page. Any help? (The user login works perfectly for me, btw.)
|
#134
|
||||
|
||||
Quote:
|
#135
|
||||
|
||||
Right now I have it at the top of the page, and I'd like to restrict this page's access to those who attend here only. I've also tried replacing the 'Have stuff for here' with the content of the page, and that didn't work either. I realize I must be missing the obvious, but I'm just stumped at this point. Thanks for any help.
PHP Code:
|
#136
|
||||
|
||||
Ok, I see whats gone wrong.
The "have stuff here" line is where you put your page contents. For example; PHP Code:
I may have missed escaping a " somewhere (I have a habit of doing that) but you should get the idea of how it works. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|