vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   ecDownloads Buddy (https://vborg.vbsupport.ru/showthread.php?t=111293)

CyberRanger 03-24-2006 10:00 PM

ecDownloads Buddy
 
If you are using ecDownloads Buddy, you should UNINSTALL it and install ecDownloadsII ver 5.0.1.

CyberRanger 03-25-2006 01:56 AM

  • July 6: Version 2.3 released. Modified to work with ecDownloadsII. Fixed text not showing for "Assign New Uploader".
  • June 6: Version 2.2 released. No new features. The "rebuild bitfields" was removed from the product because it was looping on some people. You will now need to manually rebuild them after you install: /admincp/index.php?do=buildbitfields.
  • March 30: Version 2.0 released. If you are upgrading, you can simply import the xml file that is included in the zip AND upload the file bitfield_ecdownloadsbuddy.xml into the includes/xml folder. Otherwise, follow the installation instructions above.
    New Features:Settings per usergroup for the maximum amount a user may download per day (in MB) and the total maximum amount the user may upload. Default for each is set to unlimited.

    Version 2.1 added author defaults to uploader name if author left blank.
  • March 29: Version 1.1 released. If you are upgrading, you can simply import the xml file that is included in the zip. Otherwise, follow the installation instructions above.
    New feature: When downloading a file, the user is forced to select "save as" or "open" file. This will prevent files from automatically opening.

MissKalunji 03-25-2006 02:04 AM

yaye thanks wespointer!

DementedMindz 03-25-2006 02:05 AM

Thanks :)

Robbed 03-25-2006 03:13 AM

Cool

CyberRanger 03-25-2006 03:52 AM

If you like this concept, do me a favor by rating this thread 5 out of 5! Thanks!

MissKalunji 03-25-2006 03:53 AM

Did you get my pm?

CyberRanger 03-25-2006 03:54 AM

Quote:

Originally Posted by MissKalunji
Did you get my pm?

Yes, sorry. If you can pm me more details about what you need, I'll get back with you about the feasibility.

MissKalunji 03-25-2006 03:58 AM

Oki dokie!

projectego 03-25-2006 06:02 AM

Cheers. :)

trackpads 03-27-2006 07:46 AM

Strange, I followed the isntructions to a t but for some reason I dont see the actual box to edit the uploader. I can see the "Assign Uploader" just fine but the next page after I click it only has the nav bar, see the screenshot. Any ideas?

Thanks!

-Jason

CyberRanger 03-27-2006 11:32 AM

Quote:

Originally Posted by trackpads
Strange, I followed the isntructions to a t but for some reason I dont see the actual box to edit the uploader. I can see the "Assign Uploader" just fine but the next page after I click it only has the nav bar, see the screenshot. Any ideas?

Thanks!

-Jason

That is strange. It appears that for some odd reason the template needed didn't install. Try this for me: from you admincp, uninstall the product then import the product again. Make sure you have said yes for "Allow Overwrite".

If you still don't see the screen for assigning a new uploader, please look in your templates under the Downloads templates. Do you have a template named downloadsbuddy_assign_user? (See the attachment)

trackpads 03-27-2006 11:02 PM

Yup, just checked, its there. Any ideas? It has data in it.

CyberRanger 03-28-2006 12:21 PM

Quote:

Originally Posted by trackpads
Yup, just checked, its there. Any ideas? It has data in it.

:confused: :confused:

I'm at a loss! If you would be willing to PM me your site url with an admin login (for vbulletin), I'd be happy to look under the hood. Maybe I'll notice something.

CyberRanger 03-29-2006 01:43 AM

Quote:

Originally Posted by trackpads
Strange, I followed the isntructions to a t but for some reason I dont see the actual box to edit the uploader. I can see the "Assign Uploader" just fine but the next page after I click it only has the nav bar, see the screenshot. Any ideas?

Thanks!

-Jason

Got it! For "Assign Uploader" to work correctly, the usergroup must have permissions in ecDownloads for "Can Edit ALL Files" set to "Yes".

(The link to "Assign Uploader" displays if the usergroup has "Can Edit ALL Files" or "Can Manage Purgatory". I'll clean that up tomorrow ... with perhaps some enhancements!)

CyberRanger 03-29-2006 02:22 PM

  • March 29: Version 1.1 released. If you are upgrading, you can simply import the xml file that is included in the zip. Otherwise, follow the installation instructions above.
    New feature: When downloading a file, the user is forced to select "save as" or "open" file. This will prevent files from automatically opening.

Kirk Y 03-29-2006 08:21 PM

Yay! I <3 you Westpointer! MissKalunji and I were brainstorming over a means to implement the new feature -- but came up blank. Now... if I can just get my ecdownloads to download at all... sigh.

Drakah 03-30-2006 06:44 AM

Now that is a handy mod, thanks for sharing that west :)

CyberRanger 03-30-2006 05:43 PM

Version 2.0 released. If you are upgrading, you can simply import the xml file that is included in the zip AND upload the file bitfield_ecdownloadsbuddy.xml into the includes/xml folder. Otherwise, follow the installation instructions above.

New Features: Settings per usergroup for the maximum amount a user may download per day (in MB) and the total maximum amount the user may upload. Default for each is set to unlimited.

DementedMindz 03-30-2006 06:27 PM

westpointer is there a way to have it when we are adding files it will auto add the uploader? like it was before... i hate having to enter my name in every single time...

trackpads 03-30-2006 06:37 PM

Quote:

Originally Posted by westpointer
Version 2.0 released. If you are upgrading, you can simply import the xml file that is included in the zip AND upload the file bitfield_ecdownloadsbuddy.xml into the includes/xml folder. Otherwise, follow the installation instructions above.

New Features: Settings per usergroup for the maximum amount a user may download per day (in MB) and the total maximum amount the user may upload. Default for each is set to unlimited.

Thanks!! It works now and I really appreciate the help!!!!!!!

CyberRanger 03-30-2006 07:31 PM

Quote:

Originally Posted by DementedMindz
westpointer is there a way to have it when we are adding files it will auto add the uploader? like it was before... i hate having to enter my name in every single time...

Version 2.1 added: author defaults to uploader name if author left blank.

:banana:

sandalwood 03-30-2006 07:47 PM

Quote:

NEW! If the author is left blank when adding a file, the author name defaults to the uploader's name. Added 30-Mar-06.
this is a bad idea, it should default to "unspecified". otherwise you will end up with a lot of files where the uploader just didn't know and left it blank, then it will seem as though they themselves are the author. the general casual user who comes to the site to download will not be able to tell if the uploader sat there and typed in their name, claiming authorship, or if they had simply left the field blank.

maybe have this be an option that can be toggled behavior. like "do nothing", "default to uploader nick", or "default to unspecified" or maybe have an option in the upload form itself for people like DementedMinds the field starts off with "unspecified" but they have a button to the right they can click which autofills their nick in the box.. or maybe even a setting in their profile that sets whether their name should be autoentered for uploads.

CyberRanger 03-30-2006 07:55 PM

Quote:

Originally Posted by sandalwood
this is a bad idea, it should default to "unspecified". ....

maybe have this be an option that can be toggled behavior. like "do nothing", "default to uploader nick"..

Those are good points ... let me see what I can come up with. BTW - the uploader can always go back and change the author to "unspecified".

DementedMindz 03-30-2006 07:58 PM

Quote:

Originally Posted by westpointer
Version 2.1 added: author defaults to uploader name if author left blank.

:banana:


thank god lol you da man

MissKalunji 03-31-2006 02:19 AM

but westpointer all of this was already added to the one you posted since thats the same one im running i dont need to upgrade right?

CyberRanger 03-31-2006 09:46 AM

Quote:

Originally Posted by MissKalunji
but westpointer all of this was already added to the one you posted since thats the same one im running i dont need to upgrade right?

With the custom change I did for you that is correct.

DementedMindz 03-31-2006 09:48 AM

um maybe a feature... would you be able to include something to clear out who downloaded? like if your in admincp and you click on the downloads it shows you everyone who downloaded... im up to page 45 lol and its not lookin to nice it goes all the way across the bottom...

heres a example

[1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][22]

DementedMindz 03-31-2006 09:53 AM

hmm seems likes its also posting there name in there 2 times for the same files even me when i only downloaded the files once to test

MissKalunji 03-31-2006 01:22 PM

Quote:

Originally Posted by westpointer
With the custom change I did for you that is correct.

thankkkk you

DementedMindz 04-18-2006 03:04 PM

would you be interested in adding a Bytes to Mega Bytes Converter/Bandwidth Calculator??? say as a link like manage files and such? i made a script and its 100% html complaint

DementedMindz 04-18-2006 03:47 PM

ill upload the converter so you can take a look i think it would be nice on another link this way its easier for members who upload large files to convert there files size easier... its 100% html complaint too :banana:.... would even be good for members to run from desktop if they want too since its html right now to show you what it does... i run it from my desktop right now but it would be so much easier if it was on the downloads page....

CyberRanger 04-18-2006 07:25 PM

Thanks, I'll take a look at it (looks nice!) and see if I can figure out how to integrate it.;)

DementedMindz 04-18-2006 08:16 PM

thanks :) i figured it would come in handy if members upload larger files and they had to link to this way they can get the file size easy...

EvilHawk 04-20-2006 09:25 AM

Quote:

Originally Posted by DementedMindz
um maybe a feature... would you be able to include something to clear out who downloaded? like if your in admincp and you click on the downloads it shows you everyone who downloaded... im up to page 45 lol and its not lookin to nice it goes all the way across the bottom...

heres a example

[1][2][3][4][5][6][7][8][9][10]

I have fixed this problem, i also send the code to Ron1n but he refused to change it !

Open your downloadadmin.php (at your admincp dir) find this

Code:

// ########################################################
// ###################### Downloads #######################
// ########################################################
if ($_GET['do'] == 'downloads')
{
        if ($_GET['page'] == '')
                $_GET['page'] = 1;
        $start = (25)*($_GET['page']-1);
               
        $result = $db->query_first("SELECT COUNT(`id`) AS downloads FROM " . TABLE_PREFIX . "dl_downloads");

        $results = $result['downloads'];
        if ($results > 25)
                for ($i = 0; $i < $results; $i+=25)
                {
                        if ($i > $start && $i < $start+25)
                                $navigation .= '[<a href="downloadadmin.php?do=downloads&page='.($i/25+1).'"><font color="#FF0000">'.($i/25+1).'</font></a>]';
                        else
                                $navigation .= '[<a href="downloadadmin.php?do=downloads&page='.($i/25+1).'">'.($i/25+1).'</a>]';
                }
       
        print_cp_header('Downloads');
        print_table_start('downloadadmin');
        print_table_header('Downloads', 4);
       
        $class = fetch_row_bgclass();
        echo '<tr><td class="'.$class.'"><b>User</b></td><td class="'.$class.'"><b>File</b></td><td class="'.$class.'"><b>Time</b></td><td class="'.$class.'"><b>Filesize</b></td></tr>';
       
        $result = $db->query("SELECT * FROM " . TABLE_PREFIX . "dl_downloads ORDER BY `id` DESC LIMIT ".$start.",".(25));
        while ($download = $db->fetch_array($result))
        {
                $class = fetch_row_bgclass();
                echo '<tr><td class="'.$class.'"><a href="../member.php?u='.$download['userid'].'">'.$download['user'].'</a></td><td class="'.$class.'"><a href="../downloads.php?do=file&id='.$download['fileid'].'">'.$download['file'].'</a></td><td class="'.$class.'">'.vbdate($vbulletin->options['dateformat'],$download['time'],true).'</td><td class="'.$class.'">'.$download['filesize'].'</td></tr>';
        }       
        $class = fetch_row_bgclass();
        echo '<tr><td class="'.$class.'" colspan="4" align="center">'.$navigation.'</td></tr>';
       
        print_table_footer(4);       
        print_cp_footer();
}

and replace the code with this

Code:

// ########################################################
// ###################### Downloads #######################
// ########################################################
if ($_GET['do'] == 'downloads')
{
                $vbulletin->input->clean_array_gpc('r', array(
                'perpage'    => TYPE_UINT,
                'pagenumber' => TYPE_UINT,
                ));
       
        $vbulletin->GPC['perpage'] = 25;
       
        $result = $db->query_first("SELECT COUNT(`id`) AS downloads FROM " . TABLE_PREFIX . "dl_downloads");
        $logs = $result['downloads'];
        $totalpages = ceil($result['downloads'] / $vbulletin->GPC['perpage']);

        if ($vbulletin->GPC['pagenumber'] < 1)
        {
                $vbulletin->GPC['pagenumber'] = 1;
        }
        $startat = ($vbulletin->GPC['pagenumber'] - 1) * $vbulletin->GPC['perpage'];
       
       
        $result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "dl_downloads ORDER BY `id` DESC LIMIT $startat, " . $vbulletin->GPC['perpage'] . "        ");
        if ($db->num_rows($result))
        {
                if ($vbulletin->GPC['pagenumber'] != 1)
                {
                        $prv = $vbulletin->GPC['pagenumber'] - 1;
                        $firstpage = "<input type=\"button\" class=\"button\" value=\"&laquo; " . $vbphrase['first_page'] . "\" tabindex=\"1\" onclick=\"window.location='downloadadmin.php?do=downloads&page=1'\">";
                        $prevpage = "<input type=\"button\" class=\"button\" value=\"&lt; " . $vbphrase['prev_page'] . "\" tabindex=\"1\" onclick=\"window.location='downloadadmin.php?do=downloads&page=$prv'\">";
                }

                if ($vbulletin->GPC['pagenumber'] != $totalpages)
                {
                        $nxt = $vbulletin->GPC['pagenumber'] + 1;
                        $nextpage = "<input type=\"button\" class=\"button\" value=\"" . $vbphrase['next_page'] . " &gt;\" tabindex=\"1\" onclick=\"window.location='downloadadmin.php?do=downloads&page=$nxt'\">";
                        $lastpage = "<input type=\"button\" class=\"button\" value=\"" . $vbphrase['last_page'] . " &raquo;\" tabindex=\"1\" onclick=\"window.location='downloadadmin.php?do=downloads&page=$totalpages'\">";
                }

  }
  $page = $vbulletin->GPC['pagenumber'];
       
        print_cp_header('Downloads');
        print_table_start('downloadadmin');
        print_table_header("Downloads - Total log entries: $logs - Page: $page of $totalpages", 4);
       
        $class = fetch_row_bgclass();
        echo '<tr><td class="'.$class.'"><b>User</b></td><td class="'.$class.'"><b>File</b></td><td class="'.$class.'"><b>Time</b></td><td class="'.$class.'"><b>Filesize</b></td></tr>';

        while ($download = $db->fetch_array($result))
        {
                $class = fetch_row_bgclass();
                echo '<tr><td class="'.$class.'"><a href="../member.php?u='.$download['userid'].'">'.$download['user'].'</a></td><td class="'.$class.'"><a href="../downloads.php?do=file&id='.$download['fileid'].'">'.$download['file'].'</a></td><td class="'.$class.'">'.vbdate($vbulletin->options['dateformat'],$download['time'],true).'</td><td class="'.$class.'">'.$download['filesize'].'</td></tr>';
        }       
 
  print_table_footer(4, "$firstpage $prevpage &nbsp; $nextpage $lastpage");       
        print_cp_footer();
}

and your downloads log will look like this :

Attachment 46101

CyberRanger 04-20-2006 09:28 AM

Quote:

Originally Posted by EvilHawk
I have fixed this problem, i also send the code to Ron1n but he refused to change it !

Yeah, he's interesting about that. I wish I could fix that with Downloads Buddy but it's outside the scope of what I can get to without another hook.

EvilHawk 04-20-2006 09:34 AM

Westpointer let's face the truth, without you and the support you gave this hack would have been obsolete a long time ago. The author, from the very first vesion for vb 3.0.x, never supported it ..

DementedMindz 04-20-2006 11:34 AM

EvilHawk thanks for that fix lol cause the way it was looked terrible... thanks again

Crazy Serb 04-22-2006 06:47 PM

what's weird is that when I installed this plugin, added that line of code to downloads.php, and went to my usergroup manager to edit one of the usergroups, here is what I keep getting (once I choose "edit usergroup" for any of my usergroups):

"Rebuilt Bitfields Successfully"

and that page keeps on refreshing over and over... and I can't get into the usergroup options whatsoever...

so I was forced to disable this plugin for now.

CyberRanger 04-22-2006 10:33 PM

That's very weird. The "rebuild bitfield" command is the same one that I added to the main ecDownloads product and the command is at the product install level, not at the plugin level. I'll see if I can figure out anything that could make that happen.


All times are GMT. The time now is 05:49 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.01288 seconds
  • Memory Usage 1,852KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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