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)

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 09:05 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.03682 seconds
  • Memory Usage 1,757KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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