The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add security to non VB pages and block user groups Details »» | |||||||||||||||||||||||||||
Add security to non VB pages and block user groups
Developer Last Online: Aug 2003
OK, my first "hack"!
I created this because I want to have security and logins for my sites non VB pages but don't want two logins, one for the site and one for the forums. There are other hacks that do the same thing, but this one is different. 1. It creates a PHP session, which means when the user closes the browser they will have to login to the site again later. It doesn't access the VBulletin cookie at all. 2. The user is prompted to login on any page you include this on, once logged in they are taken to that page minus the security. 3. No modification to the VBulletin code. 4. Uses the VBulletin user table so any information in there can be used, like welcoming them on all pages with their login name or telling the user who they are loggin in as. 5. You can block poeple based on their VBulletin user group! That way only certain user groups can see the rest of your site. 6. RUNS ON WINDOWS 2000 AND IIS!!!!!! Let me know how you like it! Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
This may not be a good question but i have to ask! Will this hack work on Apache or is it strictly IIS??? If not, can you point me into the the other hack that inspired you to create this one! |
#13
|
|||
|
|||
This hack is server independant, I use it on my IIS and Apache servers and it works fine.
|
#14
|
||||
|
||||
thanks mt_100, i will give it a go soon!
looking forward to it! will click install when i get around to it! Also, will it work on 2.2.8??? |
#15
|
||||
|
||||
This doesn't work for me =\
|
#16
|
|||
|
|||
Yes there is a problem for some. The solution is to change all the lines that read ECHO that are HTML to just HTML and put the stop PHP and Start PHP parkers before and after them. I will send the new file as well.
|
#17
|
|||
|
|||
Here is the new version, should work for you.
|
#18
|
|||
|
|||
Where should an include to membercheck.php go and is the the correct code we are adding to our html pages:
<? php include('membercheck.php'); ?> We are not having any luck getting this hack to work and you please advise. |
#19
|
|||
|
|||
That is the correct code to work, so no problem there.
What version oh PHP are you using? Also, is the register_globals setting turned on in the php.ini file? Try to rename the file you are including it into .php instead of .html. Also, make sure you have a file called connect.php in the same folder as the membercheck.php file defining the $DBSERVER, $DBUSER, and $DBPASS variables or change them in the membercheck file. Also be sure you have the second version of the file listed in the post, the first didn't work for everyone. Let me know if this works. Thanks. |
#20
|
|||
|
|||
After logging in, I get this message:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/wwwroot/websites/www/admin/memchk/membercheck.php on line 47 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/wwwroot/websites/www/admin/memchk/membercheck.php on line 52 The rows: 47: $row = mysql_fetch_array($result); 52: if (mysql_num_rows($result) > 0) Need some serious help here, because off php/mysql n00bnes |
#21
|
|||
|
|||
Take a look at my post just before yours and make sure those items are satisfied. It looks like you don't have a connection to the DB so be sure to check your connect.php.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|