The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Question concerning download managing
Greetings!
I am looking to set up a system for my website similar to NarutoFan. Basically, I want to be able to have a login script for my main page where people can log in, if they are currently not logged in the forum. I am running vBulletin 3.6.8 right now. I want the script to be able to make it so people can submit a payment, and the system records that a payment was received, and they can gain access to the videos and podcasts section. Then for purchasing them on DVD and also the material based merchandise, just a checkout system. Also, I want to make it so anyone who is not a paying customer cannot access the downloads if they happen to find where the files are located on the server. Would anyone know where I could start on this? |
#2
|
||||
|
||||
Include the vBulletin backend, and then check the usergroup when people try to access that page.
Do you know PHP well? |
#3
|
||||
|
||||
I am decent with it, but I am a n00b with MySQL lol. So, I'd really have no idea where to begin. What all would I have to do to include the vBulletin backend? That is something I am unfamiliar with, unfortunetely.
|
#4
|
||||
|
||||
PHP Code:
|
#5
|
||||
|
||||
Thanks for the help.
Although, I am getting this error when trying use a login script I got on here a while back: Code:
Warning: main(login_inc2.php) [function.main]: failed to open stream: No such file or directory in /home/hiroanim/public_html/menu.php on line 167 Fatal error: main() [function.require]: Failed opening required 'login_inc2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hiroanim/public_html/menu.php on line 167 PHP Code:
This code is frustrating lol Edit: Nevermind! I have gotten it to work! Thank you for the help! Also, I have one more question. Let's say I have a directory on my server that has a bunch of render image files, and I only want people who have obtained access either sending a payment in or reaching a certain usergroup from posting, but someone who does have access gives out the file name and location on the server, is it possible to restrict anyone not in the usergroup from accessing the file? I know how to set it up so that the page is restricted from people who are not in the usergroup, but I want to be sure that paying customers can't send out the full url of the files to non-paying customers and have them steal all of the premium renders. |
#6
|
||||
|
||||
Quote:
Code:
Order allow, deny |
#7
|
||||
|
||||
Thank you for your help with the htaccess file. I set it up, and I can't access anything as a guess, which I like. However, I set up a page with the following code:
PHP Code:
Thank you for all of your help so far, it means a lot to me. Edit: I've fixed the code, and have it working: PHP Code:
Quote:
|
#8
|
||||
|
||||
You need to fetch the file (with the file() functions), and then output the appropriate headers along with the data.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|