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)

Gaia 09-06-2006 01:18 AM

hey, might be a bad question, but does this work on vB 3.6.0?

Thanks.

DementedMindz 09-06-2006 01:38 AM

Quote:

Originally Posted by Gaia
hey, might be a bad question, but does this work on vB 3.6.0?

Thanks.

nah no question is ever a bad one or else we wouldnt learn. but yes it does im using it on mine right now along with others.

Gaia 09-06-2006 03:14 AM

Quote:

Originally Posted by DementedMindz
nah no question is ever a bad one or else we wouldnt learn. but yes it does im using it on mine right now along with others.

Thanks Demented ^_^.

njolakoski 09-07-2006 01:03 AM

how does one update the php.ini file so it can take files over 5mb?

CyberRanger 09-07-2006 01:40 AM

Quote:

Originally Posted by njolakoski
how does one update the php.ini file so it can take files over 5mb?

Don't mess with php.ini. Do this:

Quote:

Originally Posted by westpointer
php has a limit. To over-ride it, add this to your .htaccess file in the same folder that downloads.php is in.

Code:

php_value upload_max_filesize 25M
php_value post_max_size 25M

change the 25M to whatever you'd like it to be.


footose 09-07-2006 05:19 AM

Is there a way to make DownloadsII an actual forum, instead of always accessing it from www.mysite.com/downloads.php, but have it actually listed as a 'forum' on the main page of vbulletin?

CyberRanger 09-07-2006 11:14 AM

Quote:

Originally Posted by footose
Is there a way to make DownloadsII an actual forum, instead of always accessing it from www.mysite.com/downloads.php, but have it actually listed as a 'forum' on the main page of vbulletin?

Sure, you can do that for any link. When you create the forum, simply put the url to the downloads.php page in the "Forum Link" field.

AyeCapn 09-07-2006 04:07 PM

This is very slick. Thanks a lot :)

njolakoski 09-07-2006 10:00 PM

I dont have a .hta acces file with it........ hmm

DementedMindz 09-07-2006 10:02 PM

Quote:

Originally Posted by njolakoski
I dont have a .hta acces file with it........ hmm

you have to add that to your htaccess

njolakoski 09-07-2006 10:08 PM

Where is it though is my question..........

DementedMindz 09-07-2006 10:11 PM

in your root folder unless you have windows hosting

njolakoski 09-07-2006 10:15 PM

I have linux hosting and i see nothing in my root folder for htaccess

DementedMindz 09-07-2006 10:18 PM

you need to make a htaccess file in your root with that info in there to increase your upload limit.

DementedMindz 09-07-2006 10:19 PM

you more then likely have one in there just you cant see it. check in cpanel and view your root folder you should see it.

njolakoski 09-07-2006 10:23 PM

WEll its not there, so how do i make one , just enter that code in then press Save As htaccess.php?

DementedMindz 09-07-2006 10:27 PM

did you check from cpanel to make sure its not there? if not make a file in your root folder and name it .htaccess and make sure its chmodded to 644

njolakoski 09-07-2006 10:30 PM

I use godaddy they dont have Cpanel.......

And ChMOdded to 644? I upload files through IE, is there awayt to CHMOD it to 644 through that?

DementedMindz 09-07-2006 10:32 PM

ahh thats why you dont see it. get a ftp client and use that its so much easier esp. when you want to add things.

njolakoski 09-07-2006 10:42 PM

I would but I have 56K and you try download something on 56k lol

DementedMindz 09-07-2006 10:50 PM

it wont take long there not big you can get alot of free ones out there that are small.

njolakoski 09-07-2006 11:21 PM

Okay got one, but i see no way of chmodding it and I see now File calle htaccess

Draygonia 09-07-2006 11:57 PM

Warning: Invalid argument supplied for foreach() in /admincp/downloadadmin.php on line 366

Thats what I get when I try to import files from my server... Also, where can my users access the downloads section? There are no navbar edits :(

OziloZ 09-08-2006 01:32 AM

Its perfect.I have a question.
How can i change width of the main table?

RS_Jelle 09-08-2006 05:20 AM

Quote:

Originally Posted by njolakoski
Okay got one, but i see no way of chmodding it and I see now File calle htaccess

It's not htaccess, but .htaccess (a small difference, but otherwise it won't work) ;)

Quote:

Originally Posted by Draygonia
Warning: Invalid argument supplied for foreach() in /admincp/downloadadmin.php on line 366

Thats what I get when I try to import files from my server... Also, where can my users access the downloads section? There are no navbar edits :(

I will look at the PHP warning this evening.

The navbar edit will be included in the 5.0.3:
Quote:

Find in the navbar template:
HTML Code:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
Add below:
HTML Code:

<td class="vbmenu_control"><a href="downloads.php?$session[sessionurl]">$vbphrase[ecdownloads_downloads]</a></td>

Quote:

Originally Posted by OziloZ
Its perfect.I have a question.
How can i change width of the main table?

Can you explain this a bit? Do you mean the right column? It's just 28% width for the left column and 72% width for the right ("main") column. You can change those values in the templates to other percentages or absolute ones :)

footose 09-08-2006 05:51 PM

Quote:

Sure, you can do that for any link. When you create the forum, simply put the url to the downloads.php page in the "Forum Link" field.
Got it! Thanks!

Another thing I found was, when you import files with a " ' " (single quote) , the import fails... is there a work around?

RS_Jelle 09-08-2006 06:37 PM

Quote:

Originally Posted by footose
Another thing I found was, when you import files with a " ' " (single quote) , the import fails... is there a work around?

Can you give the exact PHP error/warning you get? :)

Draygonia 09-08-2006 09:38 PM

I had to move the downloads.php file to my public_html/ folder so it would work, but when I do click on it, it gives me this error...

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/chasmonl/public_html/downloads.php on line 121

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/chasmonl/public_html/downloads.php on line 121

Black Tiger 09-08-2006 10:57 PM

Are these a bugs? Or do I do something completely wrong?
I changed my download directory in the settings to another download directory on my server, i removed the "." in the beginning and stated the full relative path with a trailing slash like:
/home/domains/mydomain/public_html/downloads/
Without the trailing slash, files won't be imported but then I get a error notice.

With trailing slash it works but the following things amaze me a littlebit:

1.) Files are imported in my downloads directory but not in a categorie subdirectory, this is the correct working?

2.) When setting up for the first time and filling, the column on the left with "Top Contributors" show random users with 0 uploads, amongst them are also users which do not even have upload access for the files?
I can't imagine that this should be the case.

3.) If you import the same file twice, there is no warning about the file already existing, but the file simply get's visible twice in the download section, also named exactly the same.

So if anybody can help me with mainly question 2 and 3 (and a little bit question 1)?

Black Tiger 09-09-2006 12:03 AM

Hmmz.. found a 4th one also.
4.) When importing, .gif images are not displayed (so also not imported) in spite of the fact that image uploads are set as allowed as well in settings as also in the usergroup administrators.

njolakoski 09-09-2006 12:10 AM

Question, how, and where do I mod it so it can also display the author along with the filename?

And I would also like to change where it says Author to Artist .... and Filename to Title...

Thanks!

njolakoski 09-09-2006 12:26 AM

Another Thing, on my site, my users cant upload things over 2mb's even wiht the .htaccess file whats with this?

Black Tiger 09-09-2006 12:27 AM

You can mod it in the import part, when you import a file, you can give a name in the "author" field next to filename.
Also when you login to the download section you can edit all descriptions if you have give yourselve rights to do that in your usergroup.

If your users can't upload more then 2 mb, you have to contact your hoster or have root acces to the server. Such things are setup in php.ini and mostly also in httpd.conf (apache webserver configuration).

Robbed 09-09-2006 12:59 AM

In this version, does it add files to subfolders in the downloads folder.

The download folder is quite full and takes forever to backup.

Black Tiger 09-09-2006 01:14 AM

See my point 1 a few threads above your's. So no... it does not add files to subfolders in the downloads folder.

Draygonia 09-09-2006 01:15 AM

Anyone know how to fix this? It should be something simple, but yet I cannot figure it out!

I had to move the downloads.php file to my public_html/ folder so it would work, but when I do click on it, it gives me this error...

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/chasmonl/public_html/downloads.php on line 121

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/chasmonl/public_html/downloads.php on line 121

njolakoski 09-09-2006 03:42 AM

Quote:

Originally Posted by Black Tiger
You can mod it in the import part, when you import a file, you can give a name in the "author" field next to filename.
Also when you login to the download section you can edit all descriptions if you have give yourselve rights to do that in your usergroup.

If your users can't upload more then 2 mb, you have to contact your hoster or have root acces to the server. Such things are setup in php.ini and mostly also in httpd.conf (apache webserver configuration).

Can someone help me with this, becuase I see a php.ini file on my server, just dont know what to edit, or how..

And also, where and how to edit my import file, Im a complete noob at this stuff...sorry for the questions..

DementedMindz 09-09-2006 05:49 AM

First we need to locate the php.ini file.
-----command-----
locate php.ini
-----command-----

For cPanel the correct file is /usr/local/lib/php.ini. The standard location for most other servers is /etc/php.ini. Go ahead and open the php.ini file.

-----command-----
pico -w /etc/php.ini
-----command-----

or for cPanel
-----command-----
pico -w /usr/local/lib/php.ini
-----command-----

once there press control + w and search for upload_max_filesize change that to 10M if you want it to be 10 Megabytes.

once you change that and have it set to 10M press control + x then it will ask you if you want to save it press the y to save the changes and reboot apache.

-----command-----
service httpd restart
-----command-----

hope it helps.

footose 09-09-2006 06:05 AM

Quote:

Can you give the exact PHP error/warning you get?
Absolutely!

Click Downloads
Click Import
Enter Directory
Click Import
Click the file you want to import, with an ' in it, in this case...

Lil' Kim_Slippin'.mp3

Select Category
Click Import Files

Error at top of screen
Quote:

Warning: filesize(): Stat failed for /home/moforums/public_html/import/Lil\' Kim_Slippin\'.mp3 (errno=2 - No such file or directory) in /admincp/downloadadmin.php on line 434
Error in details box
Quote:

The following files were successfully imported:
Could not import the following files because the import file could not be read or the export file could not be written to: Lil\' Kim_Slippin\'.mp3
All other files upload properly and without problems.

Great mod btw :D

RS_Jelle 09-09-2006 07:25 AM

Quote:

Originally Posted by Draygonia
Anyone know how to fix this? It should be something simple, but yet I cannot figure it out!

I had to move the downloads.php file to my public_html/ folder so it would work, but when I do click on it, it gives me this error...

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/chasmonl/public_html/downloads.php on line 121

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/chasmonl/public_html/downloads.php on line 121

You need to upload it to your forum folder (vBulletin installation), not to your root folder (like you can do with vBadvanced CMPS). So http://www.chasm-online.com/forum/downloads.php is the correct url :)

Quote:

Originally Posted by njolakoski
Question, how, and where do I mod it so it can also display the author along with the filename?

And I would also like to change where it says Author to Artist .... and Filename to Title...

I don't understand your first question, can you explain it a bit?

All text is phrased, so you can edit it using Languages & Phrases in your AdminCP.

Quote:

Originally Posted by Black Tiger
Are these a bugs? Or do I do something completely wrong?
I changed my download directory in the settings to another download directory on my server, i removed the "." in the beginning and stated the full relative path with a trailing slash like:
/home/domains/mydomain/public_html/downloads/
Without the trailing slash, files won't be imported but then I get a error notice.

With trailing slash it works but the following things amaze me a littlebit:

1) Files are imported in my downloads directory but not in a categorie subdirectory, this is the correct working?

2) When setting up for the first time and filling, the column on the left with "Top Contributors" show random users with 0 uploads, amongst them are also users which do not even have upload access for the files?
I can't imagine that this should be the case.

3) If you import the same file twice, there is no warning about the file already existing, but the file simply get's visible twice in the download section, also named exactly the same.

So if anybody can help me with mainly question 2 and 3 (and a little bit question 1)?

At the moment, you have to specify a directory in your forums directory (or your root if you don't use a forums directory for vBulletin), so you have to use the ".". It's used also for the image paths, ..., so you can't use an absolute path.

1.) Currently this is the correct working way. This is also flagged for a future big release.

2.) The query needs to get 4 contributors for this list. The query gets 4 names ordered on the amount of files they have added. If there aren't any people who added files, 0 files is the "highest amount", so it gets randomly 4 names with 0 files. If there won't be 4 people in the future with more than 0 files, just change the amount in the settings.
I've put it on my todo list, will be fixed in a future release ;)

3.) The next big release will contain a check for the file link (this was already on my todo list), not for the name. Some people are using the same name twice, just like the topic name on the forum.
Quote:

Originally Posted by Black Tiger
Hmmz.. found a 4th one also.
4.) When importing, .gif images are not displayed (so also not imported) in spite of the fact that image uploads are set as allowed as well in settings as also in the usergroup administrators.

You need to put gif in the Allowed File Extensions list, the Allowed Image Extensions is a different list. That one is used only for adding images to the file (underneath the description).

@footose: thanks, I will take a look at it.


All times are GMT. The time now is 05:52 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.02777 seconds
  • Memory Usage 1,847KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (20)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