The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
The eaiset way would be to make then into php pages and add a usergroup check into the php before outputting the html.
|
#3
|
|||
|
|||
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..
|
#4
|
|||
|
|||
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. |
#5
|
||||
|
||||
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. |
#6
|
||||
|
||||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|