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

  #151  
Old 31 Jul 2006, 15:33
A17roolz's Avatar
A17roolz A17roolz is offline
 
Join Date: Jan 2006
Originally Posted by A17roolz
Anyone know how to get this working on the same page as vBExternal (using the news fetch).
Anyone?
Reply With Quote
  #152  
Old 05 Aug 2006, 18:04
PitPunks PitPunks is offline
 
Join Date: May 2006
When i am logged in it says im not, and when i login it jsut redirects me to my vbulletin forum.
Reply With Quote
  #153  
Old 07 Aug 2006, 02:40
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by A17roolz
Anyone?
No.
They are not really compatible.

Easiest thing is to is add a login functionaly to vB external.
Reply With Quote
  #154  
Old 07 Aug 2006, 02:45
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by PitPunks
When i am logged in it says im not, and when i login it jsut redirects me to my vbulletin forum.
Check the cookies and path settings in the troubleshooting guide (post 2)
Also flush your browser cache and make sure you force a page refresh (CTRL+F5)
Reply With Quote
  #155  
Old 07 Aug 2006, 04:21
PitPunks PitPunks is offline
 
Join Date: May 2006
many thank you, it was the chache.

Now.. i must edit it to suit my needs

Thanks bill
Reply With Quote
  #156  
Old 08 Aug 2006, 04:55
fredtp fredtp is offline
 
Join Date: Aug 2006
This is a great script! having a problem though. when browsing to the external site containing the login box while not logged in (cookies cleared) instead of showing the normal site, i get the forum login page. when i log in i get a 404 error because its looking for login.php in the root directory (not the forum directory). What i'd like is for a non-logged-in user navigates into the page, they see the normal page plus the login box. i've tried the simple page as suggested in the instructions and same thing happens. if i am logged in prior to going to the page, it works fine.
your help is appreciated, thanks
Reply With Quote
  #157  
Old 09 Aug 2006, 00:56
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by fredtp
when browsing to the external site containing the login box while not logged in (cookies cleared) instead of showing the normal site, i get the forum login page. when i log in i get a 404 error because its looking for login.php in the root directory (not the forum directory).
Sounds like somthing has gone wrong with your paths.
Do step two of troubleshooting to confirm the path, then make sure that it matches
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in your login_inc.php file and also

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

On the page with the login box.

What i'd like is for a non-logged-in user navigates into the page, they see the normal page plus the login box.
Thats how it usually works.
i've tried the simple page as suggested in the instructions and same thing happens. if i am logged in prior to going to the page, it works fine.
your help is appreciated, thanks

Last edited by Billspaintball; 09 Aug 2006 at 01:00.
Reply With Quote
  #158  
Old 09 Aug 2006, 16:09
erinys's Avatar
erinys erinys is offline
 
Join Date: Mar 2006
Hey bill! you should port this to 3.6, since it allready works with it without a problem
Reply With Quote
  #159  
Old 09 Aug 2006, 16:14
delive delive is offline
 
Join Date: May 2006
Hey, I'm still getting problems with the logging in, then it doesn't show me logged in. Sometimes, if I clear my cookies it will work. Then the next time I turn on my computer, or anyone elses for that matter, it won't work. The cookies setting in vb is set to /. I really dont understand why this keeps happening.

Another question, is there a way to decrease the loading times? I've gotten a couple comments that it takes a while for the page to load and it gets stuck when grabbing the users information after they logged in. Am I the only one that gets that?
Reply With Quote
  #160  
Old 09 Aug 2006, 20:51
Mr_Bob's Avatar
Mr_Bob Mr_Bob is offline
 
Join Date: Aug 2004
Originally Posted by Aotw
I alos having a problem with our cutenews installation on the same page, wich started direct after i added the login addon. Been trying to get some support at their site but no luck, maybe someone here could help?

Getting following error.

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/kreativi/public_html/portal/news/inc/functions.inc.php on line 43[/CODE]
I found a solution for this!

Well, it's not really a solution, but it will get rid of the error. I've just started using Cutenews, and found that this error really does not effect Cutenews....at all. It's simply very annoying and makes your website look unprofesional. So, I found that the best thing to do is simply turn off error reporting in the Cutenew's shownews.php file. If you are unsure how to do that, browser into your shownews.php file and at the very top you'll see

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

Just change that to

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

See, if you can't beat it, cover it up. Loads of government officials have done it, now we can too .

While I'm posting, any progress on the avatar issues yet . When I "succeeded' in this I tried to tackle that again...still not finding a good solution.
Reply With Quote
  #161  
Old 14 Aug 2006, 23:07
Grasty Grasty is offline
 
Join Date: Jun 2006
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)
Reply With Quote
  #162  
Old 15 Aug 2006, 03:06
Grasty Grasty is offline
 
Join Date: Jun 2006
somewhere else on these forums i found a suggestion to change $db-> to $vbulletin->db but that didnt work so i changed it back
Reply With Quote
  #163  
Old 15 Aug 2006, 15:57
delive delive is offline
 
Join Date: May 2006
Originally Posted by delive
Hey, I'm still getting problems with the logging in, then it doesn't show me logged in. Sometimes, if I clear my cookies it will work. Then the next time I turn on my computer, or anyone elses for that matter, it won't work. The cookies setting in vb is set to /. I really dont understand why this keeps happening.

Another question, is there a way to decrease the loading times? I've gotten a couple comments that it takes a while for the page to load and it gets stuck when grabbing the users information after they logged in. Am I the only one that gets that?
Does anyone have any ideas?
Reply With Quote
  #164  
Old 16 Aug 2006, 07:28
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by delive
Another question, is there a way to decrease the loading times? I've gotten a couple comments that it takes a while for the page to load and it gets stuck when grabbing the users information after they logged in. Am I the only one that gets that?
Should be no noticeable difference in loading time from a normal page.

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?
Reply With Quote
  #165  
Old 16 Aug 2006, 07:33
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Grasty
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)
Have you tried the test login script in the troubleshooting section yet?

Also, can you post your pages code here so I see if there is anything obvious.
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 16:42.

Layout Options | Width: Wide Color: