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?!?

Flep 05-05-2008 07:05 PM

Hello,
I moved vbulletin to another server.
All the downloads stats are working fine but inside of categories there are no more files descriptions, names and link to download.

Any idea ?

Flep 05-05-2008 07:36 PM

Can't view comments too :((

Flep 05-05-2008 09:30 PM

I notice that if I go in manage files and click a file, I can see it with all its comments.
But if I reach the downloads via registered user, I can see the categories but when I click a category it displays empty.

2 days working on vbulletin to move it on another server and this is my last problem to fix.
Help please

Joshva 05-05-2008 11:52 PM

Can i suggest that a plugin be released that allows a users downloads to show up in a tab in the profile page for a user on 3.7 .

That would be awesome!

TTG 05-06-2008 11:36 AM

After recent upgrade of hack and forum running 3.7.0 gold :-

Quote:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

blind-eddie 05-06-2008 03:01 PM

I have a 4 vb license, I have this mod add to each site. One site http://outerzone.us I have an issue with this mod. All settings are the same per DL II on each site for Admin Usergroup.
The problem I am having is that when any Admin tries to download any item, they receive the following Message:
Quote:

Sorry, you have exceeded your daily allowed limit.
But, I am not getting this message on my other vb sites.


Link to Permissions Image for Admin Usergroup

Edit:
Code:

Use strict daily download limits. If set to "No", a user will only receive receive a download limit reached message if BOTH the MB and file per day limit are reached. If set to "Yes", exceeding either limit will trigger the download limit reached message.
Was also set to no & no luck.

Any help would be appreciated.

Black Tiger 05-06-2008 03:34 PM

Quote:

Originally Posted by maidos
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

It's the same thing. For now, download/upload directory which is above your documentroot is not supported yet.
Meaning you can't put it above your document root, see msg #2185 and the reply in #2186.

However you could try to put it on your other harddisk, then make a directory (f.e. downloads) in your document root on the first HD and then symlink this directory to your other directory on the other harddisk. I'm not sure, but if filerights are oke, there is a big chance this will work.
Otherwise you can't upload to that directory on hd2, but you can link to the files in there when adding files via the "link to file" option.

Quote:

Originally Posted by carlos2000
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.

Put your forums offline, then re-upload all files and set overwrite to yes hardcoded in your ftp program if possible (with flashfxp you can).
Reimport the product file an set overwrite to yes and put your forums online again.
Often this methode helps fixing these kind of problems.

@TTG: You could have a try to do the same and see if things get fixed.

berry05 05-06-2008 08:19 PM

Quote:

Originally Posted by bpat1434 (Post 1506389)
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.

how do i edit the settings? just edit the PHP file?

Black Tiger 05-06-2008 08:42 PM

Yep, you can edit the php.ini file and change the "upload_max_filesize =" setting to a higher value if you have access to the php.ini.

berry05 05-06-2008 08:47 PM

ughh where do i find php.ini?
do you know the directory?

urdu 05-06-2008 10:47 PM

Quote:

It also works with vBulletin 3.7 (except for the optional profile template changes).
it's working with vBulletin 3.7 but load on the forum ...
please update this mode to 3.7.x

maf1973 05-07-2008 09:44 AM

update to 3.7 gold would be nice

Arjan 05-07-2008 02:58 PM

vB 3.7.0:
I tried to add $dmemberfiles and $dmemberinfo in the memberinfo_block_statistics template but it does not show up there.
Anyone got a clue what I do wrong?

berry05 05-07-2008 09:44 PM

ughh where do i find php.ini?
do you know the directory?

Black Tiger 05-07-2008 09:53 PM

I wouldn't know where it is for a windows server you could use the search function.
For linux there exists a "locate" command.:)
Normally it should be in the /etc directory if you're working with linux.

berry05 05-07-2008 11:08 PM

well i searched and couldnt find it...could i make one?

Black Tiger 05-07-2008 11:20 PM

You are running on Linux? Which Linux distro do you use?
Try this command from root:
locate php.ini
or
whereis php.ini

I would not advise to make one, because it has lots of entry's. A php.ini is -always- installed when installing php.
If it's not your own server, ask your webhost.

Flep 05-08-2008 10:59 AM

I'm getting this error when I add a new file:

Your submission could not be processed because a security token was missing or mismatched.

Any idea please ?

Black Tiger 05-08-2008 11:16 AM

@Flep: did you try this already?
Quote:

Put your forums offline, then re-upload all files and set overwrite to yes hardcoded (user the force-overwrite) in your ftp program if possible (with flashfxp you can).
Reimport the product file an set overwrite to yes and put your forums online again.
Often this methode helps fixing these kind of problems.

Flep 05-08-2008 11:29 AM

Thank you !
It worked perfectly :)

Drakah 05-08-2008 11:55 AM

If someone can figure out how to change the thumbnail system to utilize the "graphical" way vbulletin 3.7 does, would be appreciated. I tried to alter the code and could not figure it out :( Thanks!

maidos 05-08-2008 12:17 PM

any news about the rss feed?

Flep 05-08-2008 07:11 PM

I am getting crazy...
now I get this error:

ERROR: File not found.

Database is ok and files too.
I re-imported the XML too.

Flep 05-08-2008 07:59 PM

Finally !
I got it.

I deleted via FTP all the files.
I re-uploaded all and now all seem to be ok.

MiahBeSmokin420 05-09-2008 03:28 AM

Hello people this is a realy good request but has probally already been asked

I followed this tutorial:
https://vborg.vbsupport.ru/showthread.php?t=165554

to make a new tab block on my profile and it worked great

but the thing i want to do now is this:

$dmemberfiles

i want that in the block and have it show the members files

i tried adding that in there a few diffrent ways with no luck

any help to get it in there and have it show the members files would be great

thanks in advance

PS - vB 3.7.0 Member Profile Page

Thats where im talking about if yall dont know

MiahBeSmokin420 05-09-2008 05:25 AM

i want the member files to be in a tab on vb 3.7.0

basically i need to know what goes here

look at the code and you will see what im talking about

HTML Code:


$blocklist = array_merge($blocklist, array(
    'mymodification' => array(
        'class' => 'Downloads',
        'title' => 'My Files',
        'hook_location' => 'profile_left_last'
    )
));

class vB_ProfileBlock_Downloads extends vB_ProfileBlock
{
    var $template_name = 'memberinfo_block_Downloads';

    function confirm_empty_wrap()
    {
        return false;
    }

    function confirm_display()
    {
        return ($this->block_data['Downloads'] != '');
    }

    function prepare_output($id = '', $options = array())
    {
        $this->block_data['Downloads'] = '

WHAT GOES HERE???

'; 
    }


MiahBeSmokin420 05-10-2008 01:35 AM

*** B U M P ***

Joshva 05-10-2008 03:07 AM

I think everyone is looking for the ability to do that :)

MiahBeSmokin420 05-12-2008 05:37 AM

ya well i mean i got the download stats to show up in the profiles i just can get the files to show up

like i got the upload and download stats there just cant get the file list there

Arjan 05-12-2008 01:43 PM

Since I have upgraded to version 5.0.8 from a version a few versions back, the upload function is broken.

I do fill Filename, Description, Category and then browse to the file on my harddisk.
But after upload it returns that the fields marked in red should be filled.
But not one field is marked.


All times are GMT. The time now is 04:36 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.04884 seconds
  • Memory Usage 1,854KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (8)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