![]() |
Password protect non vb pages (e.g. for admin pages)
This is not really a hack just a handy piece of code. You can use this to password protect individual pages. The username and passwords are taken from the vBulletin database.
Currently this is set to allow only usergroupsid 5 and 6 (admin and super moderators) through [example use as admin area protection]. This could be changed though to allow anyone through if registered, or for specific usergroups etc. The code is in authvb.php An example is give in authtest.php Hope this is of use to some people. If there's some interest I'll tidy it up a bit. |
suppose I have a directory of my site with videos in it.
would putting this hack on the page to download the videos prevent people from direct linking to them or downloading them in any other way? |
Quote:
|
thank you ! Great idea to make static pages w/ content seen by usergroups.
:banana: /me Installs .. |
i'm using it for this now... if i could only integrate all this stuff into vb
http://video.dcevoclub.com |
This is beautiful in its simplicity.
I have integrated your vbauth hack into my Automated vBNews Programming Interface (AvPI) to allow only front page Administrators to be able to access the programmed articles administration page. I was delightfully surprised to find that I was able to populate most of my fields based on the HTTP auth entry. Changed those text fields to hidden fields and greeted the user by name upon entry. Great administrative tool - I can see lots more uses for this! Thanks! |
Hi there
If a user logs into the HTTP auth protected area, is there a way to make them appear in the Online users list in vb? Perhaps adding a superscript E at the end of their name to signfy that they are logged into an external page/area? |
Quote:
The only problem is.. what is the people know the exact path on the server? Will the htaccess STILL prevent them from accessing the directory? |
rafe, Im not a php guru.. give some better instructions on how to install this hack.
|
Code:
// Check whether user belongs to certain usergroup 5 for supermoderators 6 for admins (membergroupids = '5' or membergroupids ='16') the above seems to work ONLY if the user is in 5 or 16 as their only secondary group, ie, if users secondary groups are = 5,11,13 then it fails |
All times are GMT. The time now is 12:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|