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.6 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.10 (24th April 2007)
Version 1.0 (2nd December 2006)
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 |
#102
|
||||
|
||||
Thanks It worked!!!!!
But now I got another error (See Photo) Any ideas? |
#103
|
|||
|
|||
getting the same error also.
|
#104
|
|||
|
|||
I posted this fix for this on this page. It's always a good idea to read the forum posts.
|
#105
|
|||
|
|||
Hate to say it, I found another error via Firefox VS. IE.
When I login and I have code so only a certain group can see it... works fine in Firefox and displays the code, yet in IE it logs me in, shows I am in, but does not display the code to that user group. Is anyone else having this issue with IE? Thanks. SC |
#106
|
||||
|
||||
Thanks
I didn't know what that fix was for, but read all your post and i found it. Thanks it worked well. |
#107
|
|||
|
|||
IPuck,
Glad to hear it. Have you tried this code yet? Code:
if ($vbulletin->userinfo['usergroupid'] == '6' ) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'> } else { echo "You do not have permission for this page"; } Thanks |
#108
|
|||
|
|||
Quote:
Then you must set in the config.php on the secound server the ip to the server where the VB-Database is runnig. I have made this to and it works fine. Example: My Forum: www.celebritymarkt.org (Server 1) My Uploader 10mbit.celebritymarkt.org/uploader (Server 2) GreeTz Snatch |
#109
|
|||
|
|||
Can some please tell me if
Code:
if ($vbulletin->userinfo['usergroupid'] == '6' ) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'> } else { echo "You do not have permission for this page"; } Thank you |
#110
|
|||
|
|||
Quote:
But no, I cannot get it to work in IE. Then again, I'm not a very good test, because I can't get anything for this hack to work in IE. Works brilliantly in Firefox, but won't even let me login in IE. I login, it shows the vB screen saying "thank you for logging in" but then when it redirects me, it's not showing me as being logged in at all. I don't get any errors, it just... doesn't work for me. I'm still reading this whole thread to figure out where I've gone wrong. |
#111
|
|||
|
|||
Thanks for replying. I fixed the login part for IE I think it's on page 7 of this forum. But what is the point of this hack if it doesn't work in IE? That is what I don't get. For better or worse, most people use IE and if this only works for Firefox it's pointless.
I used this in Firefox Code:
<?php if ($vbulletin->userinfo['usergroupid'] == '6' ) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td>NEWS</td> <td>COMICS</td> <td>REVIEWS</td> <td>CHARACTERS</td> <td>CREATORS</td> <td>ARTICLES</td> </tr> <tr> <td><a href='submit_news.php'>Submit News </a></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><a href='view_edit_news.php'>Edit News </a></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table>"; } else { echo "You do not have permission for this page"; } ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|