The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Deluxe vB User login and access control on non vB pages Details »» | |||||||||||||||||||||||||||
Deluxe vB User login and access control on non vB pages
Developer Last Online: Nov 2011
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
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)
Version 2.10 (4th June 2006)
Version 2.00 (16th April 2006)
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)
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 |
#212
|
|||
|
|||
Fixed part of it.
|
#213
|
|||
|
|||
Ok so this is my final post for the night... I took care of it and got it working on my site...
Check it out here... www.verticalterrain.com It's doing something weird though. If I log in on the main page it redirects me but shows me as still not being logged in. If I go to my forum main page and log in it logs me in and then if I go back to the main page on my site it shows me as logged in... What's up with that? Is this a cookies issue? |
#214
|
||||
|
||||
Quote:
|
#215
|
|||
|
|||
Hi,
After using this fantastic hack for a while now, we've just installed the vbseo product. Everything is fine other than this line in login_inc.php: PHP Code:
|
#216
|
|||
|
|||
Bill,
I fixed all the errors now here is my new problem... Check it out here... www.verticalterrain.com It's doing something weird though. If I log in on the main page it redirects me but shows me as still not being logged in. If I go to my forum main page and log in it logs me in and then if I go back to the main page on my site it shows me as logged in... What's up with that? Is this a cookies issue? |
#217
|
|||
|
|||
Quote:
|
#218
|
|||
|
|||
Quote:
|
#219
|
|||
|
|||
I also think there must be an error in part of the code or something because some of the links work but then some will end up giving me
forums//login.php as an example but if i changed login_inc to have my forums as .net/forums then it will work however then the other links will be forumsprivate.php as an example so i dont know how to fix this problem. |
#220
|
||||
|
||||
What I use to get total number of members. Works for me. Posting it here because it seems to be something people really want. Dunno why. I script kiddied the code that Billspaintball used to get thread/post counts, and did a quickie Google search for how to count rows. and mashed them up. /shrugs
Demo: beta.awp-tech.com Code:
// get total number of members $getstats_user_count = $db->query_read('SELECT COUNT(*) FROM ' .TABLE_PREFIX . 'user'); while ($forum_user_count = $db->fetch_array($getstats_user_count)) { $totusers += $forum_user_count['COUNT(*)']; } $totusers = vb_number_format($totusers); Hakaslak figures usage instructions would be nice: # #-----[ OPEN ]------------------------------------------ # Code:
login_inc.php #-----[ FIND ]------------------------------------------ # Code:
$totposts = vb_number_format($totposts); #-----[ AFTER, ADD ]------------------------------------------ # Code:
// get total number of members $getstats_user_count = $db->query_read('SELECT COUNT(*) FROM ' .TABLE_PREFIX . 'user'); while ($forum_user_count = $db->fetch_array($getstats_user_count)) { $totusers += $forum_user_count['COUNT(*)']; } $totusers = vb_number_format($totusers); #-----[ FIND ]------------------------------------------ # Code:
$vbphrase[posts]: $totposts<br /> #-----[ AFTER, ADD ]------------------------------------------ # Code:
$vbphrase[members]: $totusers<br /> |
#221
|
||||
|
||||
I've been trying to add the newest user for 3 hours. It's 3:30 and I'm giving up to sleep. Does ANYONE have any idea how to display the newest registerd user???
Google is NOT my friend. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|