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: 2.00, 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.7.0 RC 1 Rating: (7 votes - 5.00 average) Installs: 98
Released: 21 Mar 2008 Last Update: Never Downloads: 1253
Not Supported Additional Files Re-usable Code Translations  

Hack Description

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

This uses the vB 3.7 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 displaying 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 don't 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.7 RC1


Change log

Version 2.00 (21st March 2008)
  • Initial vB 3.7.x 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.

Screenshots

Click image for larger version

Name:	cep-loggedin.jpg
Views:	1506
Size:	7.2 KB
ID:	77562   Click image for larger version

Name:	cwp-loggedout.jpg
Views:	1581
Size:	7.3 KB
ID:	77563  

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 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 19 Jan 2010, 02:03
Ipuck's Avatar
Ipuck Ipuck is offline
 
Join Date: Jun 2006
Real name: William O
Does any one know if I can use this mod on my site if the forums is in a subdomain? when I add: require_once('/path/to/your/forums/global.php'); the page goes blank.
Reply With Quote
  #47  
Old 19 Jan 2010, 02:21
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Originally Posted by Ipuck View Post
Does any one know if I can use this mod on my site if the forums is in a subdomain? when I add: require_once('/path/to/your/forums/global.php'); the page goes blank.

/path/to/your/forums
needs to be the actual path to your forum root.
if you need:
Open up a text editor and paste this in it:

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

and name the file
path.php
make sure it's path.php and not path.php.txt or anything like that.
Upload that file to your forum root and point your browser to it.
example:
http://yourforum.org/forum/path.php
should show you what you need to replace /path/to/your/forums with. delete that file when you're done with it.
Hope this helps.
Reply With Quote
  #48  
Old 19 Jan 2010, 02:31
Ipuck's Avatar
Ipuck Ipuck is offline
 
Join Date: Jun 2006
Real name: William O
Thank you for your quick response. I actually did add the path to the forum, but still doesnt work. This is what I got:

<?php
$curdir = getcwd ();
chdir('/var/www/vhosts/mydomain.com/subdomains/mysubdomain/httpdocs/forum/');
require_once('global.php');
chdir ($curdir);
?>
It should work, but unfortunately it doesn't. I just don't understand why it doesn't work.

I also tried:

<?php
$curdir = getcwd ();
chdir('/var/www/vhosts/mydomain.com/subdomains/mysubdomain/httpdocs/forum/');
require_once(''/var/www/vhosts/mydomain.com/subdomains/mysubdomain/httpdocs/forum/global.php');
chdir ($curdir);
?>
Reply With Quote
  #49  
Old 19 Jan 2010, 03:06
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Originally Posted by Ipuck View Post
Thank you for your quick response. I actually did add the path to the forum, but still doesnt work. This is what I got:



It should work, but unfortunately it doesn't. I just don't understand why it doesn't work.

I also tried:
pm me the link to path.php on your server.
Reply With Quote
  #50  
Old 03 Feb 2010, 03:45
metalguy639 metalguy639 is offline
 
Join Date: Jan 2009
Originally Posted by Billspaintball View Post
Just a brief heads up for anyone who is interested, initial testing shows that this works with vB4 beta 3
Great but is there a fix for this cookies problem that everyone is having. I used this hack before and never had it do this before so it must be something to do with vb 3.8.4.
Reply With Quote
  #51  
Old 22 Apr 2010, 14:47
wolbrom wolbrom is offline
 
Join Date: Aug 2009
vB4

Has this scrip been confirmed with vB4 (release) yet?
Reply With Quote
  #52  
Old 31 May 2010, 23:56
thenewuser thenewuser is offline
 
Join Date: Mar 2005
Thank you for this!

Right now I am getting a:

Fatal error: Call to a member function query_read() on a non-object in (path)/www/www/forums/includes/adminfunctions.php on line 2399

When it is loaded into a file with WordPress. It does work in a stand alone PHP file.

If you can help me debug this I shall donate! (Basically paying for your services as is only fair.)

I am using 3.8.5.
Reply With Quote
  #53  
Old 22 Jul 2010, 19:26
Hex_legend Hex_legend is offline
 
Join Date: May 2007
My demo site is www.gungeuk.com/newdesign and the forums are at www.gungeuk.com/forum

On my site, I have /includes/header.php and /includes/sidebar.php.

On the sidebar is where I want to put the login box, so in my header, I put the code:


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

and in the sidebar, I have:


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

where the login box is to go.

However, when I login, it will log me in but still shows the login box on the sidebar.

In my ACP cookie path settings, its saved to /

My path can be found at www.gungeuk.com/forum/path.php

Please let me know how I can get it to show me as logged in.

Thanks

Leigh
Reply With Quote
  #54  
Old 28 Jul 2010, 13:53
fake83 fake83 is offline
 
Join Date: Sep 2009
same problem here
Reply With Quote
  #55  
Old 04 Apr 2011, 02:22
NinjaKiwi's Avatar
NinjaKiwi NinjaKiwi is offline
 
Join Date: Apr 2011
Any chance of a solution to this problem for VB4?
Reply With Quote
  #56  
Old 23 Apr 2011, 14:52
theloller theloller is offline
 
Join Date: Apr 2011
Originally Posted by fake83 View Post
same problem here
help us
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


New To Site? Need Help?

All times are GMT. The time now is 18:30.

Layout Options | Width: Wide Color: