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: 4.00, by Billspaintball (Member) Billspaintball is offline
Developer Last Online: Nov 2011 I like it Show Printable Version Email this Page

vB Version: 4.0.0 Beta 3 Rating: (8 votes - 4.38 average) Installs: 97
Released: 16 Nov 2009 Last Update: Never Downloads: 1249
Not Supported Additional Files Re-usable Code Translations External Content  

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 4.0 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.

I've cut it down to the bare minimum that it needs to work, no fancy stuff such as avatars, PM's, or even formating. (That is in the Deluxe version - not yet released)

This is not supported, but if any questions / issues are posted here (not PM'ed or emailed) I will try and answer them if I have 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 4.0 beta3


Change log

Version 4.00 (15th November 2009)
  • Initial vB 4.0.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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

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

Name:	cwp-loggedout.jpg
Views:	2296
Size:	7.3 KB
ID:	106191  

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
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 22 Apr 2011, 18:34
txsbmw's Avatar
txsbmw txsbmw is offline
 
Join Date: May 2006
After upgrading VB to 4.1.2 this no longer works. Anyone else having an issue?
Reply With Quote
  #47  
Old 23 Apr 2011, 21:09
theloller theloller is offline
 
Join Date: Apr 2011
Originally Posted by txsbmw View Post
After upgrading VB to 4.1.2 this no longer works. Anyone else having an issue?
a lot of people i guess.
i need help too ....

the script didn't know if i'm logged or not showing always the login form.

is this changed in the 4.1.x ?


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

Reply With Quote
  #48  
Old 28 May 2011, 09:26
MadsK MadsK is offline
 
Join Date: Apr 2008
If i login through my forum, and then return to my frontpage, where my loginbox is located it will show me as logged in. However I cannot get it to log me in from the frontpage through the login script. I think it might be a cookie problem or something similar.
Reply With Quote
  #49  
Old 01 Oct 2011, 14:14
rzy2 rzy2 is offline
 
Join Date: Sep 2011
First thanks for this mod too.

I have integrated it into a yii framework based web app and it works fine but i still get those warnings. I have tried usinge the absolute path and some oder things but nothing worked.

Do u have some other suggestions to get rid of this warnings?


Originally Posted by Centrix View Post
Thanks for this mod! I love it. I can make pages on my main site that requires users to be logged in, and even better: the coding is really easy to understand, no 3490859345 lines of coding that confuses the hell outa me.

Works perfectly on my site ^^



I got the same thing first too, but you need to put the full path to your forum, not just /forums/.

So /home/username/public_html/forums/ for an example. It will work
Reply With Quote
  #50  
Old 23 Feb 2012, 06:10
nanhe nanhe is offline
 
Join Date: Feb 2012
I Actually want if i login in my site then i loged in vbulltin but in this case we are using vbulletin login form ...
Reply With Quote
  #51  
Old 14 Mar 2012, 13:38
txsbmw's Avatar
txsbmw txsbmw is offline
 
Join Date: May 2006
Using vb 4.1.10 and the you visited last info no longer shows nor does the Private Messages Info. Anyone have any idea what needs to be changed to get it to show?
Reply With Quote
  #52  
Old 23 Mar 2012, 22:07
forcerm forcerm is offline
 
Join Date: Jun 2008
How can i get this to work on a subdomain.

my forum is www.mydomain.com/forum

my test site is test.mydomain.com

my main website is www.mydomain.com

If i go to www.mydomain.com then this script works, if i go to test.mydomain.com then it says i am not logged in even though i am.

What do i need to change to make it work on subdomains?
Reply With Quote
  #53  
Old 29 Mar 2012, 20:27
zero477 zero477 is offline
 
Join Date: Jan 2012
It is not working for me .... vBulletin 4.1
Reply With Quote
  #54  
Old 15 Jun 2012, 11:36
doubleclick doubleclick is offline
 
Join Date: Jul 2004
Does anyone know how to add "remember me" and/or the connect with facebook button?
Reply With Quote
  #55  
Old 17 Oct 2012, 15:24
lollodev lollodev is offline
 
Join Date: Jun 2007
not working for VBulletin 4.2. Does anyone have a solution for this?
Reply With Quote
  #56  
Old 17 Nov 2012, 07:33
sina1808 sina1808 is offline
 
Join Date: Sep 2005
hi
my site runing on the server1 , and my forum installed on server2
can using this mod ?
plz help me
Reply With Quote
  #57  
Old 06 Dec 2012, 17:57
tsptom tsptom is offline
 
Join Date: Jan 2006
Originally Posted by lollodev View Post
not working for VBulletin 4.2. Does anyone have a solution for this?
I was very happy to see this mod, but have not heard anyone say they have successfully installed it on vb 4.2 yet. The thread looks DOA so I assume this is not a good sign.

Anyone? tnx.
Reply With Quote
  #58  
Old 08 Dec 2012, 16:43
gocreate gocreate is offline
 
Join Date: Dec 2007
Is there any chance to vb 4.2 support of this mod?
Reply With Quote
  #59  
Old 06 Feb 2013, 13:41
lollodev lollodev is offline
 
Join Date: Jun 2007
Originally Posted by tsptom View Post
I was very happy to see this mod, but have not heard anyone say they have successfully installed it on vb 4.2 yet. The thread looks DOA so I assume this is not a good sign.

Anyone? tnx.
I found a way to have it working with VB 4.2.0.
It is very important to read the "trouble shooting" section at the beginning of this post!

In my case it worked by adding the following lines at the beginning of the script (login_inc.php):

$curdir = getcwd ();
chdir('/path/to/my/forum');
require_once('/path/to/my/forum/global.php');
chdir ($curdir);
Reply With Quote
  #60  
Old 07 Feb 2013, 14:55
lollodev lollodev is offline
 
Join Date: Jun 2007
is there a way to add the FB connect to this script?
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:39.

Layout Options | Width: Wide Color: