vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   ecDownloads 3.2 Legacy (https://vborg.vbsupport.ru/showthread.php?t=75198)

CyberRanger 08-18-2005 02:38 AM

Quote:

Originally Posted by YodaTheCoda
it creates the entry in the downloads section of the forums, but when you click "download now" it just brings up a 404 and if i look in the directory by FTP the file is missing.

The ftp idea is the way to go for such a large file. One weakness of the code is that the upload entry is written to the database without confirming the file was successfully uploaded.

Ron1n - I sent you a PM (in case you don't normally check 'em).

ZombieAndy 08-18-2005 03:15 AM

Quote:

Originally Posted by westpointer
The ftp idea is the way to go for such a large file. One weakness of the code is that the upload entry is written to the database without confirming the file was successfully uploaded.

Ron1n - I sent you a PM (in case you don't normally check 'em).

so is there a way to fix this or is it IE timing out or something

Viks 08-18-2005 03:43 AM

Hi guys, im wondering if there is a module to display latest downloads for FORUMSHOME?

Kindly let me know. thanks

JMH11788 08-18-2005 04:02 AM

Quote:

Originally Posted by Viks
Hi guys, im wondering if there is a module to display latest downloads for FORUMSHOME?

Kindly let me know. thanks

good question! ^^^^

Quote:

Originally Posted by YodaTheCoda
so is there a way to fix this or is it IE timing out or something

no, PHP is what actually 'times out' nothing you can do about it. just like how downloading large mysql databases through php wount work

BioVader 08-18-2005 08:49 AM

Quote:

Originally Posted by thephonemall
For those of you still having trouble with usergroups being shown properly in AdminCP here is the way the modification should look in usergroups.php:
PHP Code:

    // ###### ELITECODERS DOWNLOAD HACK ######
    
print_table_header("Download Permissions");
print_yes_no_row($vbphrase['ecdownloads_can_edit_all_files'], 'usergroup[caneditallfiles]'$ug_bitfield['caneditallfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_download_files'], 'usergroup[candownloadfiles]'$ug_bitfield['candownloadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_rate_files'], 'usergroup[canratefiles]'$ug_bitfield['canratefiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_images'], 'usergroup[canuploadimages]'$ug_bitfield['canuploadimages']);
    
print_yes_no_row($vbphrase['ecdownloads_can_link_to_files'], 'usergroup[canlinktofiles]'$ug_bitfield['canlinktofiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_files'], 'usergroup[canuploadfiles]'$ug_bitfield['canuploadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_avoid_purgatory'], 'usergroup[canavoidpurgatory]'$ug_bitfield['canavoidpurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_manage_purgatory'], 'usergroup[canmanagepurgatory]'$ug_bitfield['canmanagepurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_edit_own_files'], 'usergroup[caneditownfiles]'$ug_bitfield['caneditownfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_view_disabled'], 'usergroup[canviewdisabled]'$ug_bitfield['canviewdisabled']);
    
print_yes_no_row($vbphrase['ecdownloads_can_view_files'], 'usergroup[canviewfiles]'$ug_bitfield['canviewfiles']);
    
print_table_break();
    
// ###### ELITECODERS DOWNLOAD HACK ###### 


Actually I think it should be like this just like westpoiter said.

PHP Code:

        // ###### ELITECODERS DOWNLOAD HACK ######
    
print_table_header("Download Permissions");
    
print_yes_no_row($vbphrase['ecdownloads_can_view_files'], 'usergroup[canviewfiles]'

$ug_bitfield['canviewfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_download_files'], 'usergroup[candownloadfiles]'

$ug_bitfield['candownloadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_rate_files'], 'usergroup[canratefiles]'

$ug_bitfield['canratefiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_images'], 'usergroup[canuploadimages]'

$ug_bitfield['canuploadimages']);
    
print_yes_no_row($vbphrase['ecdownloads_can_link_to_files'], 'usergroup[canlinktofiles]'

$ug_bitfield['canlinktofiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_files'], 'usergroup[canuploadfiles]'

$ug_bitfield['canuploadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_avoid_purgatory'], 'usergroup[canavoidpurgatory]'

$ug_bitfield['canavoidpurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_manage_purgatory'], 'usergroup[canmanagepurgatory]'

$ug_bitfield['canmanagepurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_edit_own_files'], 'usergroup[caneditownfiles]'

$ug_bitfield['caneditownfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_edit_all_files'], 'usergroup[caneditallfiles]'

$ug_bitfield['caneditallfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_view_disabled'], 'usergroup[canviewdisabled]'

$ug_bitfield['canviewdisabled']);
    
print_table_break();
    
// ###### ELITECODERS DOWNLOAD HACK ###### 


BioVader 08-18-2005 09:31 AM

Question: How do I disable needing to have an author? And is there a way to not change the name of the of the file when it's downloaded. It adds the author, short name and some number that end up at the end. Can this be removed and how.

CyberRanger 08-18-2005 11:50 AM

Quote:

Originally Posted by BioVader
Question: How do I disable needing to have an author? And is there a way to not change the name of the of the file when it's downloaded. It adds the author, short name and some number that end up at the end. Can this be removed and how.

All of this COULD be done but you are talking about editing downloads.php. If you know PHP, the change would be relatively simple. Look around line 511 for the text $newfilename to change how the file gets named. You'd also need to modify what happens when the author edits the entry.

As far as making the author optional, a better solution would be to change the submission form to automatically place the username in the author field. That would probably require a change in the template.

CyberRanger 08-18-2005 02:23 PM

If you edit a download, the file extension is lost when you save the edit. To fix this, look for this around line 549 in downloads.php:
PHP Code:

            elseif($_GET['do'] == 'edit')
            {

                
$result $DB_site->query("UPDATE " TABLE_PREFIX "dl_files SET `name`=".$dl->prep($_POST['name']). 

add this line before the $result:
PHP Code:

$newfilename $newfilename.strtolower(substr($file['url'], strrpos($file['url'], '.')+1)); // fix ext dropping problem 

The final result should look like:
PHP Code:

            elseif($_GET['do'] == 'edit')
            {
                
$newfilename $newfilename.strtolower(substr($file['url'], strrpos($file['url'], '.')+1)); // fix ext dropping problem
                
$result $DB_site->query("UPDATE " TABLE_PREFIX "dl_files SET `name`=".$dl->prep($_POST['name']). 


BioVader 08-19-2005 09:50 AM

Uhg.. Well as another users has stated, I'm having another problem with my uploaded files count. I have actually 1 file right now for download... I've been trying to get a video file to work. Yes I have added the extension in the setting like you supposed to but everytime I upload it and you click the download link you get a blank screen.. so I've tried uploading it about, oh 11 times and now the site says there are 12 downloads available.. How can this be fxed because it's not right.

CyberRanger 08-19-2005 11:01 AM

Quote:

Originally Posted by BioVader
Uhg.. Well as another users has stated, I'm having another problem with my uploaded files count. I have actually 1 file right now for download... I've been trying to get a video file to work. Yes I have added the extension in the setting like you supposed to but everytime I upload it and you click the download link you get a blank screen.. so I've tried uploading it about, oh 11 times and now the site says there are 12 downloads available.. How can this be fxed because it's not right.

It sounds like you have two problems 1) You upload the file but it doesn't download 2) you feel the file count is wrong.

As for #1, I'm not sure. Can you provide your site URL?

For #2, the file count is correct. Note that even if you upload the same file 12 times, the file gets renamed each time and will be counted as 12 uploads. Now, if you've deleted the file first, then uploaded it, and your count says 12 that is a problem.


All times are GMT. The time now is 01: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.02077 seconds
  • Memory Usage 1,795KB
  • 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
  • (5)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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