The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Protecting NON-VB Pages.
Okay, I search for such a hack, found a couple, some work, and others don't even make any sense.
Basically this is what I want: 1) Protect pages, so a user must be registered to view it. 2) Say I put a link on my front page that leads to a file... how do I block non members from clicking the link, so the download doesn't start and they get directed to the login/register page? 3) When they log in it directs them to the page they were trying to view. I have an idea how to do it, but I want to make sure I am choosing the right method. I know I would need to put something like this in the head section of the page I want to protect: <?php chdir("forums/"); require("global.php"); if ($bbuserinfo[userid]==0) { blah, blah.. ?> am I close? my main focus it protecting links so people can't download my files if they aren't registerd. thanks. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|