The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
Take a look at this article - [How-To] vBulletin API Basics: Creating Custom Pages & Misc.
|
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
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?
|
#6
|
||||
|
||||
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
|
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
try this way:
PHP Code:
i think that should be all |
#9
|
|||
|
|||
^^^^ 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:
|
#10
|
||||
|
||||
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.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|