vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - DownloadsII (https://vborg.vbsupport.ru/showthread.php?t=120122)

Black Tiger 05-14-2008 04:45 PM

Quote:

Originally Posted by Meidos
Yes im aware that theres no feature like that which is why im asking how this can be done if the coder could help me

I'm sorry Meidos, it that case it was an interpretation error on my behalve. I thought you were still asking how to do it with this mod while it's not possible. So I'm sorry for my comment that way.
In fact you are asking the coder (or somebody else) if he could supply a piece of code for you, so you can implement it yourself until the next release is out, correct?

Quote:

Originally Posted by Meidos
Since your solution is not the best because adding the files manually on download front page will enable a potentional hotlink. So your solution is out of question.

That's correct, but if you symlink to the dir on the other hd you can protect that with chmod rights. However there's another solution if you have root on the system.
You could create another user and point the homedirectory of that user to a directory on the 2nd HD. Then you could symlink to that homedirectory without security risks because that users is chrooted too then, only thing left is to take care that your user also has upload rights on that users homedir.

But I agree with you that a php solution would be nicer. I hope Jelle can help you out with that.

@Darkblade: With this mod you can define how many mb or files a user is allowed to download. So I think the answer to your question is "yes".

eido 05-14-2008 06:35 PM

Quote:

Originally Posted by maidos (Post 1519510)
eido, make sure u include / beginning and the end
example /home/admin/domain/yourdomain.com/public_html/your_uploaded_folder/

still, didnt work
what permissions shud i put and for which files or folders?

maidos 05-14-2008 08:45 PM

when you visit admincp and click the import it will show you the server path. Make sure youcopy the entire text and include with the folder name with it

maidos 05-15-2008 09:46 AM

thanks tiger, but symlink. got any instructions how that can be done?

also when downloading i noticed that on 5.0.8 it gives me and everyone unknown filesize.but when i download without the download script it gives me the filesize and eta? can anyone fix this

Skyrider 05-15-2008 10:18 AM

This is very awesome! but is there a way you can remove the names on the images? And the rates changed from A / F to 1 to 10? And if possible add a "mirror function" for multiple links? That would be awesome, thanks! :D

EDIT:
I also see on:
http://www.minatica.be/downloads.php

First the image, then the cat name, and than the description + downloads. Possible we can have the same? It looks much better in my opinion.

EDIT2:
I also noticed that on the file page, for example "Most Popular Files". The file name: "Imkongkong's Zsword Map" takes up 2 spaces.. Is it possible we can have the other to increase/decrease the size of the whole box (left box).

Black Tiger 05-15-2008 12:08 PM

Quote:

Originally Posted by Maidos
thanks tiger, but symlink. got any instructions how that can be done?

You have to SSH to your box and use the symlink command.
Suppose you download directory is now /home/maidos/www/downloads and the directory on the 2nd harddisk is like this: /hdd2/downloads.
I just give the example /hdd2 here normally you don't even see if a directory is on another hd in linux because it mounts as a directory. But oke in this example the command would be (the /hdd2/downloads directory must already exist):
Code:

ln -s /home/maidos/www/downloads /hdd2/downloads
However you might need to have to correct owner rights on the /hdd2/downloads directory and for your own virtual dir in apache the directive for allowing symlinks must be on.
I found a nice piece of documentation on how to do it for ftp, there are also tips for mounting it instead of symlinking.
http://www.castaglia.org/proftpd/doc...TO-Chroot.html
I hope this helps you further.
If you're not sure, just test with some directory's you made first.
To unlink: unlink symbolic_link
Where symbolic_link is the symbolic link name in this example /hdd2/downloads

maidos 05-15-2008 01:52 PM

tiger, thanks alot for your help :) will try it out. But is this safe procedure like no files get corrupted.

also is it just me or do me and my 20 users always keep getting timeout when downloading from this mods. I gave them a direct link without using the downloadsII downloading same file and no timeout issue. But when using this script they and myself get the timeout issue. Can anoyone confirm this issue please
and about the unknonw filesize please anyone fix this?

Black Tiger 05-15-2008 02:07 PM

Sorry I don't have a time-out issue so I can't help you with that. Maybe the php settings of the server have something to do with that.

As of the symlinking, it can't corrupt your files because symlinking can be more or less compared with creating a shortcut in windows. Only you make a shortcut to another directory.
But I just think of something, it could be advisable to move all files to the new directory first because all downloads will get in that new directory.

Files can not be corrupted, but it is advisable to make some test directory's and test with it first, so you can see for yourselve how it works and what it does, so you get more comfident about what you are doing.

maidos 05-15-2008 02:08 PM

black tiger, can u make sure u download large file like 200 mb?


and thanks for ur advice about the symlink ;)

GlitterKill 05-15-2008 07:37 PM

1 Attachment(s)
After installing this hack (GTSmiliebox - Move Smilies Below Editor) I am now running into a strange issue with the Downloads II add on. The editor for the comments shows the smilies as a horizontal line but it is NEXT to the message box instead of under it. :) You can see the problem here (as well as the attachment): http://www.forumapex.com/downloads.php?do=file&id=14

Any idea where to fix this? I have looked through all of the Downloads templates to no avail.


All times are GMT. The time now is 03:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03278 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete