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)

RagingGamers 04-23-2007 09:19 PM

Quote:

Originally Posted by CyberRanger (Post 1233991)
I think you are saying we need to set the content-type when the file is psp. Darn if I can figure out what to set it to! Any ideas?

Are you saying a file with an extension of psp? I am referring to using the web browser via the PSP (Playstation Portable) to download the file. I think the mime type just needs to be set correctly via cpanel, apache, or the script itself although I do not know how to do that correctly.

Black Tiger 04-23-2007 10:38 PM

Quote:

Try: Extra -> Internet-opties -> Geavanceerd -> Foutopsporing in scripts uitschakelen (Intenet Explorer)
That option should be enabled (aangevinkt staan dus, lol) :D
Well... just checked, this setting is already enabled (aangevinkt) and the one under the "overige toepassingen" too.

RS_Jelle 04-24-2007 04:51 AM

Quote:

Originally Posted by Black Tiger (Post 1234334)
Well... just checked, this setting is already enabled (aangevinkt) and the one under the "overige toepassingen" too.

Hmm, strange, I can't reproduce that bug in IE 6. Are you using IE 6 or the new version 7?

Also: which versions of Java Runtime Environment are you running? Check your software install/destall panel in Windows and list all the versions/updates.

I can't find a variable length somewhere on line 284. So there's no special DownloadsII JavaScript using 'length' somewhere :confused:

Black Tiger 04-24-2007 06:50 PM

I'm using really IE6, I don't like the 7.
Let's check the Java Runtime Environment... J2SE Runtime Environment 5.0 update with several updates, update 11 is the last one in there.

Maybe the problem is coming from vBA? I did not updated that to the latest version.
I do have the vBA Downloads II addon installed. You fixed something in the headinclude templates some time ago for me, that's still in there, working fine.

Also I tested with Firefox and with Firefox, no problems occur.
Strange...

snoop1979 04-24-2007 11:38 PM

im getting this error
The upload failed! Upload error
help please
i can link to a file but not upload a file (zip rar etc) file zise aprox 4mb i've try with smallers and same thing
and how to add mp3?

RS_Jelle 04-25-2007 04:43 AM

Quote:

Originally Posted by Black Tiger (Post 1234873)
I'm using really IE6, I don't like the 7.
Let's check the Java Runtime Environment... J2SE Runtime Environment 5.0 update with several updates, update 11 is the last one in there.

Maybe the problem is coming from vBA? I did not updated that to the latest version.
I do have the vBA Downloads II addon installed. You fixed something in the headinclude templates some time ago for me, that's still in there, working fine.

Also I tested with Firefox and with Firefox, no problems occur.
Strange...

Strange indeed :D
I suggest you to first update vBadvanced CMPS. That's really, really easy and my fix normally should stay the same (the integration feature stays the same to use). Then we are sure that's not the problem etc.

Java v5 is an old version. Some time ago v6 was released, but v5 still keeps getting updates. But ofcourse it's better to move to the newest release. The bad thing about Java is also that it keeps adding updates (what you can see in your software panel :p). So the best thing is removing all Java things first and then install the newest version.
The best way to update Java: http://www.minatica.be/showpost.php?...66&postcount=4 (dutch)

Quote:

Originally Posted by snoop1979 (Post 1235009)
im getting this error
The upload failed! Upload error
help please
i can link to a file but not upload a file (zip rar etc) file zise aprox 4mb i've try with smallers and same thing
and how to add mp3?

Have you chmodded the downloads folder to 777? For uploading mp3's you need to add mp3 to the Allowed File Extensions list in the DownloadsII options.

If it's a big file upload problem, you probably need to change your php.ini to allow it. You can also do this using a .htaccess (hava a look at this topic, it's mentioned a lot of times already).

Also: is your server running PHP in safe mode (you can see this in the AdminCP)? Then you need to create yourself an ec_temp folder inside the downloads folder and chmod it also to 777.

Kr0nica 04-25-2007 01:13 PM

Hi,

First of all i want to thanks to author, this hack is great :) and i have a little question. Is this possible to show all uploaded files from all categories on main page of download section? I'll be grateful for any help :D

Greets

RS_Jelle 04-25-2007 02:17 PM

Quote:

Originally Posted by Kr0nica (Post 1235247)
Hi,

First of all i want to thanks to author, this hack is great :) and i have a little question. Is this possible to show all uploaded files from all categories on main page of download section? I'll be grateful for any help :D

Greets

Why would you like to do that? I don't understand what you are trying to reach with that?
That's just adding one query to the php and some minor changes, but I find it a bit strange :p
Normally you have hundreds of files, so you really need categories and putting everything on one page would be a mess because of that.

Kr0nica 04-25-2007 02:44 PM

I didn't mean that i don't want put files in categories ;) I want have all files from all categories listed on main page and all categories listed in navigation panel. Why i want to do this? Cause i know my users :p They're to lazy to check all categories, to much clicking :p

RS_Jelle 04-26-2007 05:43 AM

Quote:

Originally Posted by Kr0nica (Post 1235277)
I didn't mean that i don't want put files in categories ;) I want have all files from all categories listed on main page and all categories listed in navigation panel. Why i want to do this? Cause i know my users :p They're to lazy to check all categories, to much clicking :p

That's not possible at this moment and I don't think it's going to become a new feature. Ofcourse you can create it yourself very easy.

You have to edit downloads.php and add this to the end (inside the latest conditional, the else one, before the evals in it):
PHP Code:

$result $db->query_read("SELECT * FROM " TABLE_PREFIX "dl2_files WHERE ".$filesexclude);
while (
$file $db->fetch_array($result))
{
    
$alldownloads .= '<tr><td><a href="downloads.php?do=file&amp;id='.$file['id'].'"></a></td><td></td>'.$file['downloads'].'</tr>";


Now you can add in the downloads_main template {$alldownloads} where you want (indeed, with { and }). So it will look something like this to add in the template:
HTML Code:

<table class="tborder" cellpadding="4" cellspacing="0" border="1">
<tr><td>File</td><td>Downloads</td></tr>
{$alldownloads}
</table>

It should work, but I didn't test it, so there might be an error in it.


All times are GMT. The time now is 06: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.04456 seconds
  • Memory Usage 1,759KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (7)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