![]() |
|
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 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.6 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.10 (24th April 2007)
Version 1.0 (2nd December 2006)
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. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
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 Simple vB User login and access control on non vB pages | Billspaintball | vBulletin 3.7 Add-ons | 55 | 23 Apr 2011 14:52 |
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
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Edit: This usage and trouble shooting guide has been updated as of 24th of April 2007
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.
Last edited by Billspaintball; 24 Apr 2007 at 15:50. |
#4
|
||||
|
||||
Great work. Thanks!
__________________
No members have liked this post.
|
#5
|
||||
|
||||
Any chance of seeing a demo of some kind, I am wanting a login page for my homepage in which users can see there info on the homepage like PM's new posts, etc....
No members have liked this post.
|
#6
|
||||
|
||||
Originally Posted by JamieLee2k
Use my 3.5 hack - (also works fine on 3.6) for that![]()
See my sig for link to it. No members have liked this post.
|
#7
|
||||
|
||||
But if I am using 3.6 why do I need to use 3.5 if the hack is pretty much the same, if not the same?
Also I want the hack for HTML pages, if thats possible No members have liked this post.
|
#8
|
||||
|
||||
Originally Posted by JamieLee2k
The 3.5 deluxe version http://www.vbulletin.org/forum/showthread.php?t=108026 has the extra stuff that you wanted like PM's![]()
It also works fine with all versions of vB 3.6
No members have liked this post.
|
#9
|
|||
|
|||
Awesome work!, thanks so much.
No members have liked this post.
|
#10
|
||||||||
|
||||||||
i've got it working, but only when i remove my other script that i have to call which is require_once('./vBExternal.php'); for another add-on....how do i stop the top part of the login code
from conflicting with the vBExternal? i found this is the only way i can do it.... otherwise the main page doesn't remember the user if i put the full url to the .php that includes the login page code with the
No members have liked this post.
Last edited by mathias; 03 Dec 2006 at 10:32. |
#11
|
||||
|
||||
Originally Posted by mathias
Yes there is a conflict between this and vB external.![]()
We tried to track it down with an earlier release of this but with no luck. A workaround others have used is use vBexternal for the front page and this hack on the rest to provide access control. No members have liked this post.
|
#12
|
|||
|
|||
Originally Posted by Billspaintball
![]()
np, thanks for that ![]() No members have liked this post.
|
#13
|
|||
|
|||
![]()
Just what the docotor ordered
![]() Thanks No members have liked this post.
|
#14
|
|||
|
|||
It works great! I have one question however, how can I display the username?
No members have liked this post.
|
#15
|
||||
|
||||
Originally Posted by Osterling
To display the username just put![]()
in the page where you want it. No members have liked this post.
|
![]() |
«
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 23:53.