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 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
Changelog Version 1.30 (24th April 2007)
Version 1.20 (2nd December 2006)
Version 1.10 (4th Feb 2006)
There is no functionality changes or bug fixes between these 2 releases. Version 1.0 (17th November 2005)
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;
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 Show Your Support
|
Comments |
#212
|
||||
|
||||
Hello
Having problems with it logging me in. I've got my forum at thecarforum.net, and this page at imagecan.net. Both the forum folder and the imagecan folder are in my public html folder. All logs in fine, but it just can't remember me. I log in and then it's forgotten about it. My cookie domain and path are both set to blank. Any ideas? |
#213
|
||||
|
||||
Thanks for the examples Billspaintball, they really helped me out.
Now I'm about to add a link into a template and I run into another problem. Normally <a href ="http://domain/vb/script.php" target="_blank">Script</a> works without problems. But when using something like that on a log page I just get a new blank screen that says about blank. Just calling the page directly in the browser works fine. I tried things like ?[sessionurl], but that doesn't work. How to call a page inside a template? There's at least a problem with the trailingslash in forumpath and Code:
// If logged in display logout link
echo "<a href=\"".$forumpath."login.php?$session[sessionurl]do=logout&logouthash=$logouthash";
forumpath should not have trailing and logout Code:
// If logged in display logout link
echo "<a href=\"".$forumpath."/login.php?$session[sessionurl]do=logout&logouthash=$logouthash";
|
#214
|
||||
|
||||
Seems to be a browserissue, it also happens when the link to the login protected PHP is posted in a forumtopic. Firefox opens the page, but IE gives the about blank page. When looking closely, it actually requests the script URL but quickly procedes with the about blank page.
|
#215
|
|||
|
|||
Quote:
That all worked for me, but when I attempt to use one of the php scripts I wrote, it isn't letting this script insert data into my MySQl database. It's an information script. It'll read the data from the mysql db just fine, but when I try to use a webpased php form to submit/edit information to my DB it doesn't work. I don't get any PHP errors, it just.....doesn't work..Lol. When I remove all the chdir things and forum inclusions for my login/page restrictions it works just fine. Any thoughts on this? |
#216
|
|||
|
|||
Ok now if this would just work with the new forums
|
#217
|
|||
|
|||
Hi guys....
I get a problem tryig to incorporate this script!! I actually get this problem with a lot of scripts!! Quote:
So the code is working!! The problem is with using the global.php I have tried adding "define('SKIP_REFERRER_CHECK', true);" to the login.php in the forum, but this does not help with anything... Does anyone know what is causing this to go wrong, and if there is a way to fix it?? Cheers wing |
#218
|
||||
|
||||
Quote:
You mean vB 3.6.x ? If so, it works fine with 3.6.1 (Havent tested with 3.6.2 but should work) |
#219
|
|||
|
|||
ok what gives man
Unable to add cookies, header already sent. File: /home/animelib/public_html/index.php Line: 1 |
#220
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showpost....98&postcount=2 You have some whitespace or html before a couple of lines. |
#221
|
|||
|
|||
Got it installed ok and it seems to be working except for the fact that when I put in my user name and password it takes me to my forum but doesn't log me in. Any thoughts? I'm running 3.6.3
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|