The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Using the VB userDB.. how do I implement a permission system based on a file....
Here's what I mean... i would like to create a member's only audio/video section on a Non-VB page that contains permissions. To access the page it will check if you are a member.... BUT>>> HOW do you avoid unregistered users from directly linking to the specific file since the a/v files will be on my server? NOTE: I would like my members to be able to directly link to the files from a post within the msg board... but I don't want anyone to link directly from outside of the main site... Thanx in advance! |
#2
|
||||
|
||||
![]()
hmm, wouldn't be as easy.
for checking if someone is a member you have to require global.php and then do an if conditon $bbuserinfo[userid] > 0. as for saving files of direct linking, there's no way. but you can use a trick, instead of give out filelinks, use a php file wich makes a "hidden" forward to the file. i don't know if it would work for all files, i just used it once for images |
#3
|
||||
|
||||
![]()
@Xenon - Don't quote me on this, but I think the PaDBFile thingy does this
![]() Satan |
#4
|
||||
|
||||
![]()
hmm i don't know it, but you could be right
![]() |
#5
|
|||
|
|||
![]()
what's the PaDBFile thingy???
You left me hanging there... how do porn/pay sites do it? Avoid you from accessing their images directly? is it .htaccess? Hmph... was thinking... the robots.php hack used HTACCESS and your VB login info.. Can that work somehow? |
#6
|
||||
|
||||
![]()
.htaccess
|
#7
|
||||
|
||||
![]()
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=46963&highlight=downloa d.php" target="_blank">Members Only Files</a>
Take a look at the above hack. It might be what you can use to get started. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|