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 |
#292
|
||||
|
||||
Its the configuration of your new server.
You will need to speak to your host and get them to fix it, or delete the display avatar section of the code. |
#293
|
||||
|
||||
Quote:
I may be able to replicate it by changing that date and go from there. |
#294
|
|||
|
|||
Hi bill,
Sorry, i have deactivated this addon for now when you buy something in vbplaza and it expires (like a sticky topic) this addon also makes the whole site go 404 Something is up with the way it handles something when it "expires", and when it does it breaks every single page on the site where this module is loaded im running 3.6.4 btw, can that be the problem? this works fine on 3.6.4 right? |
#295
|
|||
|
|||
Hi.
Just a couple of questions: 1) I debugged while running the script, and I can't really see that $session[sessionhash] and $session[sessionurl] is used. 2) I'm not 100% sure how this works when it comes to performance, but when I debugged and looked at the available variables from the global.php there were a huge amount of vars and arrays that isnt needed at all. Wouldn't it be best to only create objects of the things we really need (i.eg create the db object and get the $vbulletin[userinfo] array). If you i.eg look at $vbulletin['forumcache'] alone, it has over 408 arrays (depending on number of forums you have created) with 25 values each. Other unnecessary things are $header, headinclude, footer, etc etc. Wouldn't this cause a higher load if this is processed everytime a page is viewed? 3) After doing this, my second DB object won't retrieve info in UTF-8 anymore, even though I have: mysql_query( "SET NAMES 'utf8'", $myDBobj ); Any tips on how to solve this? Thanks =) |
#296
|
||||
|
||||
Quote:
Quote:
1 - Better compatibility with future releases of vB. If vB make some changes to how various things work, chances are scripts will still work if they access those functions via the global.php file. 2 - Allows anyone to easily add any new function thats included in the global file. 3 - There is too much stuff happening behind the scenes in vB, its easy to miss some minor thing that causes problems later (like your UTF-8 one) 4 - More secure. Your not potentially creating any security holes with your own code trying to do back end stuff. 5 - The code in global.php is well tested and optimised. As for extra server load by using global.php, just consider that vB uses it on every page anyhow so it shouldant make much of a difference on server load. Quote:
|
#297
|
|||
|
|||
Hey Bill, is there any other way to output usernames instead of $vbulletin->userinfo['userid']?
|
#298
|
||||
|
||||
Quote:
$vbulletin->userinfo['username'] |
#299
|
|||
|
|||
Is there a way to display a default image if the user does not have an avatar? With no avatar, errors are displaying because it can't find the image.
|
#300
|
||||
|
||||
What error do you get?
I just deleted my Avatar to try and replicate the error, but It worked fine in IE7 and Firefox 2.0.0.3 |
#301
|
|||
|
|||
Nevermind, no more error. Must have been something else.
By the way, I'm loving this mod. Good work and thanks! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|