![]() |
My Downloads v1.2 - A Download Manager for VBulletin
Well well.. have I been busy in such a short time.. hehehe.. I listened and i changed... here's a newer version, more integrated it is..
What does this script do ? This script indexes your download directory of your website and put this information into records on your database. Now you can track who is downloading your files and you get information how popular each file is. version 1.2 - Use of templates in vbulletin - The download database is integrated into the forumdatabase - Use of vbulletin stylesheets - Auto index of subdirectories ( 1 layer ) into download-categories. - Auto clean up of log database when file is removed from the database (The Cleanup button has been removed) - IP address logging added - Gifs are made transparent - Non admin auto update option - Some other small tunes... version 1.1 not released version 1.0 Features: - Auto index of the download directory - Easy add descriptions to files - Easy database cleanup of deleted files - Restrict the usergroups who may download - Tracking of downloads. - Display download history of a file by admin group. - Database cleanup by admingroup Nice to know: - Easy to install for not-dummies - Its just one php script The package: - download.php - this is the actual script ( you can rename this ) - mydownloads.sql - database strucure - mydownloads.template.txt - Vbulletin template - ./gifs/ - gifs - install.txt - this file |
Nice idea, but I just tried it, and it doesn't work.
Cannot detect files in download folder. Btw, might be better off using templates and phrases, instead of hardcoding everything. Also, might want to create the 2 tables in the existing vb one, easier for a lot of people :) |
Are u seening the UPDATE and CLEAN buttons ? if not.. probably you are not member of the admin group.
did u check $dir='./download/'; ? About the templates.. you are right. Actually this is my first vbulletin script. I have to find out about those phrases. Think about modifying it in the future. |
Nope, I cannot see the buttons. I am admin.
Download dir is correctly set I should think, I tried full path too, likewise no go :( |
If you dont see the buttons then somehow you are not validated to see them. Line 14 of the script defines group 6 to be admin. Check if your admin group is 6 otherwise change this number in the script.
|
I will ginny pig this out. Let you know about errors.
|
ok so is this a download manager? like you upload files to it and they can download? lol
or is this from another program? |
Before I try this out, can you index files from another server. Say if you have a media host.. Could you link the links off of that..?
|
It would be nicer if i can add a location of a file, and that would be downloadable :)
|
This looks really promising
|
Quote:
|
I don't think there is any upload feature.
It merely scans the files in the specified dir. |
The script does exactly what ipas2's says it does and does a great job at it. Unfortunately it requires so much custimization that it's a huge pain the butt to install. Not only do you have to edit the css inside the document, they aren't titled acurately. "zx, result, chill, updated" ?? What kind of naming system is that. The gifs don't have transparent backgrounds so even if you take the time to customize the css, you still have to create your own icons.
Anyways, thx for releasing this hack and it has a lot of potential but should really be released as a beta until these basic things are taken care of. |
do you have a live demo?
|
I will have one soon on my site.
i like it. i'll post link wen i get it all installed. |
Indeed..I'm busy with a more updated version. This one scans also one subdirectory layer in the download directory and put this into categories. Have a version online on my website http://www.groningen.it -> Downloadbutton
The css is indeed a bit complex because I copy/pasted it from another script of mine. In this version it's more clear. I will also try to fix it in templates but due to lack of time I doubt this will succeed. I thought about the upload feature, but in this case what good is a autoindex feature. !? Then again.. I'm openminded about sugestions.. :) Grtz Ipas |
Quote:
Quote:
Quote:
Also, an installer would be good. :) Keep up the nice work Ipas :D |
I had some problems executing the mydownloads.sql script in plesk. Probably because our database versions differ? It was throwing up syntax errors. So I edited the script to get rid of all the dumps, and what not.. it worked.. if anyone else is having this problem.. here you go:
Code:
CREATE TABLE files ( |
Btw, is there any way to make it auto update, so my members dont have to click update before they can see the downloads?
|
I'm busy with a newer version. I will add this option so files will autoindex if selected.
|
All these ideas are nice, When will we be seeing these ideas in our forums..??
|
Hi all,
I installed this hack on my testboard. Great Idea ! But there are so many wishes for the new release:
thanks in advance |
I was just reading through the messages... this appears to be a really good mod. I will definately look forward to the update release.
|
Ooof... thnx for the suggestions. I'm busy extracting the script to a vb template and integrate it more into vb. I have not done this one before, but i will manage.
i'l keep u informed. ipas |
Quote:
I created the three new tables and put some test files in the dir. They are written to the database but not shown in any way. I also don't understand and see where I can create categories. This version is now working for me. http://www.clanforums.com/forum/download.php ipas2 can you please add TABLE PREFIXES to the next release cause I think many users are using those? In the actual downloadable version the file mydownloads_template.txt seems to be broken. There is no footer information in the file. Quote:
|
Like I said before, you must be forum admin to have the update button. This will scan the download directory for main category and subdirs for other categories. You will see messages when new dirs or files has been added or deleted to the database.
Other thing... categories without files will not be shown. Uncommend the auto_update option in the script if you want the update to be done all the time.. even if users are viewing the page. prefixes of tables.. all three added tables starts with 'mydl_' , so they dont conflict with possible other scripts. if you want a footer, just add '$footer' at the end of the template.:rolleyes: Grtz, ipas |
When will you impliment the remote url linking??
Unless its already done so.. |
i installed this script and i got the BUTTON update database , so i did
Found files i added But when i go to /download.php it shows the forum page with My Downloads v1.2 The page loads normally , but missing the download links !!! Is there something wrong could have been done to cause this ? Update database shows correct files btw . |
Quote:
You need a small workaround to get this work. Just go to your download directory and add a subdirectory there. It doesn't matter what the name is, just a new Subdirectory under your "Download-Root" Directory. After that open your download.php again and klicke on "update database" and you will see your files ;) ipas2, can you fix this for the first installation or update on a board ? btw, great work for Version 1.2 ! many thanks |
@ ipas2
You should use the following header to be "vB" conform and also to cache your Template mydownloads which is actually uncached. Code:
// ####################### SET PHP ENVIRONMENT ########################### |
For those people who wants to have formated filesizes:
find: Code:
// Check if the file is OFFLINE Code:
// Check if the file is OFFLINE |
Okay, some more bugfixes:
In Template mydownloads find at the end: Code:
$footer Code:
</body> Code:
eval('$dlnavbar = "' . fetch_template('navbar') . '";'); Code:
$navbits = array(); horizontal size is toooo long for my display.. I will look for that tomorrow ;) |
It looks a version 1.3 is needed :) Uncle Tom, I will look at your fixes soon.
I have to familliar myself more with those templates I guess. I found a bug myself. In the template replace the phrase $error to $errormsg This are messages when a non-logged-in user tries to download a file. Grtz, Ipas |
I get the following db error on the screen while downloading a file from downloads root directory. But the download will happen ! It's only an error on the screen.
Code:
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 18 in /download.php on line 80 I think this happen because there is no catid entry for the root download dir in the database... |
You're right. Will be fixed in 1.3
For now: Replace line 80,81,82 PHP Code:
PHP Code:
Ipas |
[QUOTE=Onkel_Tom]For those people who wants to have formated filesizes:
Thnx Oncle_Tom.. :) added ! |
excellent hack, but how about adding the ability to count the downloads and display the top 5, 10, 20 (or however many the admin wants) most popular downloads?
|
Quote:
|
Quote:
|
Quote:
along with anti-leeching support such as specifying 1 download for each ip address. |
All times are GMT. The time now is 07:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|