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)

Liquid_N2 07-29-2006 09:46 PM

file sizes vary, as does the delay it seems

HappyPike 07-29-2006 11:48 PM

hey westpointer, any idea how I could make it so it doesn't remove <, > and tags enclosed in <> from file descriptions?

CyberRanger 07-30-2006 01:50 AM

Quote:

Originally Posted by HappyPike
My member reported that he has issue using the > and < characters inside the descriptions for the files even inside of the code, html, and quote tags. I just tried it and the >, <, and tags all get removed in the description.

For example, when I try with this code:

Code:

<ModInfo>
    <Type>IMPROVEMENT</Type>
    <Description>IMPROVEMENT_INN</Description>
</ModInfo>

It changes the code to just:

Code:

    IMPROVEMENT
    IMPROVEMENT_INN

!

If the user is using the "Enhanced Interface - Full WYSIWYG Editing" this will not occur. However, from my testing, it does occur using the other two editors. I'll look into it more.:cross-eyed:

CyberRanger 07-30-2006 01:55 AM

Quote:

Originally Posted by Liquid_N2
I seem to have an issue where a user cannot download for 1165 seconds after clicking a download no matter what I set the time to.

Any ideas?

There is a built in delay based on the size of the file that was downloaded last. The idea is to prevent someone from launching a denial of service attack on your site by repeatedly downloading a very large file in short periods of time. If you want to disable this feature, in downloads.php

FIND (on or about line 513):
PHP Code:

if ((TIMENOW - ($temptime['time'] + $temptime['filesize']/400000)) < OR (TIMENOW $temptime['time']  < $vbulletin->options['ecdownloaddelay'])) 

REPLACE WITH:
PHP Code:

if ((TIMENOW + ($temptime['time'] + $temptime['filesize']/400000)) < OR (TIMENOW $temptime['time']  < $vbulletin->options['ecdownloaddelay'])) 

(The first minus is changed to a plus. The only "delay" check will now be based on what you set in admincp.

Liquid_N2 07-30-2006 09:06 AM

thank you very much that has sorted that.

HappyPike 07-30-2006 02:50 PM

Quote:

Originally Posted by westpointer
If the user is using the "Enhanced Interface - Full WYSIWYG Editing" this will not occur. However, from my testing, it does occur using the other two editors. I'll look into it more.:cross-eyed:

Thanks. I told my users who need to use those characters to switch to WYSIWYG for now.

project-Buckfas 07-30-2006 03:58 PM

Hey,

Some of my downloads link to the download page on another site (link to file), but they open in the same page after clicking download meaning users are leaving my site to view that page.

How can I make it open in a new window after clicking download?

Thanks

HappyPike 07-30-2006 05:58 PM

Quote:

Originally Posted by project-Buckfas
Hey,

Some of my downloads link to the download page on another site (link to file), but they open in the same page after clicking download meaning users are leaving my site to view that page.

How can I make it open in a new window after clicking download?

Thanks

Try searching fo the variable $download in the downloads.php file. When you find it you can add a target="_blank" to the link...

HappyPike 07-30-2006 06:09 PM

Hi westpointer and Jelle, I received a second report from my users (in Registered group) that delete comment doesn't work for them. It simply reloads the page w/o deleting the comment. I confirmed the report using a test account.

I can delete comment fine using my admin account.

HappyPike 07-30-2006 09:16 PM

I managed to show forum style rating stars on the category file listing page using template conditions. If anyone is interested, here is the code to use:

Code:

<!-- Star Rating -->
<if condition="$file['rating'] >= 9.5">
    <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" border="0" alt="Rating" /></span>
<else />
    <if condition="$file['rating'] >= 8.5">
        <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" border="0" alt="Rating" /></span>
    <else />
                <if condition="$file['rating'] >= 7.5">
                        <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" border="0" alt="Rating" /></span>
                <else />
                            <if condition="$file['rating'] >= 6.5">
                                        <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" border="0" alt="Rating" /></span>
                                <else />
                                        <if condition="($file['rating'] >= 5) AND ($file['rating'] < 6.5)">
                                                <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" border="0" alt="Rating" /></span>
                                        </if>
                                </if>
                </if>
    </if>
</if>
<!-- Star Rating End -->

Just edit the downloads_cat_filebit template and put the above code right before the file name link
<a href="downloads.php?do=file&amp;id={$file['id']}">{$file['name']}</a>.

You can also use the above code to put the rating stars in the file details page, replacing the A+ to F grades. The template to edit for this is downloads_file .

You can tweak the numbers in the codes to anything you want. Just remember the rating is between 5 and 10, and unrated files have 0 as default value.

Moosehunter 07-31-2006 12:47 AM

Is there anyway to get this download manager to intergrate into the newattachments.php file so that when a user goes to add an attachment to a post that instead of it going through vb's standard upload manager that it uses this file managers upload manager and add's a link to the file to the post the user is creating.

DementedMindz 07-31-2006 08:51 PM

I see you merged ecdownloads buddy with this (The Buddy's features are now integrated into DownloadsII.) but when on the downloads page if I dont use a username it says Unknown (Uploaded by Demented) any way to just have it show the uploader instead of Unknown...

CyberRanger 07-31-2006 11:31 PM

Quote:

Originally Posted by DementedMindz
I see you merged ecdownloads buddy with this (The Buddy's features are now integrated into DownloadsII.) but when on the downloads page if I dont use a username it says Unknown (Uploaded by Demented) any way to just have it show the uploader instead of Unknown...

I need to look at this closer. The Author feature was changed in ecDownloads ver 4.1 causing the Unknown to appear. I'll see what we can do about that on the next release.

cookiepants 08-01-2006 12:14 AM

I am very happy to have found this! EXACTLY what my site needed! Much more straight forward than the other ones I tried. I am having one problem though.

When I browse to import a bunch of files, then press "import files" I get this message:

Code:

Warning: Invalid argument supplied for foreach() in /admincp/downloadadmin.php on line 366
I did it on my computer upstairs and it worked, but I wanted to change it a little bit so I deleted all the downloads and now can't get them back in. I searched this thread but didn't see anything.

If it helps, I did chmod the downloadadmin.php to 777.

Thanks much!

Megan

cookiepants 08-01-2006 12:22 AM

okay, nevermind. Apparently I forgot to check the little 'upload' boxes. Sorry.... :confused:

HappyPike 08-01-2006 04:38 PM

On the Stats page, the Bandwidth value maxed out at 4294967 KB. Apparently this is a data type problem.

Right now it's int(10) unsigned:

INT( ) -2,147,483,648 to 2,147,483,647 normal
0 to 4,294,967,295 UNSIGNED.

CyberRanger 08-01-2006 04:49 PM

Quote:

Originally Posted by HappyPike
On the Stats page, the Bandwidth value maxed out at 4294967 KB. Apparently this is a data type problem.

Right now it's int(10) unsigned:

INT( ) -2,147,483,648 to 2,147,483,647 normal
0 to 4,294,967,295 UNSIGNED.

ah ... crap. hugh_ told me about that bug and I forgot. I'll add that to the list.

CyberRanger 08-01-2006 05:14 PM

Quote:

Originally Posted by project-Buckfas
Hey,

Some of my downloads link to the download page on another site (link to file), but they open in the same page after clicking download meaning users are leaving my site to view that page.

How can I make it open in a new window after clicking download?

Thanks

I found this occurs when clicking on the on the download link located on the page that lists a summary of the files in the category but not when looking at the detailed listing for one file.

To fix it, in downloads.php around line 300 -

FIND:
PHP Code:

    if ($db->num_rows($result) > 0)
    {
        while (
$file $db->fetch_array($result))
        {
            
$date vbdate($vbulletin->options['dateformat'],$file['date'],true);        
            
$downloads vb_number_format($file['downloads']); 

BELOW that ADD:
PHP Code:

            // added to open links in a new window Aug 1, 06
            
if ($file['link'] == 1)
            {
                
$target 'target="_blank"';
            }
            else
            {
                
$target 'target="_self"';
            } 


HappyPike 08-01-2006 05:44 PM

Any idea when the next version would come out? ;) Hope you could add a few other features in (like showing the file's category on My Files page and Member Files section in profiles) besides the multiple mirrors...

Also, on the file details page, it would be nice to add a "Last Update" info to show when the file was last updated (like they have here on the forum). perhaps there could be a new "Latest Updates" list besides the Latest Files, Most Popular Files, and Top Contributors lists.

NiTRoN 08-01-2006 05:47 PM

Hey westpointer.. I just though something you might want to include in the installation file. When I did the upgrade/install it dropped all of the ecdownloads 4.x tables. Had to start from scratch.. Don't know if that what it suppose to do. In my case I had old backup of SQL file and had to modify backup to reinsert the proper tables with all my links back in.

CyberRanger 08-01-2006 05:55 PM

Quote:

Originally Posted by NiTRoN
When I did the upgrade/install it dropped all of the ecdownloads 4.x tables. Had to start from scratch.. Don't know if that what it suppose to do. In my case I had old backup of SQL file and had to modify backup to reinsert the proper tables with all my links back in.

That's very odd and should not happen. I've installed each upgrade on three different boards without losing any data. Anyone else seen this?

HappyPike 08-01-2006 06:43 PM

Quote:

Originally Posted by westpointer
That's very odd and should not happen. I've installed each upgrade on three different boards without losing any data. Anyone else seen this?

No, I installed two upgrades so far with no lost of data. I didn't even backup the database before I upgrade too.

Though I probably should start doing backups from now on... My file DB has tons of files now. My members would be really mad at me if all their hard work got wipe out. :p

NiTRoN 08-01-2006 06:48 PM

oh well no biggie.. I got it up and running 5min later after it happened...

What think it happened was when I did upgrade the postbits weren't showing up at all so I uninstalled the 4.x version.. and reinstalled 5.x... which I think it was the cause of tables being dropped.

Oh well anyhow.. Another question.. Where is it suppose to "Category Image" show the actuall image? I've placed full url and i'm looking thru the categories and don't see anywhere logos/images showing for the categories.

Is there somewhere I need to enable it?

Raul7 08-01-2006 06:48 PM

Before i install this, i am wondering is there anyway to add more than one URL to a file? for example what if my file has, part 1, part 2, bla bla, anyway to put all parts in one post?
thank you

NiTRoN 08-01-2006 06:51 PM

Quote:

Originally Posted by Raul7
Before i install this, i am wondering is there anyway to add more than one URL to a file? for example what if my file has, part 1, part 2, bla bla, anyway to put all parts in one post?
thank you

not at this time without creating separate entries.. but you can alwasy put urls for 2/3/4th part in the description.. if you want..

That is one of the features that it is on list of things to do.

HappyPike 08-01-2006 06:57 PM

Quote:

Originally Posted by NiTRoN
oh well no biggie.. I got it up and running 5min later after it happened...

What think it happened was when I did upgrade the postbits weren't showing up at all so I uninstalled the 4.x version.. and reinstalled 5.x... which I think it was the cause of tables being dropped.

Oh well anyhow.. Another question.. Where is it suppose to "Category Image" show the actuall image? I've placed full url and i'm looking thru the categories and don't see anywhere logos/images showing for the categories.

Is there somewhere I need to enable it?

heh, I think the postbit not showing is actually due to a renamed desc field. :) All you needed to do was revert a few edited templates for it to show up. The tables should still be there.

The category images show up fine for me.

Quote:

Originally Posted by NiTRoN
not at this time without creating separate entries.. but you can alwasy put urls for 2/3/4th part in the description.. if you want..

Thart's what my members do. or merge the parts into 1 file....

HappyPike 08-01-2006 07:14 PM

Is anyone able to show the info in postbit?

Quote:

Find in postbit and postbit_legacy
Code:

$vbphrase[posts]: $post[posts]
Add below
Code:

$dmemberinfo

I did these sometime ago but nothing appears in postbit.

CyberRanger 08-01-2006 07:53 PM

Quote:

Originally Posted by HappyPike
Is anyone able to show the info in postbit?


I did these sometime ago but nothing appears in postbit.

I actually scratched my head on this one for a few minutes too! I'd failed to change "Show Download Stats" and "Show Member Files" to "Yes" in admincp -> downloads -> settings. Could that be what's getting you?

HappyPike 08-01-2006 08:15 PM

Cool. Turning on that "Show Download Stats" option got it to work. :) Though I decided not to show the info in postbit.. just in profile page is enough.

DementedMindz 08-02-2006 02:45 AM

Everyone should Nominate for Mod o.t. Month... I Personally feel westpointer has put so much time in this and major support.. To not see it in this months Mod o.t. Month sucks but i voted for his other mod ;)

Maagic 08-02-2006 02:34 PM

I have this working on my site, and have imported some files, but when I click the download link it just sits there for about 5 minutes then I get the usual "save as" window. No errors though.

bollie 08-03-2006 11:29 AM

Invalid SQL:
SELECT * FROM dl_files WHERE `purgatory` = '0' AND `category` = '4' ORDER BY `pin` DESC, `postdate` DESC LIMIT 0,20;

MySQL Error : Unknown column 'postdate' in 'order clause'
Error Number : 1054
Date : Thursday, August 3rd 2006 @ 02:26:35 PM
Script : ..................../forum/downloads.php?do=cat&id=4&sort=postdate
Referrer :
IP Address : ...............
Username : ..........
Classname : vB_Database

CyberRanger 08-03-2006 11:46 AM

Quote:

Originally Posted by bollie
Invalid SQL:
SELECT * FROM dl_files WHERE `purgatory` = '0' AND `category` = '4' ORDER BY `pin` DESC, `postdate` DESC LIMIT 0,20;

MySQL Error : Unknown column 'postdate' in 'order clause'

Script : ..................../forum/downloads.php?do=cat&id=4&sort=postdate

I've confirmed using that url will generate that error ... but I can't figure out how you got there. Can you provide some more details about what you clicked on to get to that point?

RS_Jelle 08-03-2006 02:32 PM

I can't find out how you generated that error. The sort order is put immediately in the query without any check (only the standard security check), so that can give these problems. That's also one of the things I'm rewriting for a next release, so there will be a check to block unvalid sort options. In a next release there will be also an ascending/descending option for a more logical sorting :)

I would suggest you to revert all downloads templates and reupload the files. Maybe you changed something?

HappyPike 08-06-2006 12:04 AM

westpointer & Jelle, do you know if this version works with vB 3.6?

CyberRanger 08-06-2006 01:48 AM

Quote:

Originally Posted by HappyPike
westpointer & Jelle, do you know if this version works with vB 3.6?

Yes, it does.

unitedpunjab 08-06-2006 02:59 AM

I have VB 3.6.0 Installed. And Yesterday i installed Downloads II mod. It is workin fine and efficently. I just want to know few things:-

1. What is ECDonwload Buddy and how it gonna help me with Downloads II on VB 3.6.0 ??

2. How can i add Multiple External link in single download post. e.g Let say i have musical album with 10 diffrent link and all are external links. How can i add them using external link feautre in single download post ??

Please Explain. Waiting for Quick Reply.

By the Nice Job Done. Me LIKI IT :D

CyberRanger 08-06-2006 03:03 AM

Quote:

Originally Posted by unitedpunjab
I have VB 3.6.0 Installed. And Yesterday i installed Downloads II mod. It is workin fine and efficently. I just want to know few things:-

1. What is ECDonwload Buddy and how it gonna help me with Downloads II on VB 3.6.0 ??

All of the Buddy features are integrated into the latest version of DownloadsII. You should NOT install Buddy. Simply install the latest version of DownloadsII.
Quote:

Originally Posted by unitedpunjab
2. How can i add Multiple External link in single download post. e.g Let say i have musical album with 10 diffrent link and all are external links. How can i add them using external link feautre in single download post ??

This isn't currently supported ... exactly. BUT ... the description for each download file supports adding links in the text so if the links are external you can add an unlimited number of links in the description,

unitedpunjab 08-06-2006 03:08 AM

Quote:

Originally Posted by westpointer
This isn't currently supported ... exactly. BUT ... the description for each download file supports adding links in the text so if the links are external you can add an unlimited number of links in the description,

But User usually Click on that Big Download Button...and they expect to b downloaded everything from there or from the linkz listed below......

But i think u also suggested me a good way to add external links.

Wat else i can do with this ?? any other nice idea :p

Mickie D 08-06-2006 12:15 PM

ok i have found that there is a issue with php5 and the new release becuase it gets to 1.9mb and stops when downloading so i did a google on this error and found some other download software was having the same issue and they fixed this... but i dont know how sorry.

please look at this website they have the same issue

http://www.cubecart.com/site/forums/...hp/t18311.html

mainly post 5 ;)

is there any changes that are causing this as it was working great before the latest update ??

or can i downgrade to an earlier stable version if it cannot be fixed ?

Regards


All times are GMT. The time now is 08:13 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.04047 seconds
  • Memory Usage 1,875KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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