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)

CyberRanger 05-25-2007 11:50 AM

Quote:

Originally Posted by Fish UK (Post 1254376)
Firstly, thank you for a great mod, just what I was looking for.

However I have a little problem I was hoping someone could assist with.
When an image is uploaded for a download it uploads with the permissions 600 which means it cannot be viewed.
The main download file uploads fine (666) and so does the thumbnail created (666).
The folder permissions are 777 and the ownership correct.

I am running the latest version of this mod and of VB. Any help would be much appreciated.

TIA

I think this will fix your problem. In downloads.php, around line 818 find:
PHP Code:

move_uploaded_file($_FILES['image']['tmp_name'], $dl->url.$newfilename); 

BELOW that ADD
PHP Code:

chmod($dl->url.$newfilename0666); 

Let me know how it works.

CyberRanger 05-25-2007 11:52 AM

Quote:

Originally Posted by jiffy (Post 1254038)
Hey CyberRanger, is there any chance you could help me with my large file download issue?

I've been researching it but I haven't come up with anything yet. I'll let you know if I do.

Fish UK 05-25-2007 12:32 PM

Quote:

Originally Posted by CyberRanger (Post 1254421)
I think this will fix your problem. In downloads.php, around line 818 find:
PHP Code:

move_uploaded_file($_FILES['image']['tmp_name'], $dl->url.$newfilename); 

BELOW that ADD
PHP Code:

chmod($dl->url.$newfilename0666); 

Let me know how it works.

Works like a dream. Thank you for your support and very quick response.

maxicep 05-25-2007 01:41 PM

can i shown my uploaded attachment before installed Downloads II ?

HappyPike 05-25-2007 09:36 PM

Hi CyberRanger,

Thanks for all the time you spent developing and supporting this addon. It's greatly appreciated. The addon has been extremely useful.

Do you have any idea when the next version would come out? I hope in the new version you could change it so each user's files are placed inside his own directory (based on User ID). This way the files are spread out. Currently my downloads folder contains some 14,000 files (images included). I afraid having too many files in a single directory may affect server performance.

luket79 05-26-2007 01:13 AM

Thanks for the response. I am really sorry about that! I looked through the first 10 pages of replies and did some searches and I didn't see anything....guess next time I'll look a little harder and try not to waste anyone's time! Great MOD and Thanks!

Hornstar 05-26-2007 05:40 AM

Hey hows the progress coming along for version 6?

not sure if this is too late to request, or even possible for you to make it a default, or if you would have to support 2 separate codes.

but there are heaps of people who are using vbseo who would love to see a few implementations into downloads II so vbseo can make it more seo friendly.

here is a thread at vbseo showing peoples interest http://www.vbseo.com/f23/downloads-i...ules-7539-new/

and here is the thread explaining how to do the changes for more vbseo compatibility http://www.vbseo.com/f2/vbseo-functi...sibility-1662/

hope its not too late to be included. Thanks.

Millenium IT 05-26-2007 08:43 AM

Am i the only one getting Sql database errors when importing the file?

Code:

                                REPLACE INTO phrase
                                        (languageid, fieldname, varname, text, product, username, dateline, version)
                                VALUES
                                       
                                        (-1,
                                        'cppermission',
                                        'ecdownloads_can_avoid_purgatory',
                                        'Can Avoid Moderation Queue',
                                        'ecdownloads',
                                        '',
                                        0,
                                        '')
                                ,
                                        (-1,
                                        'cppermission',
                                        'ecdownloads_can_comment',
                                        'Can Comment on Files',
                                        'ecdownloads',
                                        '',
                                        0,
                                        '')


CyberRanger 05-26-2007 10:12 AM

Quote:

Originally Posted by Millenium IT (Post 1254882)
Am i the only one getting Sql database errors when importing the file?

Code:

                                REPLACE INTO phrase
                                        (languageid, fieldname, varname, text, product, username, dateline, version)
                                VALUES
                                       
                                        (-1,
                                        'cppermission',
                                        'ecdownloads_can_avoid_purgatory',
                                        'Can Avoid Moderation Queue',
                                        'ecdownloads',
                                        '',
                                        0,
                                        '')
                                ,
                                        (-1,
                                        'cppermission',
                                        'ecdownloads_can_comment',
                                        'Can Comment on Files',
                                        'ecdownloads',
                                        '',
                                        0,
                                        '')


What is the error message?

CyberRanger 05-26-2007 10:19 AM

Quote:

Originally Posted by HappyPike (Post 1254704)
Do you have any idea when the next version would come out?

sorry, no eta

Quote:

Originally Posted by HappyPike (Post 1254704)
I hope in the new version you could change it so each user's files are placed inside his own directory (based on User ID). This way the files are spread out. Currently my downloads folder contains some 14,000 files (images included). I afraid having too many files in a single directory may affect server performance.

I agree this needs to be reworked. But I don't think user id is the way to go. Unlike normal vb attachments which tend to be spread among a lot of different users, the downloads files are often uploaded by a small number (or just one) admin.

Instead, I'll probably change it to either a random folder selection (say 1-9 with subfolders of 1-9 below each of those) or category id.


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
  • Page Generation 0.04086 seconds
  • Memory Usage 1,772KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)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