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)

RS_Jelle 07-01-2006 10:00 PM

DownloadsII
 
1 Attachment(s)
There's a vB4 version of this mod available: https://vborg.vbsupport.ru/showthread.php?t=231427

DownloadsII

DownloadsII is a download database that integrates into vBulletin. It allows you to upload files, add images to them, create categories, link to external files - and more. It is very flexible and has many options.

Because a lot of people keep on asking this:
This mod works with any version of vBulletin 3.7.x and 3.8.x!

It's also coded 100% XHTML 1.0 Transitional valid, just like vBulletin itself.

https://vborg.vbsupport.ru/external/2010/10/30.jpg

Instructions & Support

You can find an installation manual in the zip package (Readme-Install.txt).

We try to answer most questions asked in this thread. Please don't send any pm's if we don't ask for them, as we said we try to give a high level of support in this thread. Don't forget to click the install link, so you will receive important update notifications.

Screenshots & Live demo

At the bottom of this post, you can find 6 screenshots of the front-end and back-end (AdminCP part) of the DownloadsII software. You can see the newest version in action at the Minatica.be Downloads (Dutch).

Changelog (version 5.1.2)

Jelle
  • Backported CSRF security fix from the vB 4 release
  • Added permission check for Update Counters
  • Fixed PHP warnings when running PHP 5.3
  • Removed the imagecreatefrombmp() function. It doesn't exist.
  • Added permission check for rating submissions
You can find all the changelogs of this and older versions here.

Help!!! I can't upload large files??

This is probably the second most asked question. Have a look at this post for the solution.

It doesn't work with GARS?!

If you also use the latest version of GARS, you will get the "Fields marked in RED must be filled in!" error when uploading a file. I provided a fix here on the GARS forums.

Addons

We are offering 3 addons for this mod at the moment (have a look at the bottom of this post for them). DownloadsII contains 5 hook locations for the vBulletin plugin systems, so you can add extra functionality without file edits.

Do you want to help expanding DownloadsII (if you are a coder)? Check out this post!

Notes
  • ecDownloads Buddy is NOT compatible with this version. If you are using the Buddy, you should UNINSTALL it before installing DownloadsII ver 5.x.x. The Buddy's features are now integrated into DownloadsII.
  • DownloadsII is a direct derivative work from Ron1n's ecDownloads.

Addons

CyberRanger 07-02-2006 02:40 PM

Install

1. Upload the contents of 'upload' to your forum directory
2. Import product-downloads.xml into your products be going to Plugin System -> Manage Products -> Add/Import Product
3. Change the permissions on the directory called 'downloads' (under your forum directory) making it writeable and executable (chmod 777) (Note for Advanced users: once you have installed the product, you also have the option to place the 'downloads' folder anywhere in your web server's path.)
4. Go to your 'Usergroup Manager' and assign usergroups permissions
5. Go to the 'Settings' menu under 'Downloads' in your admincp and fill them out accordingly
6. Create directories in the 'Categories' menu under the 'Downloads' in your admincp
7. If you would like to import files go to the 'Import' menu under 'Downloads' and specify a directory to import
Time: 2-3 Minutes

Importing Files

1) Once you specify a directory it will only prompt you to import files with allowed extensions that are readable
2) The filename for a file will be either the name specified for that individual file, the name specified for files that do not have a name specified, or the filename - the extension
3) The author will be the author specified for that individual file or the author specified for files that do not have an author specified.
4) File description, category, and pinned follow the same rule as author.
5) Only files with valid categories that are checked for import can be imported. If you specify a master category for those files that do not have a category specified, then files without valid categories assigned will be assigned to the master category.

EnIgMa1234 07-02-2006 02:43 PM

wow first install
thanks

Mickie D 07-02-2006 02:44 PM

thanks fella ;)

hugh_ 07-02-2006 03:11 PM

Great thanks!

PixelFx 07-02-2006 04:29 PM

thank you :D

Snake 07-02-2006 05:21 PM

What is this exactly? I just don't get it...

CyberRanger 07-02-2006 05:23 PM

