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 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.5 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.30 (24th April 2007)
Version 1.20 (2nd December 2006)
Version 1.10 (4th Feb 2006)
There is no functionality changes or bug fixes between these 2 releases. Version 1.0 (17th November 2005)
Deluxe Version of this hack is now available Has Avatars, PM's, Number of Posts etc. Click Here 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 |
#77
|
||||
|
||||
Is it possible to add the user's avatar yet?
Does anyone know how to do this? |
#78
|
|||
|
|||
Quote:
|
#79
|
|||
|
|||
Quote:
Thx in advance Barteken |
#80
|
||||
|
||||
Quote:
See https://vborg.vbsupport.ru/showpost....98&postcount=2 |
#81
|
||||
|
||||
Quote:
If I havent released the full version with avatars and the rest by this wednesday, PM me a reminder. |
#82
|
||||
|
||||
Quote:
|
#83
|
|||
|
|||
Quote:
Grtz barteken |
#84
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showpost....98&postcount=2 To show different content depending of if people are logged in or not, you want to use this one. PHP Code:
|
#85
|
||||
|
||||
Quote:
PHP Code:
Code:
if ($vbulletin->userinfo['userid']) { require_once('./includes/functions_user.php'); //make sure we have the function we need $navbar_ava = fetch_avatar_url($vbulletin->userinfo['userid']); if (!is_array($navbar_ava)) { $navbar_ava[] = "/images/misc/noavatar.gif"; } } PHP Code:
Code:
echo "<img src='http://www.yoursite.com/forum/$navbar_ava[0]' align='left' />"; This will show the User's current avatar, and if the User has no avatar specified, it'll show the no avatar image. Don't forget to change the "yoursite.com" to reflect your forum. See attached for Screenshots. |
#86
|
|||
|
|||
ok, so i got it working, sort of.
It shows me logged in, but doesnt look like my cookie ever expires when it should. so, on the page i created, i'm always logged in, even after the cookie should have timed out with me idling. Also, from the who's online page, it never updates the time of last activity or the location if i'm on a page outside of vb. Jim |
#87
|
||||
|
||||
Quote:
Quote:
|
#88
|
||||
|
||||
Quote:
Thanks! |
#89
|
||||
|
||||
Enhanced version with avatar, number of PM's and user stats is ready.... I think....
I just need to test it on someone who uses a table prefix for their database. |
#90
|
||||
|
||||
Awesome, I look forward to it.
|
#91
|
||||
|
||||
I'm having an issue where everything looks like it's logging in fine, but when it goes back to the page, it shows me as not being logged in. I checked the cookie fix discussed in the Troubleshooting section and it's as it should be. Sometimes though, if I go to the Forum and then go back to the page, it shows me as logged in. Any ideas? I love this hack, but I don't want it acting up like this to the regular users.
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|