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)

spandexman 07-27-2006 05:31 PM

Quote:

Originally Posted by westpointer
Are you pulling up downloads.php?

Is that the only way to view it? I want it to show up on the main forum index as a category rather then having to type in /forum/downloads.php to view the downloads.

CyberRanger 07-27-2006 05:41 PM

Quote:

Originally Posted by spandexman
Is that the only way to view it? I want it to show up on the main forum index as a category rather then having to type in /forum/downloads.php to view the downloads.

Most folks add it to the navbar unless they have links in the header:
Quote:

Originally Posted by Robbed
I just added this to my navbar template

PHP Code:

<td class="vbmenu_control"><a href="downloads.php">Downloads</a></td


You could also create a forum and complete the "Forum Link" field, directing it do downloads.php.

CyberRanger 07-27-2006 06:02 PM

######################
# Changelog DownloadsII 5.0.5 #
######################

CyberRanger

* Fixed mixed sort order of files on import page

Jelle

* Fixed hardcoded "Category" phrase in the Manage Files option
* Changed category abbrevation in Manage Files to the full category name in the category dropdown windows
* Updated optional navbar edit as the code to search changed slightly since vBulletin 3.6.7
* Fixed problem with multiple pages being empty for the file manager (caused when you have an empty approval value)
* Improved the downloads log with time and ip address information (+ some link and layout changes)
* Fixed the fact that everyone with upload permissions could upload to every file, now you need to be the file author or need to have editall permissions
* Fixed the update counters function which didn't recount the comment amounts (the comment stats were only resetted to 0)
* Fixed XSS security issue with the optional downloads profile info
* Added xmlns attribute to the html tag of the DOWNLOADS template
* Fixed SQL injection security issues with category sorting and the assign uploader page
* Fixed wrong conditions for displaying the assign uploader link
* Fixed XSS security issues with unclean category and file id's in the templates
* Fixed some other bugs and removed some redundant checks

#################################
# DownloadsII 5.0.4 Changelog #
#################################

CyberRanger
- Fixed small bug in class_downloads.php ($dl to $this)
- Fixed possible wrong background on some tables
- Added option to restrict daily files downloaded by usergroup
- Enhanced option to restrict daily downloads based on MB and/or number of files
- Removed left side bar (tops) from most of the views with option to display
- Modified search results: added small description and category name, removed # of downloads and rating
- Added "download delay" setting to usergroups
- Fixed bug in mass upload if the file name contained an apostrophe
- Added IP check for max daily MB and file download check
- Modified templates downloads_wrapper_side and dowloads_wrapper_none so that the "disclaimer" will appear if no tops are wanted.
- Added setting in admincp for cleaning log entries that are older than x days.
- Added Javascript prompt before deleting a file, image or comment
- Added five custom hook locations (dl_pre_upload, dl_post_upload_add, dl_post_upload_edit, dl_pre_download, dl_post_download)

Jelle
- Fixed W3C errors in $dmemberfiles
- Fixed manfiles mass update (wasn't working any more)
- Fixed a bug which caused old downloads titles to disappear
- Fixed category images of sub-categories, which weren't displayed in IE
- Moved assignuser permissions condition from the templates to downloads.php and changed permissions slightly
- Changed the word "purgatory" to "moderation queue" in the phrases
- Added a missing AdminCP footer to the edit category page
- Added rel noffolow attributes to the sort links for better SEO
- Changed some stop message pages in the AdminCP to redirection pages
- Improved pagination to the vBulletin coding standards (with a better security)
- Redirect after mass update corrected to manfiles
- Changed the tables code to prevent a small white space at the left and the right side + some various layout fixes
- Fixed an XSS security issue with the category view and search

#################################
# DownloadsII 5.0.3 Changelog #
#################################

westpointer
- Linked downloads don't open any more in the same window

Jelle
- Some more code cleanup (removed ec_demo mode, ...)
- Fixed a bug with tags being stripped from the description
- Fixed the "Bandwidth value maxed out at 4294967 KB" issue (int(10) to bigint(30))
- Removed the filesize condition from the download delay time
- Sort on total comments in the dropdown box
- Sort on file name in the category view now also clickable in the table header
- Fixed an unnecessary query for the vBulletin editor when viewing a file and comments are disabled
- Updated DownloadsII.txt and renamed it to Readme-Install.txt

#################################
# DownloadsII 5.0.2 Changelog #
#################################
westpointer
- Fixed link to files in user profile by modifying the template downloads_memberfiles_bit
- Fixed "File Name" phrase on file detail page by modifying the template downloads_file
- Modified "delay" to work better with guests. The client's ip is now stored in the table dl_downloads.
- The file description is now optional
- Fixed issue with counters not updated when a file is deleted or when a files status is changed using "Manage Files"

#################################
# DownloadsII 5.0.1 Changelog #
#################################

westpointer
- Added everything from ecDownloads Buddy back into DownloadsII
- Plug a security hole that could be used for a DoS attack
- Completely re-wrote the method for downloading files
- Cleaned up the "Downloads" section of the admincp (thanks EvilHawk!)
- Permit safe_mode to be on
- Plug a security hole that could be used to get total control of your vBulletin installation (discovered by Jelle)
- Added better protection against DoS attacks. The vb admin can now specify the minimum wait between file downloads.
- Added ability to decide which file extensions provide "save as" option on download and which open automatically in the browser

Jelle
- 100% XHTML 1.0 Transitional and CSS 2.1 W3C compliance
- Removed borders of all images
- Fixed wrong aligned text editor when adding a file with IE
- Moved a lot of hardcoded text to phrases and fixed some missing phrases
- Fixed two wrong phrases for navbits (Add & Edit file)
- Fixed a bug with manage files causing an invalid sql
- Fixed a bug with manage files causing you couldn't select the Pin option in the dropdown menu
- Fixed a bug with the category page: category images of sub categories weren't showing up ($dl->picwidth doesn't exist)
- Removed examples for file name and author when adding a file
- Cached an uncached template causing an extra query on the 'Assign New Uploader' page
- Removed the unnecessary 'add_to_dlinks' hook location
- Cleaned up a lot of code to the vBulletin coding standards
- Added a downloads folder with an empty index.html
- Replaced the top panel with the side panel on the downloads index
- Added dynamic titles for better SEO and navigation
- Added a download button next to the two tiny links (thanks Norke!)
- Fix: comments and votes weren't removed when you deleted a file
- Fixed wrongly recorded votes
- Changed the two desc fields in the database to description (because of database backup problems with desc)

HappyPike 07-27-2006 06:13 PM

WooHoo! Thanks for the update! :up:

It's greatly appreciated! :)

I already applied the vote fix Jelle posted in post #154. Would this cause problem when I upgrade?

RS_Jelle 07-27-2006 06:20 PM

Quote:

Originally Posted by HappyPike
WooHoo! Thanks for the update! :up:

It's greatly appreciated! :)

I already applied the vote fix Jelle posted in post #154. Would this cause problem when I upgrade?

No ;)

HappyPike 07-27-2006 06:31 PM

Cool. Going to apply the update soon.

Just nominated this mod for mod of the month. :) I don't know how it works, but this MoTM nomination feature could be a nice feature to have. :D

49er 07-27-2006 06:32 PM

Hi guys,

Do i do a full install with this update, or just the download.php and the xml files.

Thank You for your time spent on this great mod. :cool:

CyberRanger 07-27-2006 06:34 PM

Quote:

Originally Posted by teepeg
Hi guys,

Do i do a full install with this update, or just the download.php and the xml files.

Thank You for your time spent on this great mod. :cool:

Full install for sure for sure! :)

RS_Jelle 07-27-2006 06:35 PM

Quote:

Originally Posted by teepeg
Hi guys,

Do i do a full install with this update, or just the download.php and the xml files.

Thank You for your time spent on this great mod. :cool:

A "full" install. You need to upload everything from the upload folder. Then you need to upload the product with the override option on ;)

Edit: I'm too slow :p

CyberRanger 07-27-2006 07:08 PM

Thanks to Jelle for:
  1. All the hard work his done cleaning up the code!
  2. For taking the time to provide us with some much needed screenshots!

:banana:

cOuNtErFiET 07-27-2006 08:34 PM

so i seen the fixes is this gonna work for me, i seen you permit safe_mode_on so i think it should and just wondering if the update instructions are included cause i dont want to loose all of my dnlds....?

RS_Jelle 07-27-2006 09:03 PM

The upgrade instructions are included (ecDownloads.txt), they are the same as the install instructions.

Very simple:
  1. Upload all the files from the 'upload' directory
  2. Import the product with the override option on

You won't lose anything. I did the upgrade on my test site and main site and it went fine :)

cOuNtErFiET 07-27-2006 09:17 PM

cool thanks Jelle, west coded a special downloads.php for me cause im in safe mode you got all that in here too?

RS_Jelle 07-27-2006 09:22 PM

Quote:

Originally Posted by cOuNtErFiET
cool thanks Jelle, west coded a special downloads.php for me cause im in safe mode you got all that in here too?

Yes, have a look at the changelog, it's included in this release ;)

cOuNtErFiET 07-27-2006 09:40 PM

yea i did but he released a few safe_mode downloads.php files and only 1 worked so just making sure, thanks installing now Propz

HappyPike 07-28-2006 12:46 AM

hey Jelle & Westpointer,

Lots of unregistered visitors as well as a few members reported that they get the "Slow Down! You are trying to download files too quickly" message all the time, even though they never downloaded anything.

Normally I use FireFox, but when I try using IE to download (w/o logging in), I get the message all the time too. :(

Can you look into this problem? Thanks. For now I have commented out the DOS check feature.

Rids 07-28-2006 01:52 AM

I run my site with a fixed width of 955px but for some reason the ecDownloads tables are too wide and extend a couple of hundred pixels to the right of the edge of vbulletin. Which templates would I nead to alter to bring this under control?

HappyPike 07-28-2006 02:05 AM

Try the downloads_wrapper_side template inside the Downloads Templates category. You can change the table size in the first line.

CyberRanger 07-28-2006 03:06 AM

Quote:

Originally Posted by HappyPike
hey Jelle & Westpointer,

Lots of unregistered visitors as well as a few members reported that they get the "Slow Down! You are trying to download files too quickly" message all the time, even though they never downloaded anything.

Normally I use FireFox, but when I try using IE to download (w/o logging in), I get the message all the time too. :(

Can you look into this problem? Thanks. For now I have commented out the DOS check feature.

Hmmm .... I'm going to have to ponder this one. I wasn't thinking about sites that allow guests to download files. We really, really, need that kind of check or a bad person can bring your server to it's knees very easily. I have an idea but let me test it first.

CyberRanger 07-28-2006 03:07 AM

Quote:

Originally Posted by Rids
I run my site with a fixed width of 955px but for some reason the ecDownloads tables are too wide and extend a couple of hundred pixels to the right of the edge of vbulletin. Which templates would I nead to alter to bring this under control?

What exactly is too wide? The default view when you bring up downloads.php or deeper in?

HappyPike 07-28-2006 04:28 AM

Quote:

Originally Posted by westpointer
Hmmm .... I'm going to have to ponder this one. I wasn't thinking about sites that allow guests to download files. We really, really, need that kind of check or a bad person can bring your server to it's knees very easily. I have an idea but let me test it first.

Thanks for looking into that. I don't want to inconvenience my visitors so have never required them to register in order to download files.

BTW, a requested feature from my members is to make the member files section in the profile page to show the file's category. I tried putting {file[category]} but this only prints the category number. :tired:

HappyPike 07-28-2006 05:45 AM

Found a very minor bug in the template...

In the downloads_memberfiles_bit template, the link

<a href="downloads.php?do=file&amp;fileid={$file['id']}">{$file['name']}</a>

should be

<a href="downloads.php?do=file&amp;id={$file['id']}">{$file['name']}</a>

Greg-J 07-28-2006 07:14 AM

Alright, I searched all over the place to figure this out and now I have to ask.

I made it all the way through the install and it went fine. Added permissions to groups, changed the settings, added a category. But there's no instructions on how to use it... I can't figure out where to create a download :s

Pardon my ignorance, but could somebody point me in the right direction?

RS_Jelle 07-28-2006 09:03 AM

Quote:

Originally Posted by Greg-J
Alright, I searched all over the place to figure this out and now I have to ask.

I made it all the way through the install and it went fine. Added permissions to groups, changed the settings, added a category. But there's no instructions on how to use it... I can't figure out where to create a download :s

Pardon my ignorance, but could somebody point me in the right direction?

You have to add downloads using your site, you can't add them using your AdminCP. Click on the "Add" link in downloads.php (like on this screenshot) ;)

@HappyPike: I will take a look at your bug report. I'm not using it on the member page, ... so I didn't test it yet. I will do it now :)

Greg-J 07-28-2006 09:09 AM

It was actually finding downloads.php that I was having a hard time with :confused:

Now I'm just trying to sort out what kind of condition I can make to show the link to downloads.php in a users cp if they belong to a particular group.

Actually, it would be nice to be able to show a link if they belong to any group that is allowed to view downloads. If anyone has any experience with this, your help would be much appreciated. Thank you.

CyberRanger 07-28-2006 11:52 AM

Quote:

Originally Posted by HappyPike
BTW, a requested feature from my members is to make the member files section in the profile page to show the file's category. I tried putting {file[category]} but this only prints the category number. :tired:

Right now, the sql in the plugin doesn't pull the category name. I'll consider if we can fit that in okay. I'll also fix the bug you reported with the link.

Rids 07-28-2006 11:55 AM

Quote:

Originally Posted by westpointer
What exactly is too wide? The default view when you bring up downloads.php or deeper in?

Both, the default view pushes out by a couple of hundred pixels, as do all that include the side panels. The "add file" tables only break it by 30 or 40 pixels as that page doesn't have the side panels.

Rids 07-28-2006 12:05 PM

I'm also having problems with the "daily allotment" feature, as registered members and even moderators are getting the over limit message. I don't allow unregistered guests to download and the allowed usergroups all have -1 in the limit box to allow unlimited downloads yet they are still getting this message.

CyberRanger 07-28-2006 12:11 PM

Quote:

Originally Posted by Rids
Both, the default view pushes out by a couple of hundred pixels, as do all that include the side panels. The "add file" tables only break it by 30 or 40 pixels as that page doesn't have the side panels.

okay, we are discussing what we can do for sites like yours that run a tight fixed width. We'll probably give you an option to move the "Tops" (side panel) information to the top.

CyberRanger 07-28-2006 12:12 PM

Quote:

Originally Posted by Rids
I'm also having problems with the "daily allotment" feature, as registered members and even moderators are getting the over limit message. I don't allow unregistered guests to download and the allowed usergroups all have -1 in the limit box to allow unlimited downloads yet they are still getting this message.

Go into the usergroup settings for those groups and simply resave the settings. I think that will fix the problem.

Or, a quicker way would be to rebuild the bitfields: admincp/index.php?do=buildbitfields. I think that will fix it also.

CyberRanger 07-28-2006 04:18 PM

#################################
# ecDownloadsII 5.0.2 Changelog #
#################################

- Fixed link to files in user profile by modifying the template downloads_memberfiles_bit
- Fixed "File Name" phrase on file detail page by modifying the template downloads_file
- Modified "delay" to work better with guests. The client's ip is now stored in the table dl_downloads.
- The file description is now optional
- Fixed issue with counters not updated when a file is deleted or when a files status is changed using "Manage Files"

HappyPike 07-28-2006 05:33 PM

Quote:

Originally Posted by westpointer
Right now, the sql in the plugin doesn't pull the category name. I'll consider if we can fit that in okay.

Cool, thanks. :) Some of my members have 100+ files spread across several different categories, so knowing where a file is in should be very useful.

Also thanks for the very quick 5.02 update! I will try it later today and let you know how it goes. :up:

Another request: In the next version, could you add two new optional fields named "Version Compatibility" where people can specify which version(s) the file works under, and also a field named "Related Link" where people can put in URL to a discussion thread or the file's homepage. If the optional field is blank, then this info is not shown on the file details page. Of course, the best way is to add a custom field feature (like the custom profile field feature that let's admins add new fields), but this likely would require much more work... I think the two new optional fields should be useful for many forums. Currently my members put the Version Compatibility and Related Link inside the file description. This is not as good since many people forget to include those info or put them in different places. Also, with a new "Compatibility" field, we could potentially have a filter files by compatibility option, making it even more efficient to find the files.

CyberRanger 07-28-2006 05:49 PM

Quote:

Originally Posted by HappyPike
Cool, thanks. :) Some of my members have 100+ files spread across several different categories, so knowing where a file is in should be very useful.

Understood :) Please note that I did not make this change for ver 5.0.2. Jelle is looking at re-writing the search feature. That may be a better place to include the category. Either way, we'll see what we can work up to help you.

NiTRoN 07-28-2006 08:07 PM

I'm wondering if this is allready build in or could be a feature.. If you are reimporting files from directory that was allready imported, can there be option to skip allready imported files? So you only are adding new files that were placed into that directory to a list. This would be usefull for people that have users with FTP accounts which upload files to their directories and for admins that use SSH/FTP to maintain their sites such as I'm one.

oh.. and thank you so much for reviving this addon..

HappyPike 07-28-2006 10:15 PM

My member reported that he has issue using the > and < characters inside the descriptions for the files even inside of the code, html, and quote tags. I just tried it and the >, <, and tags all get removed in the description.

For example, when I try with this code:

Code:

<ModInfo>
    <Type>IMPROVEMENT</Type>
    <Description>IMPROVEMENT_INN</Description>
</ModInfo>

It changes the code to just:

Code:

    IMPROVEMENT
    IMPROVEMENT_INN

Can you look into that and make it behave like the forum? Some of my file categories often require posting of code snippets (XML, C++, etc). Thanks!

HappyPike 07-29-2006 05:58 AM

I installed 5.02... works well so far. I tried downloading w/o registering and can download fine. :)

EvilHawk 07-29-2006 10:09 AM

Quote:

Originally Posted by westpointer
Understood :) Please note that I did not make this change for ver 5.0.2. Jelle is looking at re-writing the search feature. That may be a better place to include the category. Either way, we'll see what we can work up to help you.

This could be also used to add a link back to the file category when viewing or downloading a file ;)

project-Buckfas 07-29-2006 11:07 AM

Installed, Thanks

Liquid_N2 07-29-2006 02:30 PM

I seem to have an issue where a user cannot download for 1165 seconds after clicking a download no matter what I set the time to.

Any ideas?

CyberRanger 07-29-2006 08:00 PM

Quote:

Originally Posted by Liquid_N2
I seem to have an issue where a user cannot download for 1165 seconds after clicking a download no matter what I set the time to.

Any ideas?

Yes, but first a question - how big is the file that the user is trying to download?


All times are GMT. The time now is 07:41 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.04182 seconds
  • Memory Usage 1,871KB
  • 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_php_printable
  • (19)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