![]() |
|
Mod Options |
![]() |
|||||||||||
Simple vB User login and access control on non vB pages
![]() Developer Last Online: Nov 2011 ![]() ![]() ![]() This modification is in the archives.
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 Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Integration with vBulletin Simple vB User login and access control on non vB pages | Billspaintball | vBulletin 3.6 Add-ons | 188 | 25 Jan 2013 16:40 |
Deluxe vB User login and access control on non vB pages | Billspaintball | vBulletin 3.5 Add-ons | 393 | 13 Jul 2011 21:50 |
Integration with vBulletin Deluxe vB User login and access control on non vB pages | Billspaintball | vBulletin 3.7 Add-ons | 76 | 06 Jun 2011 21:44 |
Integration with vBulletin Deluxe vB user login and access control for non vB pages - REVISED | Mastar | vBulletin 3.6 Add-ons | 12 | 15 May 2009 16:17 |
Simple vB User login and access control on non vB pages | Billspaintball | vBulletin 3.5 Add-ons | 254 | 31 Jan 2009 10:57 |
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.
You can use a simple variation of this to restrict entire pages to a certain usergroup. For example,
You can of course use multiple usergroups by just modifiying the if statement a little. For example:
Another use is to display different content to users depending on if they are logged in or not. For example
Another use is to restrict advertising to people who are not logged in. For example
Of course you can play around with conditionals to do a whole range of things, these are just brief example snippets. Troubleshooting If your reading this chances are you are having problems. Here are some common causes and fixes.
No members have liked this post.
|
#3
|
|||
|
|||
superb stuff, brilliantly presented info. Thanks
No members have liked this post.
|
#4
|
||||
|
||||
Good one
![]() 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 No members have liked this post.
|
#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? No members have liked this post.
|
#6
|
|||
|
|||
Just about to launch my new layout and wanted something like this to be released, thanks!
No members have liked this post.
|
#7
|
|||
|
|||
wow! this is great!!
No members have liked this post.
|
#8
|
||||
|
||||
I have zero experience in cold fusion so I cant answer this either way.
No members have liked this post.
|
#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. No members have liked this post.
|
#10
|
||||||||
|
||||||||
I had a devil of a time with this too, until I changed the URL in my login_inc.php from
this:
to this:
I have no idea if this will help you in your circumstances, but I thought I would share it just in case. I had multiple domain names pointing to the same content. No members have liked this post.
|
#11
|
|||
|
|||
still running into issues...the login page that is generated makes links for the registration page and the login script to the /music/log.php etc...rather than /forums/login.php. even the logo is messed up
No members have liked this post.
|
#12
|
|||
|
|||
Super simple and works great!
No members have liked this post.
|
#13
|
||||
|
||||
Maybe if you post more information, i.e., the php code with your path statements (the part you're supposed to customize) we can help you out.
No members have liked this post.
|
#14
|
|||
|
|||
Originally Posted by longin_inc.php
and my php test file looks like (in mydomain.com/forums/music with login_inc in mydomain.com/:
No members have liked this post.
|
#15
|
|||
|
|||
i did this hack and got this error...
Unable to add cookies, header already sent. File: /home/content/b/e/r/berry05/html/tyler.php Line: 3 and i did what the troubleshooting told me to do also... No members have liked this post.
Last edited by berry05; 18 May 2008 at 15:32. |
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:45.