Grrrrr .... sorry to do this to those that have downloaded already but another security issue was brought to my attention. The latest file (ver 1.0.1) contains a fix for that. Once again, if you already have the mod installed, simply load downloads.php into your forum folder.

CyberRanger 07-02-2006 05:26 PM

Quote:

Originally Posted by Dark Cloud
What is this exactly? I just don't get it...

The mod lets users load files that can be shared with others. Here's an example of the main page: http://www.strategyzoneonline.com/forums/downloads.php? and here's a detail look: http://www.strategyzoneonline.com/fo...o=file&id=1169

DementedMindz 07-02-2006 06:06 PM

nice job westpointer thank god your back on this... now i just need to look at the changes since i modified mine big time...

DementedMindz 07-02-2006 06:26 PM

LOL westpointer in looking over the downloads file what is this?


Code:

// ######################### REQUIRE BACK-END ############################
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/global.php');
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/class_downloads.php');
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/class_bbcode.php');
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/functions_editor.php'); /* included to build editor for description */
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/functions_wysiwyg.php'); /* included to build editor for description */
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/functions_newpost.php'); /* included to build editor for description */ 
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/functions.php'); /* included to strip bbcode *


Rids 07-02-2006 06:28 PM

I'm getting that too :D

CyberRanger 07-02-2006 06:28 PM

Quote:

Originally Posted by DementedMindz
LOL westpointer in looking over the downloads file what is this?


Code:

// ######################### REQUIRE BACK-END ############################
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/global.php');
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/class_downloads.php');
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/class_bbcode.php');
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/functions_editor.php'); /* included to build editor for description */
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/functions_wysiwyg.php'); /* included to build editor for description */
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/functions_newpost.php'); /* included to build editor for description */ 
require_once('../../../../../Mary%20Layman/My%20Documents/BrentandMary/vbtest/includes/functions.php'); /* included to strip bbcode *


SOB!! That's DreamWeaver doing an automatic URL replacement without me catching it. Crap ... fixing that now.

DementedMindz 07-02-2006 06:30 PM

lmfao i seen that i was using beyond compare so i could change my settings and seen it just wanted to give you a heads up...

CyberRanger 07-02-2006 06:35 PM

Quote:

Originally Posted by DementedMindz
lmfao i seen that i was using beyond compare so i could change my settings and seen it just wanted to give you a heads up...

Okay, fixed now. Please download version 1.0.2 if you've already done a download. If you ALREADY have an installation, just upload downloads.php, that's the only file that's changed, including ecDownloads 4.1.x installs.

Mickie D 07-02-2006 06:38 PM

blank page on new version m8

DementedMindz 07-02-2006 06:52 PM

look for this in there this is what it should be


Code:

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once('./includes/class_downloads.php');
require_once('./includes/class_bbcode.php');
require_once('./includes/functions_editor.php'); /* included to build editor for description */
require_once('./includes/functions_wysiwyg.php'); /* included to build editor for description */
require_once('./includes/functions_newpost.php'); /* included to build editor for description */ 
require_once('./includes/functions.php'); /* included to strip bbcode */


Mickie D 07-02-2006 06:59 PM

ahhh nice one he has ../ instead of ./

easy mistake :)

DementedMindz 07-02-2006 07:09 PM

westpointer take a look at this file i cleaned alot of the html errors up on it... i have to set up a test site this way i can make this 100% html transitional for you... but this should cover alot of the errors on it also i fixed the error with blank page as posted and your fix for the exploit is in here too... check it over all i did was basiclly changed <br> to <br /> and & to &amp;

Removed the downloads.php file since its not needed

RS_Jelle 07-02-2006 08:25 PM

Quote:

Originally Posted by DementedMindz
westpointer take a look at this file i cleaned alot of the html errors up on it... i have to set up a test site this way i can make this 100% html transitional for you... but this should cover alot of the errors on it also i fixed the error with blank page as posted and your fix for the exploit is in here too... check it over all i did was basiclly changed <br> to <br /> and & to &amp;

I already did this (there also was a post of me with a full list of edits about this in the old ecDownloads thread) ;)

dw.StifflersMum 07-02-2006 08:41 PM

Great to see this addon back :)
Westpointer, is there a chance that you implement the changing we were talking about right before the old thread was closed?
It was the problem with users who are member in more than one group.
My wish was, that i can define a comma seperated list of usergroups when creating a download-section (instead of a comma seperated list of sections when creating a usergroup)...
Because the actual implementation of the right-system is not able to handle user with more usergroups :(

Steffen

zooki 07-02-2006 08:42 PM

any screenshots?? please add them so i can decide whether to install or not
thanks

DementedMindz 07-02-2006 09:18 PM

Quote:

Originally Posted by RS_Jelle
I already did this (there also was a post of me with a full list of edits about this in the old ecDownloads thread) ;)

yeah i remember you did but its not in there at all so i figured hopefully westpointer will correct these errors... i have mine 100% html transitional so im good to go but i figured it would be nice to see the changes truely made in the code so others have it as well..

DementedMindz 07-02-2006 09:20 PM

Quote:

Originally Posted by zooki
any screenshots?? please add them so i can decide whether to install or not
thanks


you have to look at the top of the thread... there may not be screen shots if that thread is gone but if you search you will see there are plenty of them in previous threads...

NOTE: ecDownloadsII is a direct derivative work from Ron1n's ecDownloads. Right now, it's identical to his last release except the security hole found in ecDownloads has been fixed in this version. IF YOU ALREADY have ecDownloads ver 4.1.x installed, simply upload downloads.php to your forum folder. That will fix the security hole.

Guest210212002 07-02-2006 10:20 PM

Thank you very much for the hard work, westpointer. I overwrote my existing downloads.php, and now I just get a blank screen at the page. Any insight would be awesome. :)

[high]* Guest210212002 cheers[/high]

CyberRanger 07-02-2006 11:41 PM

Quote:

Originally Posted by Mickie D
ahhh nice one he has ../ instead of ./

easy mistake :)

Lord have mercy! Drinking beer all day with the family away isn't good coding practice. What's in an extra little . anyway???

Okay, ver 1.0.3 should be correct. I really do know what I'm doing ... although you wouldn't know it today!

CyberRanger 07-02-2006 11:42 PM

Quote:

Originally Posted by Chris-777
Thank you very much for the hard work, westpointer. I overwrote my existing downloads.php, and now I just get a blank screen at the page. Any insight would be awesome. :)

[high]* Chris-777 cheers[/high]

see if the downloads.php file contained in 1.0.3 makes your site happy.:banana:

CyberRanger 07-02-2006 11:44 PM

Quote:

Originally Posted by RS_Jelle
I already did this (there also was a post of me with a full list of edits about this in the old ecDownloads thread) ;)

Right on! RS_Jelle is going to send me new files that get the html complaint. I'll add the latest changes to those files, bring the changes in ecDownloads Buddy back into the main product, and work more on the category permissions.

Right now, the focus is on getting a secure version out.

CyberRanger 07-02-2006 11:45 PM

Quote:

Originally Posted by zooki
any screenshots?? please add them so i can decide whether to install or not
thanks

I'll post some asap but see it live at http://www.strategyzoneonline.com/forums/downloads.php? and a detail page at http://www.strategyzoneonline.com/fo...o=file&id=1166

Jetrome 07-03-2006 02:49 AM

absolutely kick ass.

/me installs

major major props, westpointer.

Guest210212002 07-03-2006 04:05 AM

Quote:

Originally Posted by westpointer
see if the downloads.php file contained in 1.0.3 makes your site happy.:banana:

Still a blank screen. :(

stonner 07-03-2006 07:50 AM

Thank you very much! I was waiting for the new version!

I've installed it, but I can't download the uploaded files:

The error message is:
Quote:

Warnung: copy(): SAFE MODE Restriction in effect. The script whose uid is 1194 is not allowed to access /home/www/web224/html/forum/downloads/ec_Imx owned by uid 30 in /downloads.php (Zeile 504)

Warnung: copy(./downloads//ec_Imx/ecDownloadsII-1[1].0.3.zip): failed to open stream: No such file or directory in /downloads.php (Zeile 504)

Warnung: Cannot modify header information - headers already sent by (output started at /home/www/web224/html/forum/includes/class_core.php:2984) in /downloads.php (Zeile 505)
How can I fix this?

I had this error with the old version 4.1. too.

Thank you very much.

The site is: www.schuelerforum.net/forum/downloads.php

Snakey 07-03-2006 08:39 AM

Nice to see this mod again
[high]* Snakey clicks install, but Jelle already installed it :p[/high]

Quote:

Originally Posted by stonner
Thank you very much! I was waiting for the new version!

I've installed it, but I can't download the uploaded files:

The error message is:


How can I fix this?

I had this error with the old version 4.1. too.

Thank you very much.

The site is: www.schuelerforum.net/forum/downloads.php

That's probably because either the directory isn't chmodded to 777 or your php is compiled with safe mode on, ask your host if they want to change it. (they probably wont, because it's more secure in safe mode)

CyberRanger 07-03-2006 09:32 AM

Quote:

Originally Posted by Chris-777
Still a blank screen. :(

Is this a new install or an upgrade? Can you create categories and set usergroup permissions in admincp?

Either way, the first step is to delete downloads.php, includes/class_downloads.php, and the ecdownloads xml files in includes/xml. Download the product from here again and recopy the files to your server.

If you still can't get it to work, I'll need you to PM me more info about your site so I can look at it. Specifically, the site url, a vb admin login and password, and a login and password that will let me do ftp to the site.

stonner 07-03-2006 09:34 AM

Quote:

Originally Posted by Snakey
Nice to see this mod again
[high]* Snakey clicking install, but Jelle already installed it :p[/high]


That's probably because either the directory issn't chmodded to 777 or your php is compiled with safe mode on, ask your host if they want to change it. (they probably wont, because it's more secure in safe mode)

the directory is already on 777.

how can I check if my php is compiled with safe mode on?

thank you.

CyberRanger 07-03-2006 09:45 AM

Quote:

Originally Posted by stonner
the directory is already on 777.

how can I check if my php is compiled with safe mode on?

thank you.

admincp->Maintenance->View PHP Info. In the table "Configuration PHP Core" look for the line safe_mode.

stonner 07-03-2006 10:03 AM

there it shows: safe_mode On (local value) Off (master value).

what does that mean now? can't I use ecDownloads? :(

Snakey 07-03-2006 10:45 AM

Quote:

Originally Posted by stonner
there it shows: safe_mode On (local value) Off (master value).

what does that mean now? can't I use ecDownloads? :(

You could ask your host to change httpd.conf
(They'll need to remove the line admin_php_flag safe_mode on)

CyberRanger 07-03-2006 11:50 AM

1 Attachment(s)
Quote:

Originally Posted by stonner
there it shows: safe_mode On (local value) Off (master value).

what does that mean now? can't I use ecDownloads? :(

Try using the downloads.php file that I've attached here. It may (or may not!) help. If you have ecDownloads Buddy installed, you will need to disable it to properly test this file.

stonner 07-03-2006 12:56 PM

Quote:

Originally Posted by westpointer
Try using the downloads.php file that I've attached here. It may (or may not!) help. If you have ecDownloads Buddy installed, you will need to disable it to properly test this file.

i tried it, but still doesn't work.

Quote:

Warnung: copy(): SAFE MODE Restriction in effect. The script whose uid is 1194 is not allowed to access /home/www/web224/html/forum/downloads/ec_y23 owned by uid 30 in /downloads.php (Zeile 505)

Warnung: copy(./downloads//ec_y23/ecDownloadsII-1[1].0.3.zip): failed to open stream: No such file or directory in /downloads.php (Zeile 505)

Warnung: Cannot modify header information - headers already sent by (output started at /home/www/web224/html/forum/includes/class_core.php:2984) in /downloads.php (Zeile 506)
is there another way?

thank you for your help.


All times are GMT. The time now is 02:22 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.03871 seconds
  • Memory Usage 1,858KB
  • 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
  • (3)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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