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)

trackpads 09-15-2006 10:37 PM

Quote:

Originally Posted by RS_Jelle
The images are using the same path, so it's a known problem (that's why we don't recommend it at this moment) :)
You can fix it by modifying downloads.php. Find $dl->url in it and replace them (but not all) with the correct site url to the images.

You don't need to change for example:
PHP Code:

if (!is_dir($dl->url)) 

Only the images (img html tag), for example:
PHP Code:

<img src="'.$dl->url.$thumb_x['thumb'].'" 

Change this example to (or something like that):
PHP Code:

<img src="/downloads/'.$thumb_x['thumb'].'" 

Your second problem is also a known one, we need to built in an option that creates directories to seperate the files so you don't get such large directories.

Jelle, thank you so much for the help. I changed the two instances of this in the downloads.php but for some reason it didnt work. When I still upload images for a download they are still transported to the downloads directory, not to the one above the root.

Thanks again for the help and this great script!

-Jason

trackpads 09-16-2006 02:01 AM

Quote:

Originally Posted by RS_Jelle
The images are using the same path, so it's a known problem (that's why we don't recommend it at this moment) :)
You can fix it by modifying downloads.php. Find $dl->url in it and replace them (but not all) with the correct site url to the images.

You don't need to change for example:
PHP Code:

if (!is_dir($dl->url)) 

Only the images (img html tag), for example:
PHP Code:

<img src="'.$dl->url.$thumb_x['thumb'].'" 

Change this example to (or something like that):
PHP Code:

<img src="/downloads/'.$thumb_x['thumb'].'" 

Your second problem is also a known one, we need to built in an option that creates directories to seperate the files so you don't get such large directories.

Jelle et al,

Also, any plans for large uploads via ftp or something similar?

Thanks again!

-Jason

DementedMindz 09-16-2006 02:31 AM

Why dont you use a regular ftp? And link the files? Personally I would see no need for a ftp built in to it as it would just be so much more code thats unneeded. Only thing I would like to see changed is when you ftp a file then link to it if you want it to keep track of bandwidth you need to enter in the BYTES might be nice to enter in MB instead or have a option cause it sucks everytime using a conversion calculator.

trackpads 09-16-2006 02:47 AM

Not for me but just for regular users. I of course ftp but joe-user taht has a large file doesnt.

-Jason

DementedMindz 09-16-2006 02:48 AM

I would never let users ftp to my server ever. There is to many things you risk doing that. You can never trust anyone.

RS_Jelle 09-16-2006 07:37 AM

Quote:

Originally Posted by trackpads
Jelle, thank you so much for the help. I changed the two instances of this in the downloads.php but for some reason it didnt work. When I still upload images for a download they are still transported to the downloads directory, not to the one above the root.

Thanks again for the help and this great script!

-Jason

Both files and images are stored in the same directory. So if it's beneath the root, images won't work (limitation). In the future we might use seperate directories for them.

Snake 09-16-2006 11:27 AM

Will this work on v3.6.1 just fine? Can anyone confirm this please?

RS_Jelle 09-16-2006 11:47 AM

Quote:

Originally Posted by Snake
Will this work on v3.6.1 just fine? Can anyone confirm this please?

Yes, it works fine with vBulletin 3.6.1 ;)

Black Tiger 09-16-2006 02:21 PM

I've got a little layout problem at this moment. I just decided to have Downloads completely integrate in vBA, so also my right column which I did not use at first.

Now I see 2 little layout problems.
At first, the top of the downloads part, does not line (ligt niet op gelijke hoogte) with my right column. The right column is just a little bit higher.

The second is more a question. I would like to adjust the distance between the "latest files" column and the main download column, so the distance looks te same as between the main downloads column and my right sidebare column. How is this done?

sokol 09-16-2006 09:12 PM

Great mod here! Thank you very much for the hard work. Is there a way to have it upload an image to accompany the file at the same time the user uploads the file? Like Secure Downloads used to?

Thanks,
Sokol


All times are GMT. The time now is 02:25 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.03863 seconds
  • Memory Usage 1,754KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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