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 |
#342
|
||||
|
||||
Im having a problem where i can login on a sub-domain but after im logged it doenst show me logged in.
My forum is located here: http://www.bluepearl-design.com/forums/ The page in question is here: http://www.bluepearl-design.com/template-myspace/ which works perfectly but the sub-domain parked on this directory http://www.template-myspace.com/ refuses to stay logged in. |
#343
|
|||
|
|||
This seems like something I can definitely use .. thanks for this awesome hack and I'll try it soon to see if it also works on my 3.6.7
|
#344
|
||||
|
||||
Quote:
Only thing though, i removed the avatar as i didnt need this on my site. |
#345
|
||||
|
||||
When I run sample script (test.php), I'm getting an error about headers:
I've checked script and there are no spaces before first 4 lines of code. By the way, I see this only when I logged out. When I logged in (through vBulletin), I see this: How can I fix this? PS: I have lastest vBulletin version installed. And the installation is fresh (just one thread). I've tried both Deluxe and "non Deluxe" versions of this script. |
#346
|
|||
|
|||
I have tried to use and I get these errors.
Code:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/site/public_html/index.php on line 3 Code:
Fatal error: Call to a member function query_read() on a non-object in /home/site/public_html/login_inc.php on line 146 |
#347
|
|||
|
|||
I have this working perfectly, so thank you.
Is there a programming genius here that can help me convert the little bit of php into perl, so I can restrict a perl script in the same way? It doesn't have to be elegant, just a bomb out if the user is not logged in and not in the correct usergroup. |
#348
|
|||
|
|||
Hi guys,
Firstly thanks for a great hack, I've got it working almost perfectly, however I could do with a little help if possible. The site I am using the hack for has an area that anybody can view, and then a number of private pages that are for registered members only. One of the pages that anyone can view is called members.php, and this contains the login form fields. At the moment when a member logs in they are taken back to this page, although they are successfully logged in. How can I change the code so that when a member successfully logs in they are instead taken to one of the private pages eg members_index.php instead of back to the same page they logged in from. Any help or suggestions would be much appreciated, |
#349
|
|||
|
|||
EDIT: I'm a dumbass, i didn't do the right forum path, it's working now
This hack isn't working for me, i have vB version 3.6.8 I get the following error on my test.php page. Code:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/gamenexn/public_html/test.php on line 3 Warning: require_once(/forums/global.php) [function.require-once]: failed to open stream: No such file or directory in /home/gamenexn/public_html/test.php on line 4 Fatal error: require_once() [function.require]: Failed opening required '/forums/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gamenexn/public_html/test.php on line 4 |
#350
|
||||
|
||||
Quote:
Great to here its working |
#351
|
||||
|
||||
Quote:
Im pretty slack when it comes to validation and any input is welcome. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|