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)

CyberRanger 09-12-2006 05:03 PM

Quote:

Originally Posted by Goodspeed
BTW is it possible to use subdirectories inside download folder accordingly to downloads categories?

Sorry, that feature is not available.

hippsta 09-13-2006 05:02 AM

Hiya I've read through all 28 pages of this thread and am very impressed by WP and Jelle, so i have no doubt that you can handle this one.
(Your sheer dedication should get you guys MotM, btw and i voted for it)

Everything works great so far as i can tell, however.. on my site not all files are to be downloadable, but i would like all to be viewable so to speak, without downloading...

Like A Play/View Button? To listen to a song, or view an image. Preferably in the download_file template

I got in there lol and was trying things to create a link to it but i couldn't figure it out so that it was universal... {$file['url']} didn't get exactly there...

Please Help Me Out. You guys are the best

RS_Jelle 09-13-2006 07:01 AM

Quote:

Originally Posted by Devil Woman
exclude it? how would I do that?

AdminCP -> Usergroups -> Usergroup Manager -> Edit the usergroup -> DownloadsII -> Exclude Categories

@hippsta: DownloadsII is meant for downloading things so we force those download windows :)
Maybe we can create an add-on for this, just like the thread creation, but at the moment this isn't possible.

hippsta 09-13-2006 08:56 AM

Quote:

@hippsta: DownloadsII is meant for downloading things so we force those download windows
Maybe we can create an add-on for this, just like the thread creation, but at the moment this isn't possible.
what do you mean by you "force" them?
hmm. so there's no command i can stick in to make $file['id'] execute? or maybe is there a conditional i can insert to disable the "save" button, or grey it out on the dl popup; based on permissons?

Sorry for the weird request its just that i like this mod much better than the Links & Downloads Manager, and i'd hate to have to settle, lol

CyberRanger 09-13-2006 11:10 AM

Quote:

Originally Posted by hippsta
so there's no command i can stick in to make $file['id'] execute? or maybe is there a conditional i can insert to disable the "save" button, or grey it out on the dl popup; based on permissons?

As of now, not based on permissions. But you can disable the "save" button based on the type of file to be downloaded via admincp -> Downloads -> Settings -> Open Directly in Browser. I created that option because one of the sites I run wanted PDF's to automatically open in the browser. So for that site, I have "pdf" in the "Open Directly in Browser" field.

DementedMindz 09-14-2006 12:13 AM

RS_Jelle are you going to add that feature like you have on your site? the download of the week?

snyperj 09-14-2006 02:10 AM

OK- yes I am an idiot. Pinned and Unpinned? Is that like sticky?

CyberRanger 09-14-2006 03:09 AM

Quote:

Originally Posted by snyperj
OK- yes I am an idiot. Pinned and Unpinned? Is that like sticky?

Correct!

Ziki 09-14-2006 04:01 AM

CAn you add a feature that selected usergroups get an pm when a file is submitted to approve it and when the files is approved the uploader gets an pm?

RS_Jelle 09-14-2006 04:48 AM

Quote:

Originally Posted by DementedMindz
RS_Jelle are you going to add that feature like you have on your site? the download of the week?

That's just the comments field of DownloadsII, but I placed it there instead of its normal position at the bottom of the left column :)

DementedMindz 09-14-2006 07:26 AM

ahhh that looks nice up there. thanks

anarx 09-14-2006 08:45 PM

It looks very, very nice!
Will it work for VB 3.6.1 ? :)

Black Tiger 09-14-2006 08:54 PM

Yes it does. I've got it running without problems on 3.6.0 and also 3.6.1 at the moment.

trackpads 09-14-2006 11:36 PM

Question,

I have taken the precaution of moving the file path to below my root and everything works fine except when someone uploads images to accompany downloads. They are broken because it is trying to refer to the above the root directory.

is there a way to specify a path for downloads and a path for the seperate images to prevent this?

Thanks!

-Jason

Black Tiger 09-14-2006 11:52 PM

Probably you have done it like this:
/home/domain/public_html/downloads
and your forums are in /home/domain/public_html/yourforums
or something like that.
But as i understood a few topics ago from the coder, it should be relative to your forums path.
In this example, your relative path should be:
../downloads/
and then images should work.
I hope I understood the explanation of the coder correctly.
It's explained in msg #399.

trackpads 09-15-2006 12:21 AM

Thanks but not in my case. I appreciate the help though. My forums are here:

http://www.trackpads.com/forum

And my setting is this:

../../downloads/

This places it here in my webserver path:

/home/myaccount/downloads where my forum is
/home/myaccount/public_html/forum

The reason I did this was that I kept finding some jackass who was somehow getting shell scripts into that folder because it was chmod 777. The only way to prevent it was either move it or change the chmod which I cant do.

The other problem is that since I have more than 1998 files (over 12K now) the ftp will not display them, just the first 1998. So it is hard to manage the directory.

Thanks again,

-Jason

RS_Jelle 09-15-2006 04:52 AM

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.

Hornstar 09-15-2006 04:54 AM

Quote:

Originally Posted by hippsta
Hiya I've read through all 28 pages of this thread and am very impressed by WP and Jelle, so i have no doubt that you can handle this one.
(Your sheer dedication should get you guys MotM, btw and i voted for it)

Everything works great so far as i can tell, however.. on my site not all files are to be downloadable, but i would like all to be viewable so to speak, without downloading...

Like A Play/View Button? To listen to a song, or view an image. Preferably in the download_file template

I got in there lol and was trying things to create a link to it but i couldn't figure it out so that it was universal... {$file['url']} didn't get exactly there...

Please Help Me Out. You guys are the best


I may post some example url's later so you guys can take a look at other systems out their, but i think you guys have been requested this already.


Just like in the above quote. I too would really like this.

So not only would users be able to download it, but if it is a supported file type, they could either open it, or play it like youtube/google video etc.

Also a way to embed google video/you tube video etc. so users can post youtube video onto the site, and it plays on the site, and they can comment on it on the site, but it doesnt waste the bandwidth of the site.

Also was there mention of a paid/lite version and are you guys developing this on a site that I can check out the progress etc.

Thanks.

RS_Jelle 09-15-2006 05:16 AM

Quote:

Originally Posted by hornstar1337
Just like in the above quote. I too would really like this.

So not only would users be able to download it, but if it is a supported file type, they could either open it, or play it like youtube/google video etc.

Also a way to embed google video/you tube video etc. so users can post youtube video onto the site, and it plays on the site, and they can comment on it on the site, but it doesnt waste the bandwidth of the site.

AdminCP -> Downloads -> Settings -> Open Directly in Browser
Add the file extension on that list to open it in the browser directly. There is no real embedded option at this moment.
Quote:

Originally Posted by hornstar1337
Also was there mention of a paid/lite version and are you guys developing this on a site that I can check out the progress etc.

I don't know where you read that. We aren't creating such a thing and there are no plans for it :)
The next thing we are working on is version 6, a big release with many new features :cool:

TheBlackPoet 09-15-2006 11:16 AM

My Last Hack To Install.... Im Down To The Wire.... I Have To Go To Work... And I Made The Decision To Install One Last Hack..... For The Next 6months?
I Found What I Was Looking For And Furiously Followed Your Instructions....

Eureka!!!

Thank You And Have A Great Day!!!

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

Robbed 09-17-2006 02:19 AM

I finally upgraded, thanks.

Rs jelle and westpointer.

1)For the upload and download stats can you make a page that shows this so I don't have to check profiles and i like to keep the profiles clean so i turn it off.

2)The table background is black anyway to fix?

3) I still had the problem for uknown author on the old downloads so i used this code.

Quote:

if ($file['_author'] == '')
$_author = $file['author'];
else
$_author = $file['_author'];
4) Can you have it so categories are seperate in the downloads folder?
Right now i have 5000 files in one folder.

http://www.doubleminor.net/forums/downloads.php

DementedMindz 09-17-2006 02:22 AM

Quote:

Originally Posted by Robbed
2)The table background is black anyway to fix?

I have the same problem with the main table being black to I havent really messed with the code to see why I hope they can fix that.

HappyPike 09-17-2006 03:26 AM

Quote:

Originally Posted by Robbed
4) Can you have it so categories are seperate in the downloads folder?
Right now i have 5000 files in one folder.

http://www.doubleminor.net/forums/downloads.php

Very good suggestion! I have tons of files in that folder too. It would be great if the files are placed in each user's own folder, like downloads/UserID/. The vBa Gallery and the Upload Center addon have that. FTP programs have trouble displaying the file listings when there are too many files in one folder.

Another feature that's really needed is that when people edit a file to upload a new version, the old version should be deleted. Right now the old versions just wasting server space.

Devil Woman 09-17-2006 09:30 PM

Sorry if this has already been asked in this thread, I was wondering is there a possibilty that any files uploaded to be downloaded are put into a queue to be moderated first to avoid any duplicate files being uploaded

Thanks

Robbed 09-17-2006 09:44 PM

Quote:

Originally Posted by Devil Woman
Sorry if this has already been asked in this thread, I was wondering is there a possibilty that any files uploaded to be downloaded are put into a queue to be moderated first to avoid any duplicate files being uploaded

Thanks

Already there.

Can Avoid Purgatory to NO, it's a usergroup setting.

networktemple 09-18-2006 05:47 AM

i want to upload large "50MB" file via downloadII.. what do i need to do unrestrict upload size..
Where do i change the value etc.. please help.. thanks

DementedMindz 09-18-2006 09:20 AM

For that big of a file you should use a ftp program or your going to make your server lag out.

snyperj 09-18-2006 08:31 PM

I am struggling trying to set up permissions using the category and usergroup manager. Could you help? I'm sorry:squareeyed:

Here is an idea of what I am trying to accomplish
Say I have 4 user groups, A B C D
I have 4 Download Categories A B C D (for simplicity)

All users are members of Group A (primary) and should always have access to view category A downloads.

All users are then members of at least one other usergroup so they should ALSO have access to that Download category (B, C or D).

Some users may be users of more than one usergroup (i.e. B & D). In this example case, they should have access to categories A, B & D only (but not C).

Can this be done? I cannot get to seem to make it work. It seems like everything stays based on the UserGroup A setting.

Black Tiger 09-18-2006 08:42 PM

It can be done but then you have to create 4 usergroups.
In all usergroups you should then set Exclude Categories to YES.
Then in usergroup A place in the line below the Exclude Categories setting the following:
B, C, D
You could also do C,D and then A users would have access to A and B etc.

For usergroup B do the same, but then put there A,C,D.
If you have users which may reside in more usergruops, set those usergroups as secondairy usergroup in their useraccount.

Black Tiger 09-18-2006 08:47 PM

I have a question to. Is it not possible to make some settings in the existing usergroups one way or the other.
I have some users now which I would like to upload and which may avoid purgatory, but I have also users which I want to upload but which may not avoid purgatory.

At this moment to get this working 2 usergroups are needed for this, with all the settings needed for all forums and forumpermissions which is a lot of work.

Could it be made (maybe next version?) so you can set in each individual useraccount that they may upload yes or no? And if yes, that they will come into a queu and with a seperate usergroup they can avoid purgatory?

Or maybe could it be made that both the upload and avoid purgatory setting could be implanted in the individual user settings? This would make things a lot easyer. In fact you would only have to use seperate usergroups when wanting something like Snyperj would like.


All times are GMT. The time now is 08:37 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.04003 seconds
  • Memory Usage 1,865KB
  • 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
  • (9)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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