The Arcive of vBulletin Modifications Site. |
|
Protected file downloads by user group Details »»
|
|||||||||||||||||||||||||||
Here's what I got so far...
This allows you to host files for download and only allow certain user groups to see certain files. The file is streamed to the user form a folder protected by htaccess. So far I have been using phpmyadmin to add a file to the list. There are fields for filename, author, description, and category(group). When the file is listed the number of downloads will be dispalyed and the file size. Files are uploaded via ftp to a protected folder. There is a table that records all downloads. This too is viewed in phpmyadmin currently. For it to be a complete hack I think it needs an admin page for adding, editing, and deleting files form the list. It would be nice to to have a view and delete for the log as well. It's handy as is if ya don't mind using phpmyadmin, but if anyone feels like taking over this could be a nice hack. Regards Download Now
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
I'd LOVE this to be completed with an admin page!
If you get someone with some talent (i.e. I don't have any) please tell me ^_^ |
|
#3
|
|||
|
|||
|
Im up for the challenge, I have created an installation file to automatically setup the databases however when viewing fplist.php I just get vB header, footer etc however the table is empty and an error saying
Warning: Invalid argument supplied for foreach() in /home/phpcart/public_html/forum/fplist.php on line 116 Here it is: http://www.phpcart.co.uk/forum/fplist.php Intergrating this into the Admin CP shouldnt be to hard once I solve this problem. |
|
#4
|
||||
|
||||
|
Is this going to have usergroup><= can download this ?
|
|
#5
|
|||
|
|||
|
I edited the code to include either usergroup or depending upon how many posts the user has, but as I said, still got the above mentioned problem.
|
|
#6
|
|||
|
|||
|
Sorry I haven't been around. I'll take a look and try to catch up and help with that error.
EDIT: The error is most likely caused by a typo is this block of code. The foreach uses these params to check for valid usergroups... PHP Code:
|
|
#7
|
||||
|
||||
|
barrywien I see this seems to be working on your site now?
Is that so? |
|
#8
|
||||
|
||||
|
Why construct your array like that
PHP Code:
PHP Code:
|
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
|
|