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.10, 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.6.5 Rating: (11 votes - 4.82 average) Installs: 195
Released: 02 Dec 2006 Last Update: 24 Apr 2007 Downloads: 1966
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.6 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.6
  • vB 3.6.1
  • vB 3.6.2
  • vB 3.6.3
  • vB 3.6.4
  • vB 3.6.5


Changelog

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

Version 1.0 (2nd December 2006)
  • Very similar to my vB 3.5 version, however logout bug fixed and should be more compatible with other scripts on your page.



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

  #16  
Old 06 Dec 2006, 01:55
Osterling Osterling is offline
 
Join Date: Jan 2004
I am trying to put $vbulletin->userinfo['username'] into a variable named $username, however it isn't working. Here is my code, is there something I am missing?

$username = $vbulletin->userinfo['username'];
Reply With Quote
  #17  
Old 06 Dec 2006, 23:50
eob eob is offline
 
Join Date: Jan 2002
I'm having an interesting problem...

If I run this hack, it deletes any variable called before it, for example, if id=6 before global.php, id = NULL afterwards?

Otherwise a great hack, but mucho help would be appreciated?

Last edited by eob; 07 Dec 2006 at 00:06.
Reply With Quote
  #18  
Old 07 Dec 2006, 05:43
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Osterling View Post
I am trying to put $vbulletin->userinfo['username'] into a variable named $username, however it isn't working. Here is my code, is there something I am missing?

$username = $vbulletin->userinfo['username'];

That should work as long as the page with that code includes global.php

You dont have anything else that uses the variable $username do you?
What happens if you name the variable something else like $member_name ?
Reply With Quote
  #19  
Old 07 Dec 2006, 05:57
svoec svoec is offline
 
Join Date: Mar 2002
I have one strange issue, when someone is logged out, and they log in (or if they click the log out link) -- it opens in a new window --
is that normal behavior ?

the plan I had for this makes it a look a bit strange...
thanks for the help
Reply With Quote
  #20  
Old 07 Dec 2006, 11:36
SunderlandJ SunderlandJ is offline
 
Join Date: Dec 2003
Real name: Leigh
I need help....

please check http://gunge.gothic-craving.com/links.php for a demo

I had to remove chdir line as it wasnt finding a file, which kept causing errors, now when I use the login box, it logs me in, but the login box stays there and at the bottom of the screen it says "done, with errors on page"

I know nothing about php so I would appreciate some help here. I have no idea what im doing or anything

Leigh
Reply With Quote
  #21  
Old 07 Dec 2006, 13:17
eob eob is offline
 
Join Date: Jan 2002
Hey Bill, any chance of helping me out with my id=6 problem? It's for a giant of a site, would love to get it working as I've styled it in beautifully and everything
Attached Images
File Type: jpg screenshot.jpg (151.8 KB, 136 views)
Reply With Quote
  #22  
Old 10 Dec 2006, 20:16
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Great hack! Thanks so much! I really needed this.

Installed!
Reply With Quote
  #23  
Old 13 Dec 2006, 08:06
ManagerJosh's Avatar
ManagerJosh ManagerJosh is offline
 
Join Date: Feb 2002
Hey Bill:

Out of curosity, does this support multiple unique domains and subdomains,?

Ie. vBulletin is here: http://www.myvbinstall.com
But login pages are at http://beta.mydomain1.com
http://placeholder.domainworld2.com

?
__________________
Latest News:

Nothing Going On here...just hanging around vBulletin.com
Reply With Quote
  #24  
Old 14 Dec 2006, 00:46
Doctor Who's Avatar
Doctor Who Doctor Who is offline
 
Join Date: Jun 2005
Any idea what would be causing the attached error, and how to fix it? The only javascript that is included in the page is from the login_inc.php file.
Attached Images
File Type: png error.png (6.6 KB, 26 views)
Reply With Quote
  #25  
Old 14 Dec 2006, 19:47
Aur-Phala.Com Aur-Phala.Com is offline
 
Join Date: Jan 2006
hey any idea how i could make it show on whosonline page
so people who are using my page www.aur-phala.com/hotmail
will show up on whos online so i can see whos checking that page out
Reply With Quote
  #26  
Old 19 Dec 2006, 05:09
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by ManagerJosh View Post
Hey Bill:

Out of curosity, does this support multiple unique domains and subdomains,?

Ie. vBulletin is here: http://www.myvbinstall.com
But login pages are at http://beta.mydomain1.com
http://placeholder.domainworld2.com

?
Thats very hit and miss Im afraid.
Some have been able to do that, but others havent.

You can try, and there is some information on that in the troubleshooting guide but dont be too disapointed if it wont work.
Reply With Quote
  #27  
Old 19 Dec 2006, 05:20
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Aur-Phala.Com View Post
hey any idea how i could make it show on whosonline page
so people who are using my page www.aur-phala.com/hotmail
will show up on whos online so i can see whos checking that page out
Easy way would be to just make that page in a vB forums page.
Theres a couple of hacks here that do just that.
Reply With Quote
  #28  
Old 22 Dec 2006, 03:15
Aur-Phala.Com Aur-Phala.Com is offline
 
Join Date: Jan 2006
could you link me to it
the page is a php page tho,so how wud i go abt this liek what needs to be included
Reply With Quote
  #29  
Old 05 Jan 2007, 23:37
Osterling Osterling is offline
 
Join Date: Jan 2004
who is online

is there a way i can show on my nonvb homepage who is online?
Reply With Quote
  #30  
Old 09 Jan 2007, 05:05
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Osterling View Post
is there a way i can show on my nonvb homepage who is online?
Sorry,
This mod does not support that.
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:45.

Layout Options | Width: Wide Color: