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-08-2007 01:55 PM

Quote:

Originally Posted by SAUR0N (Post 1397353)
is it normal that the files dupicates itself into a tmp folder? because with a 500kb files it's ok but with a 2gb :S

Yes, that's normal and how the program works. It duplicates itself but is then erased. This prevents people from directly linking to the file.

SAUR0N 12-09-2007 01:42 PM

what would happen if 4 users wants to download the same file at the same time?. will it duplicate 4 times?

what about using fpassthru ?

InoffLine 12-10-2007 04:34 AM

As i understood it makes more then 35 sql queries on one page. So will you work on decreasing their number?

RS_Jelle 12-10-2007 05:10 AM

Quote:

Originally Posted by SAUR0N (Post 1397893)
what would happen if 4 users wants to download the same file at the same time?. will it duplicate 4 times?

what about using fpassthru ?

We're working on this for v6 (also putting files in multiple directories (with an option for storing them outside the forums directory) instead of all files in one).

Quote:

Originally Posted by InoffLine (Post 1398355)
As i understood it makes more then 35 sql queries on one page. So will you work on decreasing their number?

Not on normal pages :)
You only get those numbers if you are having a lot of subcategories as we aren't caching the category structure yet. So the amount *can* be high, but as the category table isn't that heavy, the queries aren't slow and the page also isn't.
But we are working on it: storing the category structure in the datastore would be better.

jimjam 12-10-2007 11:04 AM

Suddenly, members are getting "ERROR: File not found" on just some files they want to download. The files are physically there in the downloads folder.

Any idea what might be causing this?

Thanks in anticipation

Kingster 12-10-2007 01:10 PM

Great mod guys... It's working well so far. Had a few issues converting some old downloads that I had, plugging it into your mod... But so far, so good. I've clicked Installed.

Couple of things that I'm (and my users) are looking for:
  1. Search downloads by user. I know that I can go to the person's profile and see what they've uploaded, but I'd like to add a button image to their postbit if they have files that they've upped. This button would take them to the result of a search for files that they have uploaded. Thoughts on how to do this?
  2. RSS feeds for categories. I have users that would like to watch for new files. Anyway to create RSS feeds that displays most recent uploads by category as well as an overall most recent uploads? I could do a work-around by creating a thread per upload, but, why, when comments for each upload is available.
  3. I mentioned it before - no one responded... What about using one of the free flash-based uploaders out there - doesn't have all the PHP upload limitations, plus it gives visual feedback on the upload process... And, it's not FTP based.
  4. How do I set the default download button to be used when viewing a category? Currently it shows the collapse button, and I've created a much better button that I would like to use. I thought it was the ecdownloads_download_pic variable in the phrase table (doesn't seem to be exposed anywhere on the interfaces), but it didn't change the image used when I changed the name to the new image I wanted to use.
Once again, great mod! Thanks for all your support!

xTerMn8R 12-10-2007 02:21 PM

Hey Folks

I had this installed and working great and then added a new skin to the site (style) Now when I try and download something It tells me I've excided my Daily Limit. I'm ADMIN and have checked all the permissions for DownloadsII and have NO restrictions on group and checked all the settings. I did find that I had to re-import a lot of my other products to get them to work in this style so My question is ....

If I re-install the DownloadsII Product will it Kill all the Files and catagories I already have in there, this really would not be good... Is there another way to tell it to work with a new style without re-installing?

Thanks to ALL ...

Termi

Tom_S 12-10-2007 07:47 PM

I am sure this may have been answered but I haven't found it. When linking to a file such as on downloads.com the url being huge this mod does not accept the entire url. Is there a fix for this? I know the original -> Minatica.be Downloads is working fine with this method so evidently there is an edit I can make somewhere to accommodate this issue.

Thanks in advance.

Kingster 12-10-2007 11:05 PM

Quote:

Originally Posted by Kingster (Post 1398538)
Couple of things that I'm (and my users) are looking for:

Add one more thing to the list - resumable downloads: Some code along these lines:
PHP Code:

<?php
function dl_file_resume($file){

    
//First, see if the file exists
    
if (!is_file($file)) { die("<b>404 File not found!</b>"); }
   
    
//Gather relevent info about file
    
$len filesize($file);
    
$filename basename($file);
    
$file_extension strtolower(substr(strrchr($filename,"."),1));
   
    
//This will set the Content-Type to the appropriate setting for the file
    
switch( $file_extension ) {
        case 
"exe"$ctype="application/octet-stream"; break;
        case 
"zip"$ctype="application/zip"; break;
        case 
"mp3"$ctype="audio/mpeg"; break;
        case 
"mpg":$ctype="video/mpeg"; break;
        case 
"avi"$ctype="video/x-msvideo"; break;
        default: 
$ctype="application/force-download";
    }
   
    
//Begin writing headers
    
header("Cache-Control:");
    
header("Cache-Control: public");
   
    
//Use the switch-generated Content-Type
    
header("Content-Type: $ctype");
    if (
strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) {
        
# workaround for IE filename bug with multiple periods / multiple dots in filename
        # that adds square brackets to filename - eg. setup.abc.exe becomes setup[1].abc.exe
        
$iefilename preg_replace('/\./''%2e'$filenamesubstr_count($filename'.') - 1);
        
header("Content-Disposition: attachment; filename=\"$iefilename\"");
    } else {
        
header("Content-Disposition: attachment; filename=\"$filename\"");
    }
    
header("Accept-Ranges: bytes");
   
    
$size=filesize($file);
    
//check if http_range is sent by browser (or download manager)
    
if(isset($_SERVER['HTTP_RANGE'])) {
        list(
$a$range)=explode("=",$_SERVER['HTTP_RANGE']);
        
//if yes, download missing part
        
str_replace($range"-"$range);
        
$size2=$size-1;
        
$new_length=$size2-$range;
        
header("HTTP/1.1 206 Partial Content");
        
header("Content-Length: $new_length");
        
header("Content-Range: bytes $range$size2/$size");
    } else {
        
$size2=$size-1;
        
header("Content-Range: bytes 0-$size2/$size");
        
header("Content-Length: ".$size);
    }
    
//open the file
    
$fp=fopen("$file","rb");
    
//seek to start of missing part
    
fseek($fp,$range);
    
//start buffered download
    
while(!feof($fp)){
        
//reset time limit for big files
        
set_time_limit(0);
        print(
fread($fp,1024*8));
        
flush();
        
ob_flush();
    }
    
fclose($fp);
    exit;
}
?>


RS_Jelle 12-11-2007 05:44 AM

Quote:

Originally Posted by jimjam (Post 1398483)
Suddenly, members are getting "ERROR: File not found" on just some files they want to download. The files are physically there in the downloads folder.

Any idea what might be causing this?

Thanks in anticipation

Did you change servers? Check the chmod of the downloads folder, is it still 777? And do the files inside of it (not the images) have got a 666 chmod?

Quote:

Originally Posted by xTerMn8R (Post 1398570)
Hey Folks

I had this installed and working great and then added a new skin to the site (style) Now when I try and download something It tells me I've excided my Daily Limit. I'm ADMIN and have checked all the permissions for DownloadsII and have NO restrictions on group and checked all the settings. I did find that I had to re-import a lot of my other products to get them to work in this style so My question is ....

If I re-install the DownloadsII Product will it Kill all the Files and catagories I already have in there, this really would not be good... Is there another way to tell it to work with a new style without re-installing?

Thanks to ALL ...

Termi

That's pretty strange. I don't know how a new style could cause such an error (caused by the DownloadsII PHP code, it hasn't anything to do with the style normally). Are you really sure about the settings of the limits?

If you reinstall (or better said: uninstall and install), all the database stuff will be removed during the uninstall, so you lose all of your data (except uploaded files in your downloads folder). I suggest you to import the product XML again (without uninstalling first!) with the "Allow overwrite" option on. Then the templates etc. are added again to all styles (but it doesn't overwrite template modifications, but that's not the problem).

Quote:

Originally Posted by Tom_S (Post 1398760)
I am sure this may have been answered but I haven't found it. When linking to a file such as on downloads.com the url being huge this mod does not accept the entire url. Is there a fix for this? I know the demo Minatica.be Downloads is working fine with this method so evidently there is an edit I can make somewhere to accommodate this issue.

Thanks in advance.

That hasn't anything to do with the demo as we are having the same limitation there.

But it's easy to get rid off :)
It's no database limitation (it's a text field, so plenty of space), but an HTML limitation (the input field for links has got a maxlength of 250 characters. Just edit the downloads_file_addit template and change the maxlength in the following part of the code:
HTML Code:

<input name="link" type="text" size="40" maxlength="250" <if condition="$file['link']==1">value="{$_POST['url']}"</if> />
@Kingster: We are working on v6, but at the moment I'm a bit busy (I've got examns at university in januari). There's already a lot of progress in it (more search options, extensions management -like the vB attachments-, default category sort options and a new category admin, ...). RSS, the search, ... are already suggested, so we try to integrate as much as things, but it's also slowing down a lot. I won't get to a release before the end of my exams, but I really want to finish it finally as we are talking already too long about the new version.

Strange about the category image thing. It's a hardcoded thing, but if there's no image, it's using the ecdownloads_download_pic defined image (I know, not that nice, but we wanted a default image everyone has got). Also note that the image should be placed in your styles buttons folder, that's probably your problem.

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

maidos 12-12-2007 07:56 PM

thanks alot the edited code works

Nomble 12-12-2007 08:07 PM

Another error now.

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/epicsi5/public_html/forum/admincp/plugin.php(1970) : eval()'d code on line 77

Database error in vBulletin 3.6.8:

Invalid SQL:
SHOW COLUMNS FROM `dl_cats` LIKE 'desc';

MySQL Error : Table 'epicsi5_vbulletin.dl_cats' doesn't exist
Error Number : 1146
Date : Wednesday, December 12th 2007 @ 02:06:44 PM
Script : http://www.epicsize.net/forum/adminc...=productimport
Referrer : http://www.epicsize.net/forum/adminc...?do=productadd
Classname : vb_database

RS_Jelle 12-12-2007 08:28 PM

Quote:

Originally Posted by Nomble (Post 1400049)
Cant import the product.

Getting this.

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

Quote:

Originally Posted by Nomble (Post 1400068)
Another error now.

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/epicsi5/public_html/forum/admincp/plugin.php(1970) : eval()'d code on line 77

Database error in vBulletin 3.6.8:

Invalid SQL:
SHOW COLUMNS FROM `dl_cats` LIKE 'desc';

MySQL Error : Table 'epicsi5_vbulletin.dl_cats' doesn't exist
Error Number : 1146
Date : Wednesday, December 12th 2007 @ 02:06:44 PM
Script : http://www.epicsize.net/forum/adminc...=productimport
Referrer : http://www.epicsize.net/forum/adminc...?do=productadd
Classname : vb_database

You get the second error because the import failed. There's nothing wrong with the XML as it works for other people and it validates perfectly when I throw it throught the W3C Validator.
Try to reupload/reimport the product XML with the overwrite option on.

Nomble 12-12-2007 08:31 PM

I thinI got it now, but I can't seem to find the option to set usergroup permissions.

EDIT: Infact everything is screwy, after trying to upload the xml a couple it worked and the usermanager options appeared. But im still missing the admincp download options.

Pirat3 12-12-2007 09:22 PM

hi i downloaded this, can anyone please tell me how to go to the download page where the created catagories exist? And where I can view the catarogies as if a guest would without having to install the download nav button on the README? thanks

cellow 12-12-2007 09:35 PM

Quote:

Originally Posted by RS_Jelle (Post 1399946)
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']); 


Thx RS_JELLE -> IT WORKS PERFECT (hope you will fix it in new versions)
i found now the sql errors in the sourcecode of the html error page :)

Code:

<!--
Datenbankfehler in vBulletin 3.6.8:

Invalid SQL:
SELECT title, usergroup.usergroupid, username, userid
                          FROM vb3_usergroup, vb3_user
                          WHERE ecdownloadpermissions &amp; 1024 AND  usergroup.usergroupid = user.usergroupid;

MySQL-Error : Unknown column 'usergroup.usergroupid' in 'field list'
Error-Nr.  : 1054
Date        : Thursday, December 13th 2007 @ 12:30:32 AM
Skript      : http://www.domainname.de/forum/downloads.php?do=add&amp;id=
Referrer    : http://www.domainname.de/forum/downloads.php?do=add&amp;cat=
IP-Adresse  : 80.135.99.182
Username : CAM
Classname  : vB_Database

-->

I hope we can fix that asap.

Thank you for your support!
regards

cOuNtErFiET 12-12-2007 09:47 PM

i have 5.0.6 installed and im god admin on my site and im getting
Code:

You don't have permission to access /forums/downloads.php on this server
and all the settings in the mod are set right and havent changed since 5.0.4 and i was getting this error with that version is it the host that i should contact or is there a quick fix that im overlooking?

Pirat3 12-12-2007 10:13 PM

Problem fixed I assumed that admins would have access to downloads.php in usergroups, aparently they dont :)

Tom_S 12-12-2007 10:54 PM

Love it! This mod is one of the best yet. Of course it could use some improvements but I see that being done already so I am not griping. This one I would pay for. One of the biggest issues I see with this though is having files posted with file size showing in BYTES. You have noobs not even knowing how to install it much less users that are going to know how to convert MB to BYTES so there for you are going to have a File Base full of (Unknown) for file size.

I would suggest having it so you can put whatever the actual file size is or none at all. I would prefer the actual file size.

Again..great mod. a few more tweaks and upgrades and this one will be one of the best yet. It is worth paying for. ;)

Joshva 12-13-2007 02:02 AM

Quote:

Originally Posted by RS_Jelle (Post 1399946)
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.



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') . '";'); 




Thanks for the response. I'd strongly suggest putting it as an option in downloads admin as anyone using your vbadvanced plugin will probably want to remove it :)

Cheers,
Josh

maidos 12-13-2007 10:49 AM

is it possible to add a search field on the download main page?

CyberRanger 12-13-2007 11:22 AM

Quote:

Originally Posted by Pirat3 (Post 1400117)
hi i downloaded this, can anyone please tell me how to go to the download page where the created catagories exist?

That option is in your admincp under Downloads.
Quote:

Originally Posted by Pirat3 (Post 1400117)
And where I can view the catarogies as if a guest would without having to install the download nav button on the README? thanks

simply go to your forum directory and type downloads.php in the address bar of your browser.

kaptanblack 12-13-2007 11:39 AM

Thanks...

RS_Jelle 12-13-2007 03:49 PM

Quote:

Originally Posted by Nomble (Post 1400086)
I thinI got it now, but I can't seem to find the option to set usergroup permissions.

EDIT: Infact everything is screwy, after trying to upload the xml a couple it worked and the usermanager options appeared. But im still missing the admincp download options.

You probably missed uploading some files. Reupload all files from the DownloadsII upload folder again to your forums FTP. /includes/xml/cpnav_ecdownloads.xml is controlling the link in the left bar of the AdminCP, so you have missed already that one for sure (probably others also).

Quote:

Originally Posted by cellow (Post 1400125)
Thx RS_JELLE -> IT WORKS PERFECT (hope you will fix it in new versions)
i found now the sql errors in the sourcecode of the html error page :)

Code:

<!--
Datenbankfehler in vBulletin 3.6.8:

Invalid SQL:
SELECT title, usergroup.usergroupid, username, userid
                          FROM vb3_usergroup, vb3_user
                          WHERE ecdownloadpermissions &amp; 1024 AND  usergroup.usergroupid = user.usergroupid;

MySQL-Error : Unknown column 'usergroup.usergroupid' in 'field list'
Error-Nr.  : 1054
Date        : Thursday, December 13th 2007 @ 12:30:32 AM
Skript      : http://www.domainname.de/forum/downloads.php?do=add&amp;id=
Referrer    : http://www.domainname.de/forum/downloads.php?do=add&amp;cat=
IP-Adresse  : 80.135.99.182
Username : CAM
Classname  : vB_Database

-->

I hope we can fix that asap.

Thank you for your support!
regards

That's a problem with the DownloadsII PM moderation notification Add-On, not with DownloadsII itself. There are missing some TABLE_PREFIX codes, so that gives an issue if you are using a table prefix for vBulletin. You can find a fix here, but I'm passing this to CyberRanger to include the fix by default as it's there already for a lot of months. It should be ok by default :)

Quote:

Originally Posted by cOuNtErFiET (Post 1400133)
i have 5.0.6 installed and im god admin on my site and im getting
Code:

You don't have permission to access /forums/downloads.php on this server
and all the settings in the mod are set right and havent changed since 5.0.4 and i was getting this error with that version is it the host that i should contact or is there a quick fix that im overlooking?

Check the chmod of your downloads.php and compare it with other vBulletin PHP files which are working. Mostly it should have a chmod 644.
You probably better contact your host to report this problem as it's a server configuration problem most of the times (wrong default chmod given by default or so).

Quote:

Originally Posted by Tom_S (Post 1400160)
Love it! This mod is one of the best yet. Of course it could use some improvements but I see that being done already so I am not griping. This one I would pay for. One of the biggest issues I see with this though is having files posted with file size showing in BYTES. You have noobs not even knowing how to install it much less users that are going to know how to convert MB to BYTES so there for you are going to have a File Base full of (Unknown) for file size.

I would suggest having it so you can put whatever the actual file size is or none at all. I would prefer the actual file size.

Again..great mod. a few more tweaks and upgrades and this one will be one of the best yet. It is worth paying for. ;)

If you are uploading a fill, we already put the correct size by default.
For linking, this isn't that easy to do automatically (the server could throw up a lot of errors, can be slow if it's a big file, ...). Working with a Bytes field is giving the most correct result, as MB's are a bit rough :)

You could always edit the downloads_file_addit template and put a link to a free bit calculator.

Quote:

Originally Posted by maidos (Post 1400406)
is it possible to add a search field on the download main page?

You can edit the templates like you want as DownloadsII is fully templated :)
The main page HTML code is inside of the downloads_main template and a search field it pretty easy to add. Just add this HTML code where you want it and add some style to it like you want:

HTML Code:

        <form action="./downloads.php?do=search" method="post">
      <br />{$vbphrase['ecdownloads_search_instructions']}
      <br /><input type="text" name="query" maxlength="75" size="50" />&nbsp;<input type="submit" name="submit" value="{$vbphrase['ecdownloads_search']}" />
      </form>


ReQueM 12-13-2007 05:25 PM

1 Attachment(s)
Thank you for this great hack
But i can't download files via FlashGet :( Attachment 73186

RS_Jelle 12-13-2007 08:02 PM

Quote:

Originally Posted by ReQueM (Post 1400541)
Thank you for this great hack
But i can't download files via FlashGet :( Attachment 73186

We don't support download managers at this moment.

cellow 12-13-2007 11:28 PM

Quote:

Originally Posted by RS_Jelle (Post 1400507)
That's a problem with the DownloadsII PM moderation notification Add-On, not with DownloadsII itself. There are missing some TABLE_PREFIX codes, so that gives an issue if you are using a table prefix for vBulletin. You can find a fix here, but I'm passing this to CyberRanger to include the fix by default as it's there already for a lot of months. It should be ok by default :)

result = positive
Works perfect!

Thank you master ;)

mark|3 12-14-2007 05:08 PM

i have uploaded by placing a link(e.g. www.testsite.com/files/abc.doc) . But i think there is a problem the hyperlinks for both the Latest Files and most popular links. It displays in this manner http://www.testsite.com/forum/www.te.../files/abc.doc. Any fix for this? Thanks

CyberRanger 12-14-2007 05:43 PM

Quote:

Originally Posted by mark|3 (Post 1401048)
i have uploaded by placing a link(e.g. www.testsite.com/files/abc.doc) . But i think there is a problem the hyperlinks for both the Latest Files and most popular links. It displays in this manner http://www.testsite.com/forum/www.te.../files/abc.doc. Any fix for this? Thanks

I can't replicate that. Are you putting the link in the "Link to a File" box?

SbyD_Salient 12-15-2007 02:55 AM

First up awesome mod dude, thanks for putting it at vborg

Clicked the installed button not sure if anything else is meant to happenn

Possibly to change user permissions to be either for individual downloads or categories? That would be exactly what we need <insert puppy dog eyes>


All times are GMT. The time now is 10:45 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.04870 seconds
  • Memory Usage 1,972KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (11)bbcode_php_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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