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 |
#162
|
|||
|
|||
Alright i downloaded this a few days ago so i should have every update made. I inserted the code into my index.php file, in the spot i want it, the username and password fields show up great, but just under the "Submit Query" button im getting this error
Fatal error: Call to a member function query_read() on a non-object in /home2/grastyz/public_html/login_inc.php on line 149 I dont know why, and i know nothing about coding, so any help would be much appreciated (I have VB 3.5.4 if that makes a difference) |
#163
|
|||
|
|||
somewhere else on these forums i found a suggestion to change $db-> to $vbulletin->db but that didnt work so i changed it back
|
#164
|
|||
|
|||
Quote:
|
#165
|
||||
|
||||
Quote:
Is this page and your forums located on the same server? Have you used the simple troubleshooting test page? If so, did you still have the slow loads and random timeouts? |
#166
|
||||
|
||||
Quote:
Also, can you post your pages code here so I see if there is anything obvious. |
#167
|
||||
|
||||
Hey, we run our site on multiple servers, Meaning I would like to use this script, but instead of a server path. (Since the are broken up between servers) Is there a way to provide the ability for external server support to lock in and do everything?
I would assume its just a simple connect to the sql database and fetch the data. |
#168
|
|||
|
|||
Quote:
I dont see what the difference is. But here is my code anyway This is lines 144-159 PHP Code:
|
#169
|
|||
|
|||
Hi. I know you aren't required to provide support for third party software and I don't expect you to but I was hoping you could help me out.
I'm using CMSMS (Content Management System Made Simple) and I'm trying to use your hack. The CMS lets me define php tags to use in the template code so that's no problem. However, when I execute the chdir call, it gives me this: Code:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 3291 Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3291 Line 3291 is foreach (array_keys($vbulletin->forumcache) AS $forumid) and I don't see how that conflicts with CMSMS... I'd appreciate your input. Hope to hear a reply from you one way or the other. Thanks. Edit: For reference, I set up a test.php page on my site (manually, not via the CMS) and it worked perfectly. |
#170
|
|||
|
|||
Quote:
|
#171
|
|||
|
|||
Disregard my previous post, I solved the problem by putting the page into an iframe on the CMS template.
Great hack, thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|