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

  #16  
Old 03 Jan 2010, 21:07
Breakpoint Breakpoint is offline
 
Join Date: Dec 2005
You should make yur file XHTML compliant, it causes over 100 errors when trying to validate at W3C Schools
Reply With Quote
  #17  
Old 04 Jan 2010, 08:15
MOGmartin MOGmartin is offline
 
Join Date: Feb 2008
Originally Posted by djr View Post
Hiya Bill,

Do you think this could work as a wrapper in WordPress, where we use your authentication system to require people to authenticate against vB before they're allowed to post comments?

I can easily extend WordPress' comment section and would like to do something like (pseudo code obviously):

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

Would it display the forum's username (if echoed correctly) or do we need the deluxe version for that? (which sounds like a better solution anyway, since I'd like to use the avatars as well). I don't care so much about all the other vB stuff, but would love to have this as a simple vB powered authentication system inside WordPress.
Im interested in incorporating this on WP as well, comments would be handy but not totally needed, but what I am looking to do is use the wordpress usergroup permission settings to restrict access to certain articles, has anyone tried this yet?

thanks!

MOGmartin
Reply With Quote
  #18  
Old 05 Jan 2010, 14:48
TheJordan TheJordan is offline
 
Join Date: Dec 2007
Originally Posted by NittoMOD View Post
Im getting this error -


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

My file paths are correct and there is no white space. Any idea's?
Originally Posted by NittoMOD View Post
Any help with this?
Originally Posted by David Regimbal View Post
I too have the same issue as you =[

My Fix:

well, I'm using this in the root of the site for a custom html page. I feel like a dumbass because i looked at the source and it had "<html>" twice. So my "custom.php" file that I made all I included in it was:


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

That seemed to work for me and fixed my issue. Hope this helps someone else.
From the included instructions file:
If you get a message saying headers already sent or cookies already sent, chances are that there is something, even just a space before the 4 lines of code in part 1. Edit this and ensure that there are no spaces before it.
Reply With Quote
  #19  
Old 07 Jan 2010, 07:44
Cface Cface is offline
 
Join Date: Dec 2009
This is pretty damn useful. Tagged for later.
I'm guessing once the Deluxe version comes out we gotta pay? :P
It'd be nice if it had option to show newest threads, users postcount, etc.
Reply With Quote
  #20  
Old 08 Jan 2010, 13:28
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Cface View Post
I'm guessing once the Deluxe version comes out we gotta pay? :P
No it will be free, because otherwise that would mean that I whould have to provide an acceptable level of support, and currently I dont have time to do that.
Reply With Quote
  #21  
Old 09 Jan 2010, 02:17
Cface Cface is offline
 
Join Date: Dec 2009
If we hook this mod up can we extend it with features from deluxe (once it comes) without having to undo everything we installed from this mod?
Reply With Quote
  #22  
Old 17 Jan 2010, 17:55
ptiteuf ptiteuf is offline
 
Join Date: May 2008
Real name: MORLAND
Hello everyone,

I have a little problem on my main page of my site and that with this change that you put up here and I want to have on my page.

Your code is only nickel but as I joined my current page that has a system of multi-language ca va plus.

Thank you for your help.

common.php

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

index.php


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

Reply With Quote
  #23  
Old 26 Jan 2010, 20:11
ptiteuf ptiteuf is offline
 
Join Date: May 2008
Real name: MORLAND
Hello,

I managed to set up your mod and now I telnet to see the game appear to say whether it has the message and what we are and what login into your mod.

Thank you in advance for your valuable help
Reply With Quote
  #24  
Old 26 Jan 2010, 21:30
dietpepsi dietpepsi is offline
 
Join Date: Dec 2009
Do our webpages need to be named *.php? Virtually all of my non-vB pages are currently *.shtml as they pull dynamic data from another program. Will this mod work for me?
Reply With Quote
  #25  
Old 31 Jan 2010, 21:10
abdicar abdicar is offline
 
Join Date: Oct 2006
It not works on 4.0.1
Reply With Quote
  #26  
Old 02 Feb 2010, 03:51
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by dietpepsi View Post
Do our webpages need to be named *.php? Virtually all of my non-vB pages are currently *.shtml as they pull dynamic data from another program. Will this mod work for me?
Only works with php pages as it is.


Originally Posted by abdicar View Post
It not works on 4.0.1
Well it does on my test site.
Unless you post some error messages its hard to guess whats happened.
Reply With Quote
  #27  
Old 05 Feb 2010, 13:13
Cface Cface is offline
 
Join Date: Dec 2009
I thought i'd throw out there that i'm getting the old "no such file or directory" error for

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

which does exist... I've also tried with full url

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

EDIT: nevermind got it fixed, i'm such a dumbass :P

Last edited by Cface; 05 Feb 2010 at 13:23.
Reply With Quote
  #28  
Old 05 Feb 2010, 14:09
Cface Cface is offline
 
Join Date: Dec 2009
You could add this code in the login_inc.php to have it show avatars:

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

Reply With Quote
  #29  
Old 06 Feb 2010, 22:33
dennisuello dennisuello is offline
 
Join Date: Mar 2005
Real name: Denis
How do I use it for a site on a different domain (and server) than my vB installation?
__________________
OverlandHUB.com
Reno4x4.com
Reply With Quote
  #30  
Old 24 Feb 2010, 12:51
Prism27 Prism27 is offline
 
Join Date: Dec 2005
Hey,

Having an issue with this mod, normally I can fix them myself being a developer. Cant seem to figure this one out tho!

I'm getting this error: Undefined variable: specialtemplates on line 20 of global.php.

The forum works fine stand-alone, it's just when I include this into my own system. I've already done all the normal error checking and directory checking, it's all fine.

Anyone recommend something I've missed?
__________________
- Castiana/Prism27

PHd in Sarcasm from the University of Smugness.
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 23:54.

Layout Options | Width: Wide Color: