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 |
#2
|
||||
|
||||
Usage
The hack is pretty useless without some usage instructions so here they are. We can use conditionals to hide or display depending on a number of things such as Logged in or out status, or restrict to members of a specific usergroup. We do this by using conditionals in php tags where the normal content of a webpage would go. If you want something only accessable to a certain usergroup, use this code in your webpage. This example is only visible to members of usergroup 6. PHP Code:
For example, PHP Code:
For example: PHP Code:
Another use is to display different content to users depending on if they are logged in or not. For example PHP Code:
For example PHP Code:
Troubleshooting If your reading this chances are you are having problems. Here are some common causes and fixes.
|
#3
|
|||
|
|||
superb stuff, brilliantly presented info. Thanks
|
#4
|
||||
|
||||
Good one :up:
I have been wanting to do this but have been putting it off due to time restrictions. You've made things alot easier and quicker for me by creating this mod, thank you so much. *installed |
#5
|
|||
|
|||
Wow, very timely!
I am developing a new section of the site, but it will be for forum users only. My one glitch, the pages will be in cold fusion, not php. Any chance something like this could be modified for cfm pages? |
#6
|
|||
|
|||
Just about to launch my new layout and wanted something like this to be released, thanks!
|
#7
|
|||
|
|||
wow! this is great!!
|
#8
|
||||
|
||||
I have zero experience in cold fusion so I cant answer this either way.
|
#9
|
|||
|
|||
I have been struggling getting this to work for me. I am just trying to get the test.php script to work first. when i am not logged in, i cannot log into the pages off of vb, they are linked to the folder i have my non-vb files in, rather than the forum folders.
www.mydomain.com/forums www.mydomain.com/music i want to use this script in the music folder. when i try to load the test.php file, it looks for images and registration stuff under /music/images and /music/register.php rather thant /forums/images and what not. i have tried various setups for the login_inc.php file and also put the music folder inside the /forums dirstory (/forums/music) and still with no luck. im pretty sure its something stupid and i'm over thinking this whole problem. but your help would be much abliged. thanks much. |
#10
|
||||
|
||||
I had a devil of a time with this too, until I changed the URL in my login_inc.php from
this: PHP Code:
PHP Code:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|