The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is there a way to restrict users to access one or more web pages on a web site such that users must be logged into vBulletin to do so? We are actually currently using 3.7 and would like to do the change in 3.7, but we will be moving to 3.8, so I'd like to know the answer for both!
I have checked vBulletin.org and noticed there are some "hacks" that do this for 3.6 and earlier. Ed |
#2
|
||||
|
||||
![]()
See either of these articles - How to create your own vBulletin-powered page! (uses vB templates) or [How-To] vBulletin API Basics: Creating Custom Pages & Misc. If you include global.php like those articles do, then you may do any sort of condition on the users id or group to restrict access.
|
#3
|
|||
|
|||
![]()
You can password protect forums in vB by default. If you used that it would be much more streamlined and easier all round.
|
#4
|
||||
|
||||
![]()
I don't think he is asking about forums, though. I got the impression he was asking about custom pages.
|
#5
|
|||
|
|||
![]()
Yes but restricting a forum would be easier than a custom page. You would probably have to create a plugin to password protect a custom page. I don't think you could do it with just conditionals.
|
#6
|
||||
|
||||
![]() Quote:
PHP Code:
|
#7
|
|||
|
|||
![]()
Hm...Ok. You win.
|
#8
|
|||
|
|||
![]()
Thanks Lynne.
You are correct. We are automatically generating HTML pages from corporate internal infomation that we would like to restrict access to. The people that we would like to be able to read the pages would be members of our forum, as we are pretty strict on whom those members are. Being able to further restrict based on groups is even better. I had reviewed a few threads here, and the ones I read seemed geared towards specific versions (3.5 and 3.6). Two other issues we're keeping in mind are: ease to configure that access [after all, there may be many HTML pages, and the will likely be regenerated on a regular basis], and ease for patching vBullein [we'd like to stay current, and don't want to have to re-implement the mod each time]. Thanks again, |
#9
|
||||
|
||||
![]() Quote:
I can nearly guarantee you that is_member_of() will not break. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|