Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Deluxe vB User login and access control on non vB pages Details »
Deluxe vB User login and access control on non vB pages
Mod Version: 2.20, by Billspaintball (Member) Billspaintball is offline
Developer Last Online: Nov 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.8 Rating: (14 votes - 4.71 average) Installs: 223
Released: 15 Feb 2006 Last Update: 24 Apr 2007 Downloads: 1919
Not Supported Additional Files  

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
  • vB 3.5.x - All Versions
  • vB 3.6.x - All Versions

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)
  • Fixed - // in paths bug
  • Fixed - Javascript warning in some browsers
  • Fixed - Tidied up some code
  • Fixed - Avatar display code bug

Version 2.10 (4th June 2006)
  • Fixed - "MySQL Error : Invalid SQL " when using Database thread/forum marking.
  • Fixed - Javascrip error in some versions of IE.

Version 2.00 (16th April 2006)
  • Fixed - "MySQL Error : Unknown column 'newposts' in 'field list' "
  • Fixed - Number of PM's not displaying in all installs.
  • Added - Displays date and time of last login.
  • Added - Total number of saved PM's.
To upgrade just overwrite the existing login_inc.php file with the new one.
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)
  • Initial Release


Click on Install
If you have this script installed then please click on the install link because;
  • You will get notified if any security issues are reported.
  • You will get notified when there are any upgrades to this script
  • It gives me a warm fuzzy feeling and motivates me to develop more

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Integration with vBulletin Simple vB User login and access control on non vB pages Billspaintball vBulletin 3.6 Add-ons 188 25 Jan 2013 16:40
Integration with vBulletin Deluxe vB User login and access control on non vB pages Billspaintball vBulletin 3.7 Add-ons 76 06 Jun 2011 21:44
Integration with vBulletin Simple vB User login and access control on non vB pages Billspaintball vBulletin 3.7 Add-ons 55 23 Apr 2011 14:52
Integration with vBulletin Deluxe vB user login and access control for non vB pages - REVISED Mastar vBulletin 3.6 Add-ons 12 15 May 2009 16:17
Simple vB User login and access control on non vB pages Billspaintball vBulletin 3.5 Add-ons 254 31 Jan 2009 10:57

  #16  
Old 02 Mar 2006, 15:58
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
Is this mod functioning good at the moment? would love to implement this at my site
Reply With Quote
  #17  
Old 02 Mar 2006, 17:13
ROTPAR ROTPAR is offline
 
Join Date: May 2004
Works good but I have a problem with the avatar resize option.

Warning: getimagesize(http://www.xxxmypage.com/upload/image.php?u=1) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in /home/xxx/public_html/login_inc.php on line 27

Thanks for help
Reply With Quote
  #18  
Old 02 Mar 2006, 20:14
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
Ive tried installing.. but the moment i put this code in the template of my site

<?php
chdir('/home/6304/bunnybunch.nl/HTML/community');
require_once('/home/6304/bunnybunch.nl/HTML/community/global.php');
?>

im getting errors
Reply With Quote
  #19  
Old 02 Mar 2006, 20:15
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
this is the error

Warning: main(administrator/components/com_smf/config.smf.php): failed to open stream: No such file or directory in /home/6304/bunnybunch.nl/HTML/templates/247portal-b-grey/index.php on line 33

Fatal error: main(): Failed opening required 'administrator/components/com_smf/config.smf.php' (include_path='.:/usr/local/lib/php') in /home/6304/bunnybunch.nl/HTML/templates/247portal-b-grey/index.php on line 33
Reply With Quote
  #20  
Old 03 Mar 2006, 07:31
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
Ok little update

I have now been able to succesfully get this working... but.. only on the complete bottom of my site lmao

is there somethign i can change on this code to work with my site template?

<?php
chdir('/home/6304/bunnybunch.nl/HTML/community');
require_once('/home/6304/bunnybunch.nl/HTML/community/global.php');
?>
<?php
require_once('/home/6304/bunnybunch.nl/HTML/community/login_inc.php');
?>

if i post the above code "anywhere" in my template where it is followed by a include_once (and my site has many of those) for some reason, nothing is included/found

anyway, thanks for the help!
Reply With Quote
  #21  
Old 03 Mar 2006, 12:06
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by dkleehammer
I used the revised version. For some reason the db is not being set as an object.
Can you explain a little more please?
Reply With Quote
  #22  
Old 03 Mar 2006, 12:13
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by ROTPAR
Works good but I have a problem with the avatar resize option.

Warning: getimagesize(http://www.xxxmypage.com/upload/image.php?u=1) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in /home/xxx/public_html/login_inc.php on line 27

Thanks for help
Is your forums base directory /upload/ ?
Do you use the verification images for registration?
Reply With Quote
  #23  
Old 03 Mar 2006, 12:17
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by erinys
Ok little update

I have now been able to succesfully get this working... but.. only on the complete bottom of my site lmao

is there somethign i can change on this code to work with my site template?

<?php
chdir('/home/6304/bunnybunch.nl/HTML/community');
require_once('/home/6304/bunnybunch.nl/HTML/community/global.php');
?>
<?php
require_once('/home/6304/bunnybunch.nl/HTML/community/login_inc.php');
?>

if i post the above code "anywhere" in my template where it is followed by a include_once (and my site has many of those) for some reason, nothing is included/found

anyway, thanks for the help!
In that case somthing is conflicting.
Do you run any other vB scripts on that page?
Reply With Quote
  #24  
Old 03 Mar 2006, 13:13
ROTPAR ROTPAR is offline
 
Join Date: May 2004
Question

Originally Posted by Billspaintball
Is your forums base directory /upload/ ?
Do you use the verification images for registration?
Thatīs right, the base directory is /upload/
I use GD in the vbulletin options if this is what you mean..I donīt use Image Verification for the new user register process.
What could be the problem ?

Greets and THX for help
Reply With Quote
  #25  
Old 03 Mar 2006, 13:39
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
@bill

no not any VB scripts.. but it seems to be conflicting with whatever include_once is right below it..

im pasting it in a template btw.. wich also has codes for SMF forums, discussbots etc etc (im upgrading from SMF to VB atm)
Reply With Quote
  #26  
Old 03 Mar 2006, 17:04
idwf's Avatar
idwf idwf is offline
 
Join Date: Jun 2003
Real name: David
I've got this to work....so don worry about supporting the other one. However.

one little bug, if you have no new PM's you get

You have new message(s) since your last visit.
------------

I've done a lot of bug checking and it turns out that it wasn't your scripts causing me errors. i apolagise :cheeky:

Last edited by idwf; 03 Mar 2006 at 23:33.
Reply With Quote
  #27  
Old 04 Mar 2006, 14:30
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
Ive got it working now.. cause i switched forums today i was able to remove a lot of include_once tags, and now it works

bug: the link to new PM's is actually a link to the last new posts.. and there are missing a lot of <br> etc to make it look nice

so i editted it a bit

thanks for this Mod!
Reply With Quote
  #28  
Old 04 Mar 2006, 18:18
idwf's Avatar
idwf idwf is offline
 
Join Date: Jun 2003
Real name: David
Originally Posted by erinys
Ive got it working now.. cause i switched forums today i was able to remove a lot of include_once tags, and now it works

bug: the link to new PM's is actually a link to the last new posts.. and there are missing a lot of <br> etc to make it look nice

so i editted it a bit

thanks for this Mod!
yeah, i've edited the design with some <br>'s aswell. I cant wait till all the features are installed...
Reply With Quote
  #29  
Old 05 Mar 2006, 20:56
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
I've got a bit of a problem. Whenever a User changes their avatar, the avatar shown on login_inc is the one they had before they changed.
__________________
Former vBulletin.org Staff Member

Please feel free to re-use any of the code in any of my projects submitted to vB.org, so long as original attribution is retained.
Reply With Quote
  #30  
Old 06 Mar 2006, 03:22
rolliet rolliet is offline
 
Join Date: Jan 2006
I have what is probably an easy question. How do I add more then 1 usergroup to the code?

if ($vbulletin->userinfo['usergroupid'] == '25' )

I have tried different things and still can only allow 1 usergroup to access the page.

Thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 08:27.

Layout Options | Width: Wide Color: