Thread: Major Additions - DownloadsII
View Single Post
  #177  
Old 01-05-2010, 07:03 AM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webspider View Post
Great mod and it works very well. One thing that is bothering me though. Is there anyway to secure the /downloads directory. It seems to me anyone that know the file name can bypass the downloader.
There's a timestamp added to files in the downloads folder, which is removed from the file name when downloading the file.

Though it's not the best solution indeed. To solve it completely, images and downloads need to be separated. So you can really protect the downloads directory from direct downloads.

Quote:
Originally Posted by Morrus View Post
Indeed we have. Works fine everywhere else, just not in this particular case. Hard to tell if that's because of this mod, or because of some setting with our vB4 dev board (it's the first such issue we've had with the dev board; never had the issue with the currently live 3.8 board).

Could it be because the dev board is in a subdirectory called "test" below the currently live 3.8 board forum? A path issue?
After searching a bit in the wrong direction, I found the issue. It's easy: imagecreatefrombmp() doesn't exist. Only imagecreatefromjpeg(), imagecreatefromgif() and imagecreatefrompng() do exist (and some less popular other formats).

The bmp function will be removed in a next release. Just convert the image to another format (and remove bmp as an image extension).

Nice catch

Quote:
Originally Posted by stationar View Post
Is there a way to notify author when (and why) his file is deleted?
Not at this moment.

Quote:
Originally Posted by mtalks1 View Post
Store the original file name in the database when uploaded but obfuscated in the download folder and when it delivers the file via download it sends it in the original file name.
There's a timestamp added to files in the downloads folder, which is removed from the file name when downloading the file.

Though it's not the best solution indeed. To solve it completely, images and downloads need to be separated. So you can really protect the downloads directory from direct downloads.

Quote:
Originally Posted by abdulbasitsaeed View Post
In a future release, is it possible to add a feature where the uploader and Administrator / Super Moderator or any usergroup is emailed when members comment on an uploaded file?
That's more something for a separate add-on. For v5 there was a pm notification mod for files in the moderation queue.

I'm going to add some extra hook locations in a next release.

Quote:
Originally Posted by valendono View Post
what is error type 2 ?
That's because of a new file size check.

Find and remove
HTML Code:
<input type="hidden" name="MAX_FILE_SIZE" value="{vb:raw inimaxattach}" />
from the downloads2_file and downloads2_file_addit templates.

I'm looking into this

Quote:
Originally Posted by Darkstarproject View Post
Can I assume the bug for excluding categories has been fixed?
Normally it should be fixed in 6.0.1

Quote:
Originally Posted by willy888 View Post
How can we reduse the time limit of download?
It's a usergroup permission (downloads delay).
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02091 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (8)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete