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)

Black Tiger 05-03-2008 01:25 AM

Does it really time-out or does it just looks like it does?
This kind of behaviour can happen if you don't have the rights to upload more then xx mb.
Check you php_upload_size setting or ask your host. Probably it's lower then 10mb (a value of 2mb is standard in php).

berry05 05-03-2008 01:33 AM

yess it really times out!

i will take your advice and see what i can do...but if was the php_upload_size wouldnt it say something?

how much can you upload?

bpat1434 05-03-2008 02:50 AM

You can upload as much as you want. PHP ships with a very restrictive 2M upload limit though. Unless you edit this setting and raise to to be something like 32M, there will be a PHP error. If display_errors is off, you won't see anything :(

Just be careful when you upload large files. If your internet connection goes in waves of speed (i.e. high speed for a few seconds, then trickles to a crawl, then back to a high speed, then trickle, etc.), you might have a hard time uploading large files.

maidos 05-03-2008 10:26 AM

i didnt say i would put it on another server. i installed a hard disk on the same server as downloadsII is located, i just said its on different directory
i want the import feature since it got hotlink prevention

batman1983 05-04-2008 08:59 AM

Hey folks,

thanks for the mod. I'd like to write a little snipplet for the latest 10 Downloads. But I'd like to use the long URL. How can i get the parameters for it?

My code for the short URL:

PHP Code:

<?php

$max 
10;

mysql_connect("localhost","USER","PASSWORD");
mysql_select_db("DB_TABLE");

$res mysql_query("SELECT * FROM vb3_dl_files ORDER BY id DESC LIMIT " $max);

while(
$row mysql_fetch_array$res )){
    
$zahl $row["size"]/1024/1024;
    
$groesse number_format($zahl,2);
    echo 
"<a href=\"http://www.allround-pc.com/forum/downloads.php?do=file&id=" $row["id"]."\">";
    echo 
$row["name"] . "</a>, " $groesse " MB";
    echo 
"<br />";
}

mysql_close();

?>

The URL should look like this:
Code:

http://www.allround-pc.com/forum/downloads.php?do=file&title=name&cid=number&ctitle=catname&id=number
Greetings from Germany,
Batman1983

batman1983 05-04-2008 07:46 PM

I finished work:

PHP Code:

<ul>

<?php

$max 
10;

mysql_connect("localhost","USER","PASSWORD");
mysql_select_db("DB_TABLE");

$res mysql_query("SELECT * FROM vb3_dl_files ORDER BY id DESC LIMIT " $max);

while(
$row mysql_fetch_array$res )){
    
$zahl $row["size"]/1024/1024;
    
$groesse number_format($zahl,2);
    
$id $row["id"];
    
$cid $row["category"];
    
$sql mysql_query("SELECT * 
FROM  vb3_dl_cats WHERE id = "
.$cid);
while(
$row_sql mysql_fetch_array($sql)){
//print_r($row_sql);
    
$ctitle preg_replace"/\-$/"""strtolower(preg_replace(array("/[^a-zA-Z0-9]/""/\-\-/"), "-"$row_sql["name"])) );
    
    }

    
$title preg_replace"/\-$/"""strtolower(preg_replace(array("/[^a-zA-Z0-9]/""/\-\-/"), "-"$row["name"])) );
    
//echo $row["description"];
    
$description preg_replace("/\[url=\"http:\/\/(.*?)\"](.*?)\[\/url\]/si","",$row["description"]);
    
    echo 
"<li><a href=\"http://www.allround-pc.com/forum/downloads/" .$ctitle"-" $cid "/" $title "-" $id."/\" title=\"".$description."\">";
    
    echo 
$row["name"] . "</a>, " $groesse " MB" .$descripton;
    echo 
"</li>";
}

mysql_close();

?>
</ul>

Perhaps someone wants to generate a RSS Feed from this.
Have fun.

Drakah 05-04-2008 10:13 PM

Question... the new version of VBulletin has a new way of viewing thumbnail attachments. Is there any way to implement this functionality with DownloadsII to be consistant?

j-n 05-04-2008 10:18 PM

hank you

King Kovifor 05-04-2008 11:50 PM

Quote:

Originally Posted by Drakah (Post 1508662)
Question... the new version of VBulletin has a new way of viewing thumbnail attachments. Is there any way to implement this functionality with DownloadsII to be consistant?

Fairly certain it doesn't.

carlos2000 05-05-2008 06:58 PM

Hi,

we updated the download plugin from 5.0.4 to 5.0.8.
In the ACP Add-on manager the version shown is 5.0.8. If I take a look into the downloads section the footer shows version 5.0.4.

During the update process there were no errors and everything looked fine.

Do you have any ideas? Was the update successful?

EDIT: The download plug-in works pretty good on vBulletin 3.7. Only question is about the version number?!?


All times are GMT. The time now is 09: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.03290 seconds
  • Memory Usage 1,763KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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