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 12-11-2007 01:49 PM

Quote:

Originally Posted by EnIgMa1234 (Post 1020524)
wow first install
thanks

We are only two installs away from 1,000!!! :D

maidos 12-12-2007 12:01 AM

ok thanks...
beside on the previous version i could actually download using a download manager but on the latest it didnt work.
is it possible to support download manager?

Joshva 12-12-2007 04:07 AM

How would i prevent the left nav being displayed? I run downloads 2 in vbadvanced and i already have the vbadvanced module displaying.

cellow 12-12-2007 09:12 AM

1 Attachment(s)
Hi dev team,
i have 2 issues to talk about it :()

1.
Situation:
Moderate uploads = on
Problem:
After a "registred" user uploads a file, there comes a "database error page" (see attached screenshot)
But the file is 100% correctly uploaded + waiting for moderate
But if a admin uploads a file, there is no error page, its redirected to the uploaded file.


2. Stats of Uloads
Situation:
User have Uploads = 0
Uploads preferences are "moderated"
User uploads a file into downloadsII
Problem a):
The stat of "uploads" in postbid and memberinfo are directly counted. (User uploads = 1)
Normally, it should have to wait, until a admin has moderate the upload and give it free.
Problem b):
If the admin deletes the upload, the stat in postbit&memberinfo is still the same. (still user uploads = 1)
Normally, it shouldn't have to count the uploaded file.
My Gamble solution:
Use the "refresh count" function of DownloadsII, after that, the user upload = 0

regards

CyberRanger 12-12-2007 01:25 PM

Quote:

Originally Posted by cellow (Post 1399744)
Hi dev team,
i have 2 issues to talk about it :()

1.
Situation:
Moderate uploads = on
Problem:
After a "registred" user uploads a file, there comes a "database error page" (see attached screenshot)
But the file is 100% correctly uploaded + waiting for moderate
But if a admin uploads a file, there is no error page, its redirected to the uploaded file.

Can you post the actual SQL error in English?

cellow 12-12-2007 02:17 PM

there is no sql statement error or sql error ... only this page that says, that there is an error with the database.

RS_Jelle 12-12-2007 04:40 PM

Quote:

Originally Posted by maidos (Post 1399534)
ok thanks...
beside on the previous version i could actually download using a download manager but on the latest it didnt work.
is it possible to support download manager?

As far as I know we didn't ever support download managers (yet). A download manager can pause a download and there has never been any PHP code to accomplish this (again: yet). I don't know how/why it could have worked some time (in each case without allowing to pause a download), but we consider this for v6.

Quote:

Originally Posted by Joshva (Post 1399650)
How would i prevent the left nav being displayed? I run downloads 2 in vbadvanced and i already have the vbadvanced module displaying.

Set the 'Display "Tops" on all pages?' DownloadsII setting to No, but this won't help for the category view.

To remove it from that one, open downloads.php

Find:
PHP Code:

    eval('$dmain_jr = "' fetch_template('downloads_cat') . '";');
    eval(
'$dpanel = "' fetch_template('downloads_panel_side') . '";');
    eval(
'$dmain = "' fetch_template('downloads_wrapper_side') . '";'); 

Replace with:
PHP Code:

    eval('$dmain_jr = "' fetch_template('downloads_cat') . '";');
    eval(
'$dmain = "' fetch_template('downloads_wrapper_top') . '";'); 

Quote:

Originally Posted by cellow (Post 1399870)
there is no sql statement error or sql error ... only this page that says, that there is an error with the database.

Have a look at the source code of that database error page. Database errors are "hidden" since the vB 3.6 branch (you can find it between <pre> HTML tags).

For number 2: For a), this is at the moment the expected behaviour, but we should change it indeed. For b), this seems to be an issue when using the "Manage files" delete option (the modify_filecount_user() is missing there).
Use the delete option on the file page to fix this at the moment or open downloads.php:

Find the first occurence of:
PHP Code:

$dl->modify_filecount($file['category'],-1); 

Above this add:
PHP Code:

$dl->modify_filecount_user($file['uploaderid']); 

Quote:

Originally Posted by CyberRanger (Post 1399186)
We are only two installs away from 1,000!!! :D

We've got 999 installs now, 1 more to go :D

Edit: 1000 installs, we reached it http://www.codinghorror.com/blog/ima...ing-banana.gif

maidos 12-12-2007 06:42 PM

great :)

beside on 5.0.5 it acutally worked with a download manager called "free download manager"
www.freedownloadmanager.org/

i can confirm that it does work with 5.0.5 since all of my user seem to get it to work aswell

RS_Jelle 12-12-2007 07:07 PM

Quote:

Originally Posted by maidos (Post 1400021)
great :)

beside on 5.0.5 it acutally worked with a download manager called "free download manager"
www.freedownloadmanager.org/

i can confirm that it does work with 5.0.5 since all of my user seem to get it to work aswell

Like I said: the only change to the actual download code we made between 5.0.5 and 5.0.6 is a small change to a header. Pausing downloads etc. requires other headers and HTTP requests, but we don't have such code at the moment in DownloadsII, so normally this change doesn't matter (we only included it as someone had some corruption problems with IE and this change fixed it, I don't know why, it only happened on his server).

To undo it:

Open downloads.php
Find
PHP Code:

header("Content-Type: $ctype; name=\"".basename($filename)."\";"); 

Replace with
PHP Code:

header("Content-Type: $ctype"); 

I don't know how this could affect the special pausing/resuming etc. features of a download manager.

Nomble 12-12-2007 07:32 PM

Cant import the product.

Getting this.

XML Error: not well-formed (invalid token) at Line 1149


All times are GMT. The time now is 09:16 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.04352 seconds
  • Memory Usage 1,764KB
  • 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
  • (6)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
  • (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