![]() |
Integrating vBulletin's User Permissions System
Not sure if this is the right forum to ask this question or not, but what is the best way to integrate vB's user permissions system into the rest of my site.
I have a bunch of HTML pages on my site that I would have to convert to php, but I'd like to make those pages accessible only to my forum members. How can I do this? |
Take a look at this article - [How-To] vBulletin API Basics: Creating Custom Pages & Misc.
|
Quote:
I read through that, but it's kind of confusing what I need and what I don't need to use from that thread. |
You just need to be concerned with the first part, Creating a Custom Script. That tells you the basics of creating the php page and having a template to hold the content.
|
Yes, but if I'm reading that correctly, I have to create a template for each new page with the content in the template?? I have close to 400 html pages that I want to restrict to my forum members only. I really don't have to create 400 templates?
|
Why not use vbadvanced cmps to wrap all your existing html pages. It has support for this out of the box. See: http://www.vbadvanced.com/products.p...fo&productid=4
|
Quote:
|
try this way:
PHP Code:
i think that should be all |
^^^^ Interesting! That's what I'm looking for! It works, but doesn't seem to pull in the forum styles for some reason.
--------------- Added [DATE]1252590896[/DATE] at [TIME]1252590896[/TIME] --------------- Ugh...so I get the "you do not have permission to...." page, but the forum styles are not being pulled in. What am I doing wrong? This is what I have at the top of my php file: PHP Code:
|
If you read the article I linked to, or if you want a simpler one, try this one - How to create your own vBulletin-powered page! (uses vB templates) - then you'll see you can just use the vbulletin templates to pull in the style for your page. It would be much simpler than redoing it all like you are.
|
Quote:
I simply want to restrict access to a group of web pages in a directory to a select group of forum members. That's all. The task of trying to integrate vBulletins permissions system based upon the examples you've cited are beyond my comprehension and more advanced than I really need. Thanks anyways. I guess I'm just going to move on and leave this project on the backburner. |
Well, the style will get pulled in with the inclusion of the $headinclude template. And that gets pulled in from the inclusion of the $header template (I think..). Since you aren't using the template system to pull in those template, then they aren't getting included. If you use the template system, they will get included.
|
All times are GMT. The time now is 04:54 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:
|