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

  #46  
Old 06 Apr 2006, 11:17
wackyjoe wackyjoe is offline
 
Join Date: Apr 2006
Hi there i keep getting this:

Fatal error: Call to a member function on a non-object in /home/cfadmin/public_html/cubicforum/global.php on line 22

i dont know how the other guy fixed it
Reply With Quote
  #47  
Old 06 Apr 2006, 11:36
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
Update: When i change the way the forum works with "read" posts to Database, the addon breaks with the error discussed on the 1st page ;(
Reply With Quote
  #48  
Old 10 Apr 2006, 04:10
brad_irc's Avatar
brad_irc brad_irc is offline
 
Join Date: Aug 2005
Does anyone know a method to implement a login timeout similar to the admin panel with this hack/script? Another question thats unrelated, but, where can I find out whats listed in $vbulletin and/or $vbulletin->userinfo ?
Reply With Quote
  #49  
Old 16 Apr 2006, 04:34
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Version 2.00 has now been released.

Please make sure that you have downloaded and installed version 2.0 before posting any support requests.

Any downloads prior to now will have been version 1.00.
The first post has been updated with the new files and instructions.
Reply With Quote
  #50  
Old 17 Apr 2006, 03:43
moethelawn's Avatar
moethelawn moethelawn is offline
 
Join Date: Nov 2003
Location: Iowa
Real name: Chris
I installed the new version. I checked it out on IE and if you're not logged in, it gives me a "Done, but with errors on page" in the status bar at the bottom. It says for the error:

Line: 27
Char: 1
Error: Expected '('
Code: 0

Otherwise, it's really good ^_^
Reply With Quote
  #51  
Old 22 Apr 2006, 02:33
arossphoto arossphoto is offline
 
Join Date: Jan 2006
Hi Bill,

I noticed on your site that the forum stats include total members, as well as total posts and topics. I don't get that with this hack. Is there a way to add total members?

Thanks.
Reply With Quote
  #52  
Old 22 Apr 2006, 09:13
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by moethelawn
I checked it out on IE and if you're not logged in, it gives me a "Done, but with errors on page" in the status bar at the bottom. It says for the error:

Line: 27
Char: 1
Error: Expected '('
Code: 0
A couple of other people have reported this, but I'm unable to replicate it.
I've tested it in Avant, IE6, Opera 8.54 and 1.5.0.2

What version of IE and what OS are you running?

Also, have you tried just the sample code in the trouble shooting section in post 2 in this thread?
Reply With Quote
  #53  
Old 22 Apr 2006, 09:15
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by arossphoto
Hi Bill,

I noticed on your site that the forum stats include total members, as well as total posts and topics. I don't get that with this hack. Is there a way to add total members?

Thanks.
Yes, I can add it next release.
Reply With Quote
  #54  
Old 22 Apr 2006, 17:11
Jay... Jay... is offline
 
Join Date: Jan 2006
How do i edit the way this looks? like the font used, size, layout etc etc?
Reply With Quote
  #55  
Old 23 Apr 2006, 11:50
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
You edit the login_inc.php file and add CSS or HTML as desired.
Reply With Quote
  #56  
Old 23 Apr 2006, 12:18
Jay... Jay... is offline
 
Join Date: Jan 2006
Originally Posted by Billspaintball
You edit the login_inc.php file and add CSS or HTML as desired.
bit too advanced for me lol
Reply With Quote
  #57  
Old 30 Apr 2006, 17:09
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
I have posted a problem on the simple version of this hack but without any resolution.
Maybe someone here can help.
I've installed as instructed.
I have two websites on the same server. I want the forums login to be working on pages from a different website.
I have the other domain set in my forums to be allowed to post. And I have set the cookie domain to be blank.
When people log in, the action succeeds and the 'thanks for logging in' message pops up, but then I'm returned to the login screen. Not logged in.
It's possibly a cookie issue. But I don't have a clue how to fix this.
Can anyone help, please?
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Now using Xenforo because vB5 is not suitable for large forums and vB3 and vB4 are no longer being developed.
Reply With Quote
  #58  
Old 04 May 2006, 11:23
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
im still getting that error when i switch from "cookies" to "database" in the vbulletin options, even with the new version.. ;(

only it talks about "posts" instead of "newposts" as error argument
Reply With Quote
  #59  
Old 04 May 2006, 11:24
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT COUNT(*) AS count FROM post AS postLEFT JOIN threadread AS threadread ON (threadread.threadid = post.threadid AND threadread.userid = 2) WHERE dateline >= 1146735048 AND dateline > IF(threadread.readtime IS NULL, 1145877724, threadread.readtime);

MySQL Error : Unknown table 'post' in on clause
Error Number : 1109
Reply With Quote
  #60  
Old 05 May 2006, 01:36
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by erinys
MySQL Error : Unknown table 'post' in on clause
Error Number : 1109
I will have a look at this over the weekend.
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 19:38.

Layout Options | Width: Wide Color: