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 17: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 22: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 15: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 17:17
Simple vB User login and access control on non vB pages Billspaintball vBulletin 3.5 Add-ons 254 31 Jan 2009 11:57

  #31  
Old 06 Mar 2006, 08:34
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
acidburn:

CTRL-F5,. its normal that your browser cashes the image!
Reply With Quote
  #32  
Old 06 Mar 2006, 10:52
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by idwf

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



:
Oh ok.
Next release will have 0 if there are none.
Reply With Quote
  #33  
Old 06 Mar 2006, 10:55
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by erinys
bug: the link to new PM's is actually a link to the last new posts..
Sorry, will fix in next release (sometime this week).

and there are missing a lot of <br> etc to make it look nice
Yeah, I only have the basics in there.
I left stying out because it makes it look too complicated to some people, while most want to style it to suit their site anyhow.
thanks for this Mod!
Your welcome
Reply With Quote
  #34  
Old 06 Mar 2006, 10:57
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by acidburn0520
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.
Im pretty sure that is just your browser caching the old picture.
Just force a browser refresh to fix.

CTRL + F5 (I think)
Reply With Quote
  #35  
Old 06 Mar 2006, 11:11
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by rolliet
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
Its late and I havent tested this yet but try something like

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #36  
Old 06 Mar 2006, 11:29
ROTPAR ROTPAR is offline
 
Join Date: May 2004
Hi,

can anyone help me with my problem please ? I have no idea what to do....see my last posting.

Thanks a lot
Reply With Quote
  #37  
Old 06 Mar 2006, 11:44
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by ROTPAR
Hi,

can anyone help me with my problem please ? I have no idea what to do....see my last posting.

Thanks a lot
I assume you mean this ?
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Since the path looks correct, and the error refers to function.getimagesize I would suspect that its probably a webserver configuation issue.

You can just commentout the lines to do with resizing the image and it will still display the avatar, but at the origional size.
Reply With Quote
  #38  
Old 06 Mar 2006, 22:49
rolliet rolliet is offline
 
Join Date: Jan 2006
Originally Posted by Billspaintball
Its late and I havent tested this yet but try something like

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thats what I needed, worked great. Thanks for the help.
Reply With Quote
  #39  
Old 07 Mar 2006, 18:02
idwf's Avatar
idwf idwf is offline
 
Join Date: Jun 2003
Real name: David
Originally Posted by acidburn0520
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.
aah. iom getting this too :tired:
Reply With Quote
  #40  
Old 23 Mar 2006, 05:39
johnn johnn is offline
 
Join Date: Aug 2004
Anything on the PM issue? I get nothing when I get a new PM. I see it on my board, but not on my site's index page.
Reply With Quote
  #41  
Old 23 Mar 2006, 23:42
Omario24 Omario24 is offline
 
Join Date: Dec 2005
Originally Posted by johnn
Anything on the PM issue? I get nothing when I get a new PM. I see it on my board, but not on my site's index page.
I am having the same problem.

Last edited by Omario24; 24 Mar 2006 at 02:45.
Reply With Quote
  #42  
Old 24 Mar 2006, 22:32
idwf's Avatar
idwf idwf is offline
 
Join Date: Jun 2003
Real name: David
Please see post #32

I've allready reported this and he say's he's working on it
Reply With Quote
  #43  
Old 30 Mar 2006, 22:17
robert pleban robert pleban is offline
 
Join Date: Jan 2006
Originally Posted by dkleehammer
I'm getting this error wether I'm logged into the forums already or not:
Fatal error: Call to a member function query_read() on a non-object in /var/www/html/forums/includes/login_inc.php on line 139

This is all running on localhost. Am I missing something?
I have the same problem
Reply With Quote
  #44  
Old 31 Mar 2006, 08:48
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Real name: Sean James
ive used the fix from post #12 and now i get this error:

Invalid SQL:
UPDATE session SET newposts = '' WHERE userid = '3';

any ideas?
__________________
www.bluepearl-skins.com - Twitter
Professional Forum Skins
Reply With Quote
  #45  
Old 06 Apr 2006, 08:47
RcMannAE86 RcMannAE86 is offline
 
Join Date: Dec 2005
My users' avatars won't show up. When I go to the src they are coming from such as http://test.xtremecoastin.com/forum/image.php?=1.1 , I get no avatar. The title of the page says image.php (GIF Image, 1x1 pixels).

Originally Posted by johnn
Anything on the PM issue? I get nothing when I get a new PM. I see it on my board, but not on my site's index page.
Originally Posted by Omario24
I am having the same problem.
Try using this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Hope that helps you.

Last edited by RcMannAE86; 06 Apr 2006 at 10:07.
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


New To Site? Need Help?

All times are GMT. The time now is 11:57.

Layout Options | Width: Wide Color: