The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
ecDownloads Buddy Details »» | |||||||||||||||||||||||||
If you are using ecDownloads Buddy, you should UNINSTALL it and install ecDownloadsII ver 5.0.1.
Show Your Support
|
Comments |
#32
|
|||
|
|||
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
|
#33
|
|||
|
|||
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....
|
#34
|
||||
|
||||
Thanks, I'll take a look at it (looks nice!) and see if I can figure out how to integrate it.
|
#35
|
|||
|
|||
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...
|
#36
|
|||
|
|||
Quote:
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(); } 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=\"« " . $vbphrase['first_page'] . "\" tabindex=\"1\" onclick=\"window.location='downloadadmin.php?do=downloads&page=1'\">"; $prevpage = "<input type=\"button\" class=\"button\" value=\"< " . $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'] . " >\" tabindex=\"1\" onclick=\"window.location='downloadadmin.php?do=downloads&page=$nxt'\">"; $lastpage = "<input type=\"button\" class=\"button\" value=\"" . $vbphrase['last_page'] . " »\" 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 $nextpage $lastpage"); print_cp_footer(); } Attachment 46101 |
#37
|
||||
|
||||
Quote:
|
#38
|
|||
|
|||
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 ..
|
#39
|
|||
|
|||
EvilHawk thanks for that fix lol cause the way it was looked terrible... thanks again
|
#40
|
|||
|
|||
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. |
#41
|
||||
|
||||
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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|