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: 1965
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

  #151  
Old 20 Aug 2007, 04:44
imtwoods imtwoods is offline
 
Join Date: Jul 2007
This hack looks like it will work for my site, but before I try it, will it work with version 3.6.8?
Reply With Quote
  #152  
Old 23 Aug 2007, 21:29
Topuk Topuk is offline
 
Join Date: Aug 2007
ok we have a version that will allow someone of a certain primary group to see the page like this:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
{
echo "This is only visible to people in usergroup 6";}
?>

has anyone worked out how to do it with a secondary group? i.e. if they are members of 3 or 4 groups and the page is available to them as a secondary member??
Reply With Quote
  #153  
Old 04 Sep 2007, 19:15
txsbmw's Avatar
txsbmw txsbmw is offline
 
Join Date: May 2006
Originally Posted by Billspaintball View Post
There is a guide on using this script with vBexternal right here
http://www.vbulletin.org/forum/showp...&postcount=399

I have vbexternal, tried this fix but it still just redirects me back to the page after logging in and instead of it showing I am logged in, it shows the log in box. I have also checked my cookie settings as well. Running 3.6.8

Anyone know how to get it to work correctly?
Reply With Quote
  #154  
Old 20 Sep 2007, 12:39
wsdeluxe's Avatar
wsdeluxe wsdeluxe is offline
 
Join Date: Mar 2006
I'm having problems with this.

I have my forums at domain1.com/forums/ and a site at site1.com

I've followed all the instructions and everything and its not working correctly. If I clear my cookies, I login and it redirects me to site1.com and shows me as logged in however in the address bar there is ?s= then the long session ID string. If I navigate to another page, this goes and I'm logged out.

Any idea whats going on here? I'm pulling my hair out over this!

The connection to the vB files is working, the redirect is working, but it is not setting the cookies correctly. I've tried the cookie domain as blank, .site1.com, .domain1.com and its just not working. It keeps me logged in on the forums, just not the site.

I've got root access so can modify any settings if needed (however I don't think its server-side related).

Thanks for your time & hard work.
Reply With Quote
  #155  
Old 22 Sep 2007, 21:09
imtwoods imtwoods is offline
 
Join Date: Jul 2007
Does anyone know if this hack will work with iframes? Specifically, it I have the login box and login detection code within an iframe (say login.php), and this iframe is part of index.html, if I enter my username/password in the login box, it seems to recognize that I've logged in, but it won't redirect me back to the main page, which is index.html. It seems to redirect back to my iframe page, login.php, which is not the behavior I want. Does anyone know how to make it redirect to the main page, index.html, which includes my login.php in an iframe? This is my first time using this hack.
Reply With Quote
  #156  
Old 16 Oct 2007, 12:49
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
I get this errors:


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

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:


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

__________________
I'm italian, I am learning english.. so, please, if you see any errors in my grammar or spelling, let me know via PM. Danke!
Reply With Quote
  #157  
Old 18 Oct 2007, 14:41
jags2ooo jags2ooo is offline
 
Join Date: Jan 2002
Hi, been using this for a while its great, wondering if its possible to allow additional user group members to access a certain page? Not only primary.
Reply With Quote
  #158  
Old 18 Oct 2007, 16:00
Snatch Snatch is offline
 
Join Date: Jan 2004
Originally Posted by Triky View Post
I get this errors:


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

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:


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

The same Problems by me since I have upgrade to MySQL 5

Have you fixed it?
Reply With Quote
  #159  
Old 19 Oct 2007, 09:04
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
No man, I'm still waiting for a reply.
__________________
I'm italian, I am learning english.. so, please, if you see any errors in my grammar or spelling, let me know via PM. Danke!
Reply With Quote
  #160  
Old 22 Oct 2007, 13:21
adonfun adonfun is offline
 
Join Date: Aug 2006
Originally Posted by Triky View Post
I get this errors:


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

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
ETA: never mind, don't think this is the issue:
chdir('webcity');
require_once('webcity/global.php');

should be something in the format of:

chdir('/home/webc/public_html/webcity');
require_once('/home/webc/public_html/webcity/global.php');



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

I had this problem before. After moving the code to the very top of any codeblock should solve it.
__________________
Reply With Quote
  #161  
Old 17 Nov 2007, 17:20
tirol07 tirol07 is offline
 
Join Date: Mar 2007
Unhappy ?? Show for Only registered users ???

Hi,

have a question,

How can I Disable to show this php-Page for non registered users?
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is a download script, and I want disable it for non-registered user!
If they want enter to this page, A window will appear with a message "You must logged in or register to enter this Page"!

Thank you!
Reply With Quote
  #162  
Old 21 Nov 2007, 23:13
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
Originally Posted by adonfun View Post
ETA: never mind, don't think this is the issue:
chdir('webcity');
require_once('webcity/global.php');

should be something in the format of:

chdir('/home/webc/public_html/webcity');
require_once('/home/webc/public_html/webcity/global.php');
Thank you, adonfun. I will try with this when I will have some free time!
I had this problem before. After moving the code to the very top of any codeblock should solve it.
What you mean with this? I haven't understand..
__________________
I'm italian, I am learning english.. so, please, if you see any errors in my grammar or spelling, let me know via PM. Danke!
Reply With Quote
  #163  
Old 13 Jan 2008, 07:46
robinhood1995's Avatar
robinhood1995 robinhood1995 is offline
 
Join Date: Dec 2002
Awesome hack...
Reply With Quote
  #164  
Old 13 Jan 2008, 16:59
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Location: A Kanuk in Ohio
You spelled "Canuck" wrong, hoser...
Reply With Quote
  #165  
Old 13 Jan 2008, 19:40
robinhood1995's Avatar
robinhood1995 robinhood1995 is offline
 
Join Date: Dec 2002
Crap never noticed!
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 11:10.

Layout Options | Width: Wide Color: