The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Simple vB User login and access control on non vB pages Details »» | |||||||||||||||||||||||||||||||||
Simple vB User login and access control on non vB pages
Developer Last Online: Nov 2011
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
Change log Version 4.00 (15th November 2009)
Click on Install If you have this script installed then please click on the install link because;
Download Now
Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
mightyudis |
Comments |
#22
|
|||
|
|||
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?
|
#23
|
|||
|
|||
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 Code:
<?php session_start(); header('Cache-control: private'); // IE 6 FIX if(isSet($_GET['lang'])) { $lang = $_GET['lang']; // register the session and set the cookie $_SESSION['lang'] = $lang; setcookie("lang", $lang, time() + (3600 * 24 * 30)); } else if(isSet($_SESSION['lang'])) { $lang = $_SESSION['lang']; } else if(isSet($_COOKIE['lang'])) { $lang = $_COOKIE['lang']; } else { $lang = 'fr'; } switch ($lang) { case 'en': $lang_file = 'lang.en.php'; break; case 'de': $lang_file = 'lang.de.php'; break; case 'es': $lang_file = 'lang.es.php'; break; case 'it': $lang_file = 'lang.it.php'; break; case 'nl': $lang_file = 'lang.nl.php'; break; case 'pt': $lang_file = 'lang.pt.php'; break; case 'fr': $lang_file = 'lang.fr.php'; break; default: $lang_file = 'lang.fr.php'; } include_once 'languages/'.$lang_file; ?> Code:
<?php include_once 'common.php'; ?> |
#24
|
|||
|
|||
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 |
#25
|
|||
|
|||
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?
|
#26
|
|||
|
|||
It not works on 4.0.1
|
#27
|
||||
|
||||
Quote:
Well it does on my test site. Unless you post some error messages its hard to guess whats happened. |
#28
|
|||
|
|||
I thought i'd throw out there that i'm getting the old "no such file or directory" error for
PHP Code:
PHP Code:
|
#29
|
|||
|
|||
You could add this code in the login_inc.php to have it show avatars:
PHP Code:
|
#30
|
|||
|
|||
How do I use it for a site on a different domain (and server) than my vB installation?
|
#31
|
|||
|
|||
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? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|