Version: 2.20, by Billspaintball
Developer Last Online: Nov 2011
Version: 3.5.8
Rating:
Released: 02-14-2006
Last Update: 04-23-2007
Installs: 223
Additional Files
No support by the author.
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 look here.
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.
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 is a work in progress and currently a beta version. It was a little rushed as a few people were pushing for it Its missing a couple of planned things like newest member etc, but they will be added in a later version.
This script has been confirmed as working on
vB 3.5.x - All Versions
vB 3.6.x - All Versions
Known Bugs
Will not display Avatars correctly if they are kept in the file system (database avatars are fine)
Changelog
Version 2.20 (24th April 2007)
Fixed - // in paths bug
Fixed - Javascript warning in some browsers
Fixed - Tidied up some code
Fixed - Avatar display code bug
Version 2.10 (4th June 2006)
Fixed - "MySQL Error : Invalid SQL " when using Database thread/forum marking.
Fixed - Number of PM's not displaying in all installs.
Added - Displays date and time of last login.
Added - Total number of saved PM's.
To upgrade just overwrite the existing login_inc.php file with the new one.
You will need to re-edit the path on line 3 and also redo any formatting changes you may have done for the last version.
Version 1.0 (15th Feb 2006)
Initial Release
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.
I'm getting this error wether I'm logged into the forums already or not:
Fatal error: Call to a member function query_read() on a non-object in /var/www/html/forums/includes/login_inc.php on line 139
This is all running on localhost. Am I missing something?
My users' avatars won't show up. When I go to the src they are coming from such as http://test.xtremecoastin.com/forum/image.php?=1.1 , I get no avatar. The title of the page says image.php (GIF Image, 1x1 pixels).
Quote:
Originally Posted by johnn
Anything on the PM issue? I get nothing when I get a new PM. I see it on my board, but not on my site's index page.
Quote:
Originally Posted by Omario24
I am having the same problem.
Try using this:
PHP Code:
echo "You have ";
if ($vbulletin->userinfo['pmunread'] == '0') {
echo "(<a href="".$forumpath."/private.php">0</a>) new messages since your last visit.<br>";
} else {
echo "(<a href="".$forumpath."/private.php">";
echo $vbulletin->userinfo['pmunread'];
echo "</a>) new messages since your last visit.</p>";
}
Does anyone know a method to implement a login timeout similar to the admin panel with this hack/script? Another question thats unrelated, but, where can I find out whats listed in $vbulletin and/or $vbulletin->userinfo ?
I installed the new version. I checked it out on IE and if you're not logged in, it gives me a "Done, but with errors on page" in the status bar at the bottom. It says for the error: