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 |
#142
|
||||
|
||||
also is this script XHTML compliant?
when i check my site for compliancy i get these errors: Quote:
|
#143
|
||||
|
||||
Quote:
Yes it is certainly possible, I just need some time to do it. (been flat out since the new baby) Quote:
Im a tad uneducated (and lazy) when it comes to XHTML compliance |
#144
|
||||
|
||||
congrates on the new baby
I found time today anyways and modifed the script and its almost 100% validated on my site except from 2 errors i made myself modifying the layout. One problem i am having is with the link showing double // for example when a unregisterd user clicks register they r sent to this link: http://www.bluepearl-design.com/forums//register.php?s= Here is a link to the test page using this script: http://www.bluepearl-design.com/test.php |
#145
|
|||
|
|||
Hi Billspaintball,
I get this error, only when I'm not logged. Code:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 4259 Warning: preg_replace() [function.preg-replace]: Empty regular expression in /includes/functions.php on line 4259 EDIT: fixed!! |
#146
|
|||
|
|||
Fatal error: Cannot use object of type vB_Database as array in /public_html/admin/common.php on line 53
line 53: $udb->start($db['host'],$db['user'],$db['pass'],$db['name']); because i have another sql database for my site that it calls it does this. How can i stop it from trying to make a vb array database? Thanks. |
#147
|
||||
|
||||
any ideas why i am getting double // in my urls? been trying so many different combinations of paths and i just cant seem to figure it out hehe
|
#148
|
|||
|
|||
Quote:
|
#149
|
|||
|
|||
either change this $forumpath = "http://www.yoursite.com/forums/";
to $forumpath = "http://www.yoursite.com/forums"; or go into the login_inc and find You have to <a href=\"".$forumpath."/register.php?s=$session[sessionhash]\" take out that / in front of register You have to <a href=\"".$forumpath."register.php?s=$session[sessionhash]\" should be this. |
#150
|
|||
|
|||
Quote:
I think you got this error because vbulletin has a variable called $db. Try to rename your variable, $db_site instead of $db. |
#151
|
|||
|
|||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|