![]() |
|
Mod Options |
![]() |
|||||||||||
Deluxe 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 the deluxe version of the user authentication and access control system I use on the non vB pages on my website. For the simple no frills version [URL=http://www.vbulletin.org/forum/showthread.php?t=173693look here.[/URL] 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 displying to non members only, and/or let members access to specific content. It also displays the logged in users Avatar, number of unread PM's, New posts since last visit, total posts and total threads. It also allows you to specify a maximum Avatar size, and resize any avatars larger than that, while keeping their height/width ratios in proportion! Its very handy if you allow large avatars, but want a small format display on your non forum pages. If the user is not logged in, a login box is displayed, along with total posts and total threads in the forums. 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
Known Bugs Will not display Avatars correctly if they are kept in the file system (database avatars are fine) Change log Version 3.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 17:40 |
Deluxe vB User login and access control on non vB pages | Billspaintball | vBulletin 3.5 Add-ons | 393 | 13 Jul 2011 22:50 |
Integration with vBulletin Simple vB User login and access control on non vB pages | Billspaintball | vBulletin 3.7 Add-ons | 55 | 23 Apr 2011 15: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 17:17 |
Simple vB User login and access control on non vB pages | Billspaintball | vBulletin 3.5 Add-ons | 254 | 31 Jan 2009 11:57 |
Comments |
#2
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Usage
The hack is pretty useless without some usage instructions so here they are. You can resize avatars, keeping them to their origional proportions to make them fit your prefered layout. For instance, if you are using a fixed width column layout. Do this by editing lines 5 and 6 in login_inc.php These values are in pixels. 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,
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
|
|||
|
|||
Hi Bill, some shots?
No members have liked this post.
|
#4
|
||||
|
||||
No members have liked this post.
|
#5
|
|||
|
|||
No members have liked this post.
|
#6
|
||||
|
||||
This is really easy to configure and use, its working great right out of the box, thanks.
No members have liked this post.
|
#7
|
||||
|
||||
Just wondering if you are working on this bug, or if it is not possible: Will not display Avatars correctly if they are kept in the file system (database avatars are fine)
__________________
Gamerz Needs - For All Your Gaming Needs! No members have liked this post.
|
#8
|
||||
|
||||
Originally Posted by hornstar1337
Not actively. ![]()
I did try and get around it in the past, but never came up with a workable solution. No members have liked this post.
|
#9
|
||||
|
||||
/me clicks install
![]()
__________________
No members have liked this post.
|
#10
|
||||
|
||||
Adding PHP Code:
breaks the page's layout. Example here: http://members.thinkteen.co.uk (original page) http://members.co.uk/m2.php (Page broken + no login box) No members have liked this post.
|
#11
|
||||||||||||
|
||||||||||||
Try changing
to
Originally Posted by snunhuck
![]()
No members have liked this post.
|
#13
|
||||||||
|
||||||||
Originally Posted by Billspaintball
Should that not be a server path and not a address? eg it should be '/home/username/public_html/
![]()
No members have liked this post.
|
#14
|
||||
|
||||
hmm, I'll see if it works
![]()
Nope ![]() here's the page I'm trying to implement: http://members.thinkteen.co.uk/m2.html It's meant to look like this: http://members.thinkteen.co.uk No members have liked this post.
Last edited by snunhuck; 23 Mar 2008 at 18:41. |
#15
|
||||
|
||||
Originally Posted by snunhuck
This mod only works with php pages, not html pages.
![]()
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 13:01.