Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Simple vB User login and access control on non vB pages Details »
Simple vB User login and access control on non vB pages
Mod Version: 1.30, 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: (4 votes - 5.00 average) Installs: 138
Released: 17 Nov 2005 Last Update: 24 Apr 2007 Downloads: 979
Not Supported Additional Files  

Hack Description

This is a cutdown version of the user authentication and access control system I use on the non vB pages on my website.

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.

Ive cut it down to the bare minimum that it needs to work, no fancy stuff such as avatars, PM's, or even formating.

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 script has been confirmed as working on
  • vB 3.5.x - All Versions


Changelog

Version 1.30 (24th April 2007)
  • Fixed - // in paths bug
  • Fixed - Javascript warning in some browsers
  • Fixed - Tidied up some code

Version 1.20 (2nd December 2006)
  • Fixed Logout incorrect path bug
  • Made change to reduce compatibility problems with foreign scripts

Version 1.10 (4th Feb 2006)
  • Changed login_inc.php so you only need to edit path in one place now.
  • Added more commenting to login_inc.php
  • Added usage instructions to instructions file
  • Added troubleshooting guide with all common problems and fixes to instructions file.
Note: It is NOT necessary to update from 1.0 to 1.10.
There is no functionality changes or bug fixes between these 2 releases.

Version 1.0 (17th November 2005)
  • Initial Release


Deluxe Version of this hack is now available
Has Avatars, PM's, Number of Posts etc.

Click Here


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
Deluxe vB User login and access control on non vB pages Billspaintball vBulletin 3.5 Add-ons 393 13 Jul 2011 21:50
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

  #241  
Old 28 Jul 2007, 11:28
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by beejeebers View Post
How would I pull the password value out before it gets encrypted?
You cant see the actual vB password from vB, it is encrypted.

Spose you could use vb_login_password but if you start using that all over your site it will be a security weakness.
Reply With Quote
  #242  
Old 16 Sep 2007, 05:28
ViperCC ViperCC is offline
 
Join Date: Jan 2002
Originally Posted by ApplePro View Post
Hello guys,

When I run sample script (test.php), I'm getting an error about headers:



I've checked script and there are no spaces before first 4 lines of code.

By the way, I see this only when I logged out. When I logged in (through vBulletin), I see this:



How can I fix this?

PS: I have lastest vBulletin version installed. And the installation is fresh (just one thread).
You need to either disable error output (which should be done on all Production level machines), or you need to reduce the errors that PHP reports (Notices aren't really errors, and don't really need to be logged on a production system. They're good for development.)

You'll either need to edit your php.ini file (requires root access to the machine), set a flag in your .htaccess file, or even set the config option in your PHP somewhere with ini_set().

Reference PHP's error logging manual for more info: http://us2.php.net/manual/en/ref.errorfunc.php
Reply With Quote
  #243  
Old 16 Sep 2007, 05:32
ViperCC ViperCC is offline
 
Join Date: Jan 2002
I'm having some issues using this, wondering if anyone else is seeing the same.

When global.php is included, I get the following fatal error:

Fatal error: Call to a member function query_first_slave() on a non-object in /home/jay/web/web/forum/includes/functions.php on line 1178

The line of code it's trying to run starts as follows:

$user = $vbulletin->db->query_first_slave("

This is in the "fetch_userinfo" function. It seems that the db object isn't being instantiated properly. I'll dig around some and see if I can't figure out what's wrong, just wanted to post a message first. This is in VB 3.6.7 PL1.
Reply With Quote
  #244  
Old 16 Sep 2007, 05:52
ViperCC ViperCC is offline
 
Join Date: Jan 2002
I believe I found my issue. I was putting the initialization code inside a class in my script. This was causing the "global $vbulletin;" bit inside VB's functions to lose the $vbulletin object's context. Would certainly be nice to see VB goto more OO based code, that functions.php file is crazy! 5261 lines!
Reply With Quote
  #245  
Old 24 Sep 2007, 04:08
brandondrury brandondrury is offline
 
Join Date: Oct 2005
Here's a new update to my problems with the hack redirecting to the forum/index.php every single time in Firefox.

I started programming a new site back in May in which I used this mod for well over 50 external php pages. It worked great with both IE and Firefox. Then just today (just days before the site launch) it begins the problems with Firefox again.

I had (stupidly) changed my URL in admincp from domain.com/forum to domain.com/forum/ (I didn't notice the message that said "do not use a /").

Because I had made several changes in the admin, I didn't realize what I had done. I noticed my links pointing to the forum with the system had two slashes // in them. I just went in and removed one of the slashes.

So now I've figured out what I have done and have tried changing them back to the way they originally worked and Firefox has decided to start it's old antics again. It now redirects to the forum/index.php every single time.

Brandon
__________________
Home Recording Forum

Brandon
Reply With Quote
  #246  
Old 03 Dec 2007, 20:01
thegabriel thegabriel is offline
 
Join Date: May 2006
I want to integrate my CMS written in smarty coding with VBulletin. I implemented the above code and it was working fine with the sample script. But when I try to integrate it with my CMS, I am not able to access the session variable value when I am return back to CMS. The session is still active in VBulletin and I am able to browse through the forum.

I tried the settings suggested in this thread about how I should change the cookie path settings. Wondering if anyone could help me figure out where I am going wrong.
Reply With Quote
  #247  
Old 16 Dec 2007, 17:29
HaCaoChien HaCaoChien is offline
 
Join Date: Jun 2005
I got this message:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 4840

Warning: preg_replace() [function.preg-replace]: Empty regular expression in /includes/functions.php on line 4840
How can I fix it?
Reply With Quote
  #248  
Old 16 Dec 2007, 17:32
HaCaoChien HaCaoChien is offline
 
Join Date: Jun 2005
That warning alway show if user do not loged in. When loged in (from board or sth like that), every thing is ok
Reply With Quote
  #249  
Old 23 Jan 2008, 14:58
F4Flake F4Flake is offline
 
Join Date: Jan 2008
Ok, after messing around with this for ages wondering why it appeared to work and not work I realised that .....

If you're running your forum on a localhost test server... apache doesn't handle the cookies correctly....

anyone any ideas how I can force my localhost to do the cookies?


sorted... don;t worry.

Last edited by F4Flake; 23 Jan 2008 at 17:25.
Reply With Quote
  #250  
Old 04 May 2008, 23:22
Ezo Ezo is offline
 
Join Date: Sep 2006
$_GET
doesn't seem to stack with this mod..
Reply With Quote
  #251  
Old 30 Jun 2008, 15:23
EeeZee EeeZee is offline
 
Join Date: Jan 2008
Real name: Randy
All I want to do is be able to give people access to the forums (starting with the first page showing categories, etc.) directly from a htm page on the main site thus bypassing the built-in login page. This mod looks promising. I am running vB 3.7.1 PL 1 but see nothing indicating this is do-able with this version. Or maybe I am looking at the wrong mod? I would sincerely appreciate any help advice and guidance.
Reply With Quote
  #252  
Old 12 Aug 2008, 19:54
AzaDiyaR AzaDiyaR is offline
 
Join Date: Oct 2006
This mod work on 3.7.2. pl 1

thank you very much working perfect.

not giving problem...
Reply With Quote
  #253  
Old 26 Aug 2008, 08:34
jellybaby jellybaby is offline
 
Join Date: Jul 2005
Has anyone got this working with the latest version of Joomla?
__________________

Reply With Quote
  #254  
Old 05 Dec 2008, 17:59
Commander-X Commander-X is offline
 
Join Date: Jan 2007
Real name: Ronald Tan
I did the test.php part and when I run it on my webrowser the login box displays perfect but when I tried to log in it gives me an eror 404. I tried running only the login_inc.php on my browser and it logs me in but won't show that I'm logged in. I ttried the cookie path settings in my admincp but with thesame results. It's driving me nuts . Is there a way so I can just query the database for the username and password withpit including any script from VB. how do you retrieve encrypted passwords?

Last edited by Commander-X; 05 Dec 2008 at 18:04. Reason: too short
Reply With Quote
  #255  
Old 31 Jan 2009, 10:57
kwchan kwchan is offline
 
Join Date: Dec 2004
Do u have something similar for v3.0.3?
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 21:13.

Layout Options | Width: Wide Color: