![]() |
Restrict Non Vb pages
ok.. This sounds simple but this is what I need.
I have non VB pages, they are html pages not php and I want the VB system to only let registered members, mods and admin to view the pages, is there a script I can add to it to do that, if so what is the exact script or code, if I can copy it and paste it that would be awesome. Thanks.. Rick |
The eaiset way would be to make then into php pages and add a usergroup check into the php before outputting the html.
|
well its a photo slide show program that creates the pages and thumbs and etc, so I really cant do that.. it has to restrict html pages..
|
The permissions check will only work if the page is php.
You can change the page to a php page then after the required code paste your entire html page then just close of the php after that. |
See my sigs for a couple of hacks that allow usergroup based access.
However, as peterska2 has said it will have to be a php page. |
I feel bad about reposting this code, as it is not mine and I dont know who to credit. I've done a search of the forums but im not coming up with an answer. I'll post the code below for copy/paste and continue to look for the author to proper credit.
Again, this is NOT my work. PHP Code:
Max Thanks and Greets to RAFE for this piece of code O.T. https://vborg.vbsupport.ru/showthrea...ghlight=authvb |
All times are GMT. The time now is 04:16 PM. |
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:
|