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 cut down version of the user authentication and access control system I use on the non vB pages on my website. This uses the vB 3.7 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 displaying 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 don't 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
Change log Version 2.00 (21st March 2008)
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 |
#42
|
|||
|
|||
We've just start re-coding our main website and one of the things on our wishlist was to integrate the vb login sequence and have vb help determine what 'non-registered' users can or can't do. Easy to use, easy to install and works like a charm. It has also encouraged me to look further into this and see what else is possible. Excellent work and thank you for this simple but very effective mod. :up:
|
#43
|
||||
|
||||
Just a brief heads up for anyone who is interested, initial testing shows that this works with vB4 beta 3
|
#44
|
|||
|
|||
thanks for that headsup Bill. I was about to come ask that. I've come to rely on this script a bit over the years (actually, an older version I think) and wanted to make sure it'd still work with the upgrade.
|
#45
|
|||
|
|||
Quote:
You are a champion!!!! I have been looking everywhere for a Wordpress login. You made my day! How can I display some user info ie: user photo/thread count/new messages like this mod: https://vborg.vbsupport.ru/showthread.php?t=173698 Thanks again and hope you can help out Andy |
#46
|
|||
|
|||
So a quick question regarding user authentication as I got this working really well now - at the moment it is checking for user ID "6" which is admin - non admins are moved to the site frontpage and information isnt loaded - however what I would like to do is have multiple usergroups able to access the page - ie 6,12,13 - would I then just change the code to
Code:
<?php If ($vbulletin->userinfo['6,12,13']!=0) |
#47
|
||||
|
||||
Does any one know if I can use this mod on my site if the forums is in a subdomain? when I add: require_once('/path/to/your/forums/global.php'); the page goes blank.
|
#48
|
||||
|
||||
Quote:
/path/to/your/forums needs to be the actual path to your forum root. if you need: Open up a text editor and paste this in it: PHP Code:
path.php make sure it's path.php and not path.php.txt or anything like that. Upload that file to your forum root and point your browser to it. example: http://yourforum.org/forum/path.php should show you what you need to replace /path/to/your/forums with. delete that file when you're done with it. Hope this helps. |
#49
|
||||
|
||||
Thank you for your quick response. I actually did add the path to the forum, but still doesnt work. This is what I got:
Quote:
I also tried: Quote:
|
#50
|
||||
|
||||
pm me the link to path.php on your server.
|
#51
|
|||
|
|||
Great but is there a fix for this cookies problem that everyone is having. I used this hack before and never had it do this before so it must be something to do with vb 3.8.4.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|