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.30, 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.5.8 Rating: (4 votes - 5.00 average) Installs: 138
Released: 17 Nov 2005 Last Update: 24 Apr 2007 Downloads: 979
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.5 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.5.x - All Versions


Changelog

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

Version 1.20 (2nd December 2006)
  • Fixed Logout incorrect path bug
  • Made change to reduce compatibility problems with foreign scripts

Version 1.10 (4th Feb 2006)
  • Changed login_inc.php so you only need to edit path in one place now.
  • Added more commenting to login_inc.php
  • Added usage instructions to instructions file
  • Added troubleshooting guide with all common problems and fixes to instructions file.
Note: It is NOT necessary to update from 1.0 to 1.10.
There is no functionality changes or bug fixes between these 2 releases.

Version 1.0 (17th November 2005)
  • Initial Release


Deluxe Version of this hack is now available
Has Avatars, PM's, Number of Posts etc.

Click Here


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

  #46  
Old 31 Jan 2006, 13:27
Realm of Horror Comics's Avatar
Realm of Horror Comics Realm of Horror Comics is offline
 
Join Date: Aug 2005
Real name: Nick
Hey

I've installed this but right now the login box is right at the top of my page (see www.realmofhorrorcomics.com) How do I put the login box where I want it on the page?

Thanks!
__________________
The Realm of Horror Comics
Creepy, Eerie, Tales from the Crypt, Vault of Horror, Haunt of Fear, Creepshow, Voodoo, Taboo & many more classic horror comic titles!!!
www.realmofhorrorcomics.com
Reply With Quote
  #47  
Old 31 Jan 2006, 19:42
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Realm of Horror Comics
Hey

I've installed this but right now the login box is right at the top of my page (see www.realmofhorrorcomics.com) How do I put the login box where I want it on the page?

Thanks!
This sample page should show you how.
http://www.vbulletin.org/forum/showp...2&postcount=44
Reply With Quote
  #48  
Old 01 Feb 2006, 00:28
Realm of Horror Comics's Avatar
Realm of Horror Comics Realm of Horror Comics is offline
 
Join Date: Aug 2005
Real name: Nick
Originally Posted by Billspaintball
This sample page should show you how.
http://www.vbulletin.org/forum/showp...2&postcount=44
Oooh, I see.

Thanks a lot! Great hack by the way, just what I was looking for. Thanks.

Clicked install btw.
__________________
The Realm of Horror Comics
Creepy, Eerie, Tales from the Crypt, Vault of Horror, Haunt of Fear, Creepshow, Voodoo, Taboo & many more classic horror comic titles!!!
www.realmofhorrorcomics.com
Reply With Quote
  #49  
Old 01 Feb 2006, 00:56
Realm of Horror Comics's Avatar
Realm of Horror Comics Realm of Horror Comics is offline
 
Join Date: Aug 2005
Real name: Nick
Just one other question, how do I edit the text:


Welcome Back, Username here !

... when a user is logged in?





Thanks!
__________________
The Realm of Horror Comics
Creepy, Eerie, Tales from the Crypt, Vault of Horror, Haunt of Fear, Creepshow, Voodoo, Taboo & many more classic horror comic titles!!!
www.realmofhorrorcomics.com
Reply With Quote
  #50  
Old 01 Feb 2006, 01:11
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Realm of Horror Comics
Just one other question, how do I edit the text:

Welcome Back, Username here !

... when a user is logged in?
Thanks!
In the file login_inc.php, look up the top for this (around line 5)

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

You can change the text, fonts, styling etc.

Reply With Quote
  #51  
Old 01 Feb 2006, 01:14
Realm of Horror Comics's Avatar
Realm of Horror Comics Realm of Horror Comics is offline
 
Join Date: Aug 2005
Real name: Nick
Oh I see.

Cheers.
__________________
The Realm of Horror Comics
Creepy, Eerie, Tales from the Crypt, Vault of Horror, Haunt of Fear, Creepshow, Voodoo, Taboo & many more classic horror comic titles!!!
www.realmofhorrorcomics.com
Reply With Quote
  #52  
Old 01 Feb 2006, 01:20
Realm of Horror Comics's Avatar
Realm of Horror Comics Realm of Horror Comics is offline
 
Join Date: Aug 2005
Real name: Nick
Sorry for all the questions, but is there a way to show the user avatar when they are logged in?
__________________
The Realm of Horror Comics
Creepy, Eerie, Tales from the Crypt, Vault of Horror, Haunt of Fear, Creepshow, Voodoo, Taboo & many more classic horror comic titles!!!
www.realmofhorrorcomics.com
Reply With Quote
  #53  
Old 01 Feb 2006, 01:29
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Realm of Horror Comics
is there a way to show the user avatar when they are logged in?
Sure.
Thats what I have on my own site.

Its a bit more complex than this hack.
I'm going to release it as a seperate hack when I get around to tidying the code up a bit.
Reply With Quote
  #54  
Old 01 Feb 2006, 01:36
Realm of Horror Comics's Avatar
Realm of Horror Comics Realm of Horror Comics is offline
 
Join Date: Aug 2005
Real name: Nick
Originally Posted by Billspaintball
Sure.
Thats what I have on my own site.

Its a bit more complex than this hack.
I'm going to release it as a seperate hack when I get around to tidying the code up a bit.
Cool I'll be sure to check it out when you do.
__________________
The Realm of Horror Comics
Creepy, Eerie, Tales from the Crypt, Vault of Horror, Haunt of Fear, Creepshow, Voodoo, Taboo & many more classic horror comic titles!!!
www.realmofhorrorcomics.com
Reply With Quote
  #55  
Old 01 Feb 2006, 05:19
ausnrl ausnrl is offline
 
Join Date: Oct 2005
Can you help me right what happens is i login and the welcome message doesnt appear?
Reply With Quote
  #56  
Old 01 Feb 2006, 05:42
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by ausnrl
Can you help me right what happens is i login and the welcome message doesnt appear?
Post the actual code that you are using in login_inc.php and on your other page.
Plus any error messages and an accurate desctripion of what happens and what does not.
Also, what version of vB are you running?
Reply With Quote
  #57  
Old 01 Feb 2006, 06:28
ausnrl ausnrl is offline
 
Join Date: Oct 2005
I am running 3.5.1 but i dont think that would cause any issues Would it? If your going to do an update when you think it will be updated?

The files of my coding etc are attached
Attached Files
File Type: php indexnew2.php (21.3 KB, 23 views)
File Type: php login_inc.php (1.7 KB, 14 views)
Reply With Quote
  #58  
Old 01 Feb 2006, 06:44
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
OK, problem is your using a subdomain for your forums, which is known to cause issues with scripts like this (vB security related Im told).

There is a couple of things you can try.

1st, in login_inc.php change the paths to this format
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I noticed you can reach your forums with both URL's so give that a go first.

If you have no luck with this approach then try this
http://www.vbulletin.org/forum/showp...1&postcount=27
then if that fails, try this
http://www.vbulletin.org/forum/showp...1&postcount=34

Let us know how you go.
Reply With Quote
  #59  
Old 01 Feb 2006, 10:35
ausnrl ausnrl is offline
 
Join Date: Oct 2005
Nup nothing worked mate. Theres an update on login_inc.php
Attached Files
File Type: php login_inc.php (1.7 KB, 20 views)
Reply With Quote
  #60  
Old 02 Feb 2006, 05:46
ausnrl ausnrl is offline
 
Join Date: Oct 2005
Please Please Please someone help
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 15:27.

Layout Options | Width: Wide Color: