Version: 1.10, by Billspaintball
Developer Last Online: Nov 2011
Category: Integration with vBulletin -
Version: 3.6.5
Rating:
Released: 12-01-2006
Last Update: 04-23-2007
Installs: 197
Additional Files
No support by the author.
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
vB 3.6
vB 3.6.1
vB 3.6.2
vB 3.6.3
vB 3.6.4
vB 3.6.5
Changelog
Version 1.10 (24th April 2007)
Fixed - // in paths bug
Fixed - Javascript warning in some browsers
Fixed - Tidied up some code
Version 1.0 (2nd December 2006)
Very similar to my vB 3.5 version, however logout bug fixed and should be more compatible with other scripts on your page.
Click on Install
If you have this script installed then please click on the install link because;
You will get notified if any security issues are reported.
You will get notified when there are any upgrades to this script
It gives me a warm fuzzy feeling and motivates me to develop more
Donations
First of all, to be clear. This script is 100% free.
Warning: require_once(/path/to/your/login_inc2.php) [function.require-once]: failed to open stream: No such file or directory in /home/svtcobra/public_html/indexNEW.php on line 133
Fatal error: require_once() [function.require]: Failed opening required '/path/to/your/login_inc2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/svtcobra/public_html/indexNEW.php on line 133
<?php
If ($vbulletin->userinfo['userid']!=0)
{
echo "Your logged in so we can display this";
} else {
echo "Your not logged in so we display this";
}
?>
How would you go about displaying an html page in there?? if there logged in.
<?php
If ($vbulletin->userinfo['userid']!=0)
{
echo "Your logged in so we can display this";
} else {
echo "Your not logged in so we display this";
}
?>
How would you go about displaying an html page in there?? if there logged in.
Change that to:
Code:
<?php
If ($vbulletin->userinfo['userid']!=0)
{
?>
insert logged in html code here
<?php
} else {
?>
insert not logged in html code here
<?php
}
?>