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)

Dr.Vince 06-05-2007 08:19 AM

hello,

first, great job !!

I have a question, we can allow member to access or not the downloads section (error message display if not the rights)
but I want to show/hide a link to download section in the navbar depending on the rights giving in the option of this hack

how can I do this ??

Thanks

RS_Jelle 06-06-2007 04:34 AM

You can wrap this conditional code around the link in the templates:

HTML Code:

<if condition="$permissions[ecdownloadpermissions] & $vbulletin->bf_ugp[ecdownloadpermissions][canviewfiles]">
Insert link code here
</if>


Dr.Vince 06-06-2007 07:10 AM

ok thanks, I will test

aj8690 06-06-2007 10:40 PM

Very nice.

Just one problem, which I hope can be fixed.

When the downloads directory is outside of the public html directory, like mine (for added security), and a member uploads an image to associate to a file, it doesn't do it right. When you try to go to the image, it will make the url like this: www.domain.com/home/user/downloads, which won't work because it's not within the public html directory. Is there a way to fix this without putting the downloads folder inside the public html directory?

Thanks.

logofreax 06-07-2007 06:16 AM

Hi, I?ve got 2 little questions...

1.) How can I change Ratingsystem from A+ to Stars or metric? I found already this but it doesn?t work:

https://vborg.vbsupport.ru/showthrea...ng#post1040856

2.) What happen, if I reinstall this Hack completly? Remove than install from new? I hope you know what i mean ;)

Will be all Files lost oder Categories? I ask before, cause we got nearly 1200 Uploads in it.

Thanx for reply.

cu
logofreax

Mrdby 06-07-2007 03:59 PM

CAN make this for subscribed users? I will be charging for download.

CyberRanger 06-07-2007 05:59 PM

Quote:

Originally Posted by logofreax (Post 1262984)
2.) What happen, if I reinstall this Hack completly? Remove than install from new? I hope you know what i mean ;)

Will be all Files lost oder Categories? I ask before, cause we got nearly 1200 Uploads in it.

If you un-install the mod, it WILL delete (as it should) the database tables that contain your upload information. If you simply re-upload the php files and re-import the product file, that will give you a clean version of all files and templates.

CyberRanger 06-07-2007 06:00 PM

Quote:

Originally Posted by Mrdby (Post 1263348)
CAN make this for subscribed users? I will be charging for download.

Yes, you can control who can view/download/upload files via usergroup settings.

Mrdby 06-07-2007 11:41 PM

great!!!

Mrdby 06-08-2007 12:51 AM

this should have a menu options just in case u want to change the order of the catergories..cause i notice i made 4 already and want the last one i created to show at the top instead the bottom..and i have to delete the others and start over.

RedGTiVR6 06-08-2007 01:22 AM

shows up alphabetical

Mrdby 06-08-2007 01:51 AM

Now maybe you can add for certain catergories to have PAID subscriptions FOR REGISTERED AND GUEST. gUEST CAN EVEN pay through paypal to down if they like..or to post downloads. Possible?

RS_Jelle 06-08-2007 11:26 AM

Quote:

Originally Posted by aj8690 (Post 1262777)
Very nice.

Just one problem, which I hope can be fixed.

When the downloads directory is outside of the public html directory, like mine (for added security), and a member uploads an image to associate to a file, it doesn't do it right. When you try to go to the image, it will make the url like this: www.domain.com/home/user/downloads, which won't work because it's not within the public html directory. Is there a way to fix this without putting the downloads folder inside the public html directory?

Thanks.

At the moment non public html directories aren't supported yet. This will be a feature in v6.
But using a public html directory is pretty secure as the uploaded files have three random characters after the file name. If you download a file, you just see the original file name.
Only the screenshots are directly linked to the folder, but you can disable image viewing for guests.

Quote:

Originally Posted by logofreax (Post 1262984)
Hi, I?ve got 2 little questions...

1.) How can I change Ratingsystem from A+ to Stars or metric? I found already this but it doesn?t work:

https://vborg.vbsupport.ru/showthrea...ng#post1040856

I already recoded this part to the vBulletin like stars for v6. But at the moment I'm busy for two more weeks with my final exams. Afterwards I've got a sea of time :)

Quote:

Originally Posted by Mrdby (Post 1263771)
this should have a menu options just in case u want to change the order of the catergories..cause i notice i made 4 already and want the last one i created to show at the top instead the bottom..and i have to delete the others and start over.

This already exists. When you add/edit a category there's a weight field to control this. So no need to remove all categories and add them again ...

Quote:

Originally Posted by Mrdby (Post 1263809)
Now maybe you can add for certain catergories to have PAID subscriptions FOR REGISTERED AND GUEST. gUEST CAN EVEN pay through paypal to down if they like..or to post downloads. Possible?

You can control the access to separate categories using the DownloadsII usergroup permissions. So you can accomplish this with separate user groups for paid download subscriptions. Also adding downloads is a usergroup permission.

Mrdby 06-08-2007 12:57 PM

Ok..lets say..i want GUEST to be able to download certain things..and then others to pay..i'm loking under usergroups and see nothing dealing with subscriptions.

Mrdby 06-08-2007 01:04 PM

and do the downloads have the server i'm on get flooded with nonsense due to people downloading? What should the max MB for uploading to still run a site and not get warned by your host?

VViper 06-09-2007 06:44 AM

Is there a limit on what size the files can be uploaded?
I often find VB to be a pest when it comes to big files?
Can the files be stored in the filesystem and not the VB database?

aj8690 06-10-2007 02:18 AM

Quote:

Originally Posted by RS_Jelle (Post 1264058)
At the moment non public html directories aren't supported yet. This will be a feature in v6.
But using a public html directory is pretty secure as the uploaded files have three random characters after the file name. If you download a file, you just see the original file name.
Only the screenshots are directly linked to the folder, but you can disable image viewing for guests.

Ah...ok. I will change to a directory within public html. Thank you for your reply.

aj8690 06-10-2007 02:24 AM

Quote:

Originally Posted by VViper (Post 1264620)
Is there a limit on what size the files can be uploaded?
I often find VB to be a pest when it comes to big files?
Can the files be stored in the filesystem and not the VB database?

1. It depends on your php.ini configuration. You can also set the limit in options, but that does no good if your php.ini is set too small.

2. The files are only stored in the filesystem.

AJ

NokStar 06-10-2007 04:05 AM

Hi bro i am running this with vb 3.5.x
1. Some times it needs to delete files and add again so when that happens download counter comes with 0. So how can i edit that to the previous amount? Anyway to edit that?

2. I can't disable that download delay. I mean that 30secs between downloads.. like thing you can edit. I put the 0 there still it show like 140secs etc... How to fix and and completely disable that?

Mrdby 06-11-2007 01:04 PM

still cant get this set for subscription.

CyberRanger 06-11-2007 01:06 PM

Quote:

Originally Posted by Mrdby (Post 1266235)
still cant get this set for subscription.

I'm not sure why you are having trouble. The permissions are controlled by usergroup. Simply set the usergroup that has users with subscriptions how you want and guest and registered usergroup the other way.

Mrdby 06-11-2007 01:12 PM

thats the thing..under my usergroup..i see nothing for subscriptions.

CyberRanger 06-11-2007 01:19 PM

Quote:

Originally Posted by Mrdby (Post 1266243)
thats the thing..under my usergroup..i see nothing for subscriptions.

Paid subscriptions aren't set in the usergroup portion of the admincp. You setup the subscriptions under the "Paid Subscription" section and the user is assigned to the appropriate usergroup when they subscribe. You may want to read vb's help more on paid subscriptions to understand all the capabilities.

RS_Jelle 06-12-2007 08:14 AM

Quote:

Originally Posted by NokStar (Post 1265273)
Hi bro i am running this with vb 3.5.x
1. Some times it needs to delete files and add again so when that happens download counter comes with 0. So how can i edit that to the previous amount? Anyway to edit that?

2. I can't disable that download delay. I mean that 30secs between downloads.. like thing you can edit. I put the 0 there still it show like 140secs etc... How to fix and and completely disable that?

1. That's not possible, but you can use phpMyAdmin to change this pretty easily. Have a look at the dl_files table with it. Allowing users to change this would be some kind of cheating (they would add some hundreds of "downloads" to make their site look big), so I don't think it would be a good feature.

2. Are you really, really sure that the delay option is set to 0? I haven't heard of any other complaints since it was bugfixed in a previous release.

Mrdby 06-12-2007 11:31 AM

adding new subscription has no options for downloads..just usergroups and the forum

CyberRanger 06-12-2007 11:34 AM

Quote:

Originally Posted by Mrdby (Post 1266891)
adding new subscription has no options for downloads..just usergroups and the forum

Right, once the user has a subscription, the user is moved into a different usergroup. The download settings are then set in that usergroup.

hugh_ 06-13-2007 02:56 PM

Could I suggest extracting id3 information from mp3 or similar files optional / automatic during uploads and adding it to file description?

Hornstar 06-14-2007 07:56 AM

are any more features being added, or is the next version just being finished off with all features already implemented? because i'm hoping it is the second so we can get our hands on it sooner to test it ^^ any progress reports would be great. Thanks.

NokStar 06-14-2007 11:56 AM

Quote:

Originally Posted by RS_Jelle (Post 1266796)
1. That's not possible, but you can use phpMyAdmin to change this pretty easily. Have a look at the dl_files table with it. Allowing users to change this would be some kind of cheating (they would add some hundreds of "downloads" to make their site look big), so I don't think it would be a good feature.

2. Are you really, really sure that the delay option is set to 0? I haven't heard of any other complaints since it was bugfixed in a previous release.

Hay thanks for your reply.

1. If i edit the number from Phpmyadmin then it will not cause any trouble?
I mean i saw this DownloadsII logs the user name and date which some has downloaded it.
So it should match the number in that table right? or if its different still not make any problems?

2. Yes its on 0, and it shows some (-) time like -46 like stuff

Majest 06-16-2007 07:38 AM

Is there a way to have the message interface match the style?

Also is there a way to have Top Contributors be Top Authors instead of Top Uploaders?

Clicks Install. ;)

Dotara 06-18-2007 09:09 AM

Code:

Download URL
The relative path to your download folder. Do not change unless you know what you are doing!

./downloads/

It's creating downloads dir under my forum dir. What should I put in the Download URL field to move it to /public_html/downloads? Also it will work if I rename the downloads dir to something else and put the value in Download URL field? Also I did set the permissions but am not able to see any download section anywhere. Where do it appear may I know?

nebu 06-18-2007 12:05 PM

i can upload files and download em, but the files dont appear on my server.
with flashfxp i cant see them in the /downloads/ folder.

i want them to appear there!

second question:
if somebody uploads a file, i have to Approve the file.
can i disable Approve function?

and can i disable the 30 seconds download protection?

RedGTiVR6 06-18-2007 02:22 PM

Not sure what would be causing this errors, but here goes.


When I'm linking to a file, I'm entering the file size in bytes. I enter in 6,826,230. However, once I submit and go look at the file, it doesn't show a size. Is there a character limit to this field?

Any ideas?

Citizen 06-18-2007 08:27 PM

Does this pick up on all attached files or just ones used in the downloads section?

Is there a way to limit the downloads section to one file type?

Is there a way to not allow external link downloads?

yaoren 06-19-2007 04:46 PM

I'm having some difficulty uploading some attachments. Didn't really ever try to do this and did some moderations to the board and found I can't. Deleated the mods in hope to fix this issue but still have the same problem. Every time I try to upload certain file types, for example .zip or .mpg I then get

Internet Explorer cannot display the webpage

( no error message or anything else..just straight to the page )

Although jpg seems to work fine. Any ideas on what this could be? I have double checked the MIME settings, set permissions for usergroups and while viewing other threads to troubleshoot myself I have attempted to run a upload dianostic which took me to the exact same page.

Not sure if there's some .php file that I can reupload from VB before I made changes. Any help is appreciated.

Version 3.6.7
Mods I Installed were Downloads II and Links and Download Manager
Tried with the hooks on and off.
In 'file suspect' diagnostics, doesn't report any customized files. Only thing different was

.includes
functions_forumlist.php (states: file does not contain expected contents)

As far as I know all users...since we really don't have too many users....just other Admin and I are using forum at this point in time.
Happens in Firefox as well.
All styles were always set to no parent.
Attachments are stored in database.

Tried working on all of these possible scenarios but still no luck and it only seems to be on new attachment files that we manually add or fix.

tekguru 06-19-2007 06:56 PM

Anyone know what may be causing this error and if so how to fix it:

Code:

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT title, usergroup.usergroupid, username, userid
FROM vb_usergroup, vb_user
WHERE ecdownloadpermissions & 1024 AND usergroup.usergroupid = user.usergroupid;

MySQL Error : Unknown table 'usergroup' in field list
Error Number : 1109
Date : Tuesday, June 19th 2007 @ 09:38:00 AM
Script : <http://www.4winmobile.com/forums/downloads.php?do=edit&id=37>
Referrer : <http://www.4winmobile.com/forums/downloads.php?do=edit&id=37>
IP Address : 83.67.61.245
Username : boz
Classname : vb_database


unknowngiver 06-21-2007 01:04 AM

i have a small request:
i was using vbulletin attachment feature as my download system...is there any way of exporting all of my attachments to this module?

RS_Jelle 06-21-2007 07:52 AM

Quote:

Originally Posted by hugh_ (Post 1267700)
Could I suggest extracting id3 information from mp3 or similar files optional / automatic during uploads and adding it to file description?

That would be a nice add-on -I think-, but personally I don't think it's something for the main release as it would require additional PHP classes. I think it's not that clean to include those for everyone, but it would be suitable for an add-on (you can get them opensource, but we haven't written them, so don't know them entirely).

Quote:

Originally Posted by hornstar1337 (Post 1268268)
are any more features being added, or is the next version just being finished off with all features already implemented? because i'm hoping it is the second so we can get our hands on it sooner to test it ^^ any progress reports would be great. Thanks.

I just did my last exam today, so now I've got three months of free time :D
So I'm restarting today with coding and answering support questions.

Quote:

Originally Posted by NokStar (Post 1268340)
Hay thanks for your reply.

1. If i edit the number from Phpmyadmin then it will not cause any trouble?
I mean i saw this DownloadsII logs the user name and date which some has downloaded it.
So it should match the number in that table right? or if its different still not make any problems?

2. Yes its on 0, and it shows some (-) time like -46 like stuff

1. It's not in the logs (dl_downloads) table (as you can prune the logs). You should edit the downloads field in the dl_files table.

2. Pretty strange, as it was solved in an older release and I didn't heard of any more problems with it :confused:
Try reuploading all PHP files of DownloadsII and reimporting the product file (with overwrite option on). And be sure you've got the 5.0.4 zip file and not an older one ...

Quote:

Originally Posted by Majest (Post 1269583)
Is there a way to have the message interface match the style?

Also is there a way to have Top Contributors be Top Authors instead of Top Uploaders?

Clicks Install. ;)

1. How do you mean? I don't understand your question. The message editor is the default vBulletin one, so you just have to change its styles in the "Styles & Templates" AdminCP part. Or do you mean the large editor for the reply field for comments? This will be replaced by a small Quick Reply field in v6.

2. Edit the "ecdownloads_top_contributors" phrase to change the text.

Quote:

Originally Posted by Dotara (Post 1270822)
Code:

Download URL
The relative path to your download folder. Do not change unless you know what you are doing!

./downloads/

It's creating downloads dir under my forum dir. What should I put in the Download URL field to move it to /public_html/downloads? Also it will work if I rename the downloads dir to something else and put the value in Download URL field? Also I did set the permissions but am not able to see any download section anywhere. Where do it appear may I know?

At the moment, you can only specify a path starting from you forums directory. v6 will use an absolute path just like the vBulletin attachments filesystem storage system does. You can rename it if you want (rename it in the options AND the folder itself on your FTP), just keep sure it's chmodded to 777.
Read the Readme-Install.txt for instructions creating a link to the downloads section in your navigation bar. You can find DownloadsII on http://www.yoursite.com/forums/downloads.php

Quote:

Originally Posted by nebu (Post 1270909)
i can upload files and download em, but the files dont appear on my server.
with flashfxp i cant see them in the /downloads/ folder.

i want them to appear there!


second question:
if somebody uploads a file, i have to Approve the file.
can i disable Approve function?

and can i disable the 30 seconds download protection?

1. If your relative downloads path is pointing to there and you are uploading files (not linking them), they really should appear there. There can't be a secret folder :D
Try looking for an option to display hidden files maybe (.htaccess is sometimes hidden, but the files in the downloads folder aren't normally).

2. You can set this using the DownloadsII usergroup permissions: "Can Avoid Moderation Queue" (set it to yes).

3. Have a look at the DownloadsII settings in the AdminCP. Set the "Downloads Delay" option to 0.

Quote:

Originally Posted by RedGTiVR6 (Post 1271002)
Not sure what would be causing this errors, but here goes.


When I'm linking to a file, I'm entering the file size in bytes. I enter in 6,826,230. However, once I submit and go look at the file, it doesn't show a size. Is there a character limit to this field?

Any ideas?

You have to enter the size in bytes without any points, commas or other punctuation. So you should enter 6826230 in this case. The field is supporting 10 characters, so it should be enough for this.

RS_Jelle 06-21-2007 08:40 AM

Quote:

Originally Posted by Citizen (Post 1271250)
Does this pick up on all attached files or just ones used in the downloads section?

Is there a way to limit the downloads section to one file type?

Is there a way to not allow external link downloads?

1. It's a separate system, so it has nothing to do with the vBulletin attachments and it can't use them.

2. There a file types option to specify the allowed extensions.

3. You can control this using the usergroup permissions.

Quote:

Originally Posted by yaoren (Post 1271861)
I'm having some difficulty uploading some attachments. Didn't really ever try to do this and did some moderations to the board and found I can't. Deleated the mods in hope to fix this issue but still have the same problem. Every time I try to upload certain file types, for example .zip or .mpg I then get

Internet Explorer cannot display the webpage

( no error message or anything else..just straight to the page )

Although jpg seems to work fine. Any ideas on what this could be? I have double checked the MIME settings, set permissions for usergroups and while viewing other threads to troubleshoot myself I have attempted to run a upload dianostic which took me to the exact same page.

Not sure if there's some .php file that I can reupload from VB before I made changes. Any help is appreciated.

Version 3.6.7
Mods I Installed were Downloads II and Links and Download Manager
Tried with the hooks on and off.
In 'file suspect' diagnostics, doesn't report any customized files. Only thing different was

.includes
functions_forumlist.php (states: file does not contain expected contents)

As far as I know all users...since we really don't have too many users....just other Admin and I are using forum at this point in time.
Happens in Firefox as well.
All styles were always set to no parent.
Attachments are stored in database.

Tried working on all of these possible scenarios but still no luck and it only seems to be on new attachment files that we manually add or fix.

Hmm, this is not a DownloadsII related problem. DownloadsII doesn't change any files, it has nothing to do with the vBulletin attachments, it doesn't use any attachments related plugins, ... This is more a question for the vBulletin.com support team ;)

Quote:

Originally Posted by tekguru (Post 1271932)
Anyone know what may be causing this error and if so how to fix it:

Code:

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT title, usergroup.usergroupid, username, userid
FROM vb_usergroup, vb_user
WHERE ecdownloadpermissions & 1024 AND usergroup.usergroupid = user.usergroupid;

MySQL Error : Unknown table 'usergroup' in field list
Error Number : 1109
Date : Tuesday, June 19th 2007 @ 09:38:00 AM
Script : <http://www.4winmobile.com/forums/downloads.php?do=edit&id=37>
Referrer : <http://www.4winmobile.com/forums/downloads.php?do=edit&id=37>
IP Address : 83.67.61.245
Username : boz
Classname : vb_database


Did it occur since you updated to vB 3.6.7? Or is it a new DownloadsII install on vB 3.6.7 or something else? He says that there's no usergroup table, but the usergroup table is a default vBulletin table ... Try editing a usergroup and just save it, so it rebuilds your bitfields if necessary.

Quote:

Originally Posted by unknowngiver (Post 1272866)
i have a small request:
i was using vbulletin attachment feature as my download system...is there any way of exporting all of my attachments to this module?

Not at the moment; DownloadsII is a separate system. The vBulletin attachments system is also a bit more complicated: it saves files with the .attach extension and the real extension is stored in the database (if you use the filesystem option). So you can't use the DownloadsII mass import feature for this ...

pxd 06-21-2007 12:35 PM

We've been told about 1 month ago that there will be a quick release to address the thumbnail upload issue where only download author should have access to managing thumbnails. Is there an update anywhere around?


All times are GMT. The time now is 01:24 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.04722 seconds
  • Memory Usage 1,899KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (24)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