Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2007, 10:17 AM
Cibulo Cibulo is offline
 
Join Date: Dec 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Attachments Bulk download & reupload

Hello, I just switched from phpbb to vb, which I must say is really *amazing*, so far I am totally satisfied for what I've paid.
Anyhow, now I've got an issue, and could be a big one for me.
On my board many people that are not PC experts upload unoptimized images, as heavy as 250kb each. I do not want to prevent them to upload them as they are a great part of my board content and people like that.
When I used phpbb I used to periodically optimize myself all those images, it was a pretty easy task as downloaded a full backup from cpanel, search for the files directory, optimized them with a batch automated process, and then upload again in the same folder overwriting them.
On about 4000 files this saved me more than 300 megs of space in comparison to the original size of the files uploaded by members.

Now, importing to Vb the attachments seemed easy and I can see all of them on my new wb installation.
In the next months people will go on uploading unoptimized attachments which affects both my bandwith and webspace usage.
I logged in via FTP to see the files directory, but there is a strange tree directory, which as far as I have understood reflects folders by userid number, which is split up.
Does this means that now I cannot do anymore what I did before with phpbb?
It would be a big problem for me as I would run out of space for sure in some months
I hope someone will be so polite to help me understand this.
Reply With Quote
  #2  
Old 01-05-2007, 12:20 PM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is an option to automatically resize images that are larger than the allowed size, in the admincp either in "vbulletin options" ...... i cant remember what the exact option group is though.

This way, when a user uploads a file that is 250kb, and 400x400, and your allowed size is set to 20kb and 250x250, vbulletin will automatically resize the users image to fit those parameters.

Which saves YOU a TON of time having to mess with download, resizing, reuploading etc.....
scratch this task off your list of things to do, and use the time for something else.

welcome to the wonderful world of vbulletin
Reply With Quote
  #3  
Old 01-05-2007, 01:02 PM
Cibulo Cibulo is offline
 
Join Date: Dec 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first of all thanks for replying!
The feature you name is surely interesting but I am not sure it will solve my problems.
I do not need to resize in dimensions, just to optimize the weight of each image given his original size.
Can I still get my problem solved? :surprised:
Reply With Quote
  #4  
Old 01-05-2007, 01:59 PM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya, if the user uploads a file that is 250KB, and your max allowed size is 50KB, it will resize it.....

I have to be honest, im only half sure it changes the actual size....but im pretty sure it does.

i am 100% certain that it does change the size if its too big.

otherwise, it will simply tell the user "the attachment you have upload exceeds the maximum allowed file size" and the user simply wont be allowed to upload that file until it is the correct size.
Reply With Quote
  #5  
Old 01-05-2007, 03:23 PM
Cibulo Cibulo is offline
 
Join Date: Dec 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BigJohnny View Post
ya, if the user uploads a file that is 250KB, and your max allowed size is 50KB, it will resize it.....

I have to be honest, im only half sure it changes the actual size....but im pretty sure it does.

i am 100% certain that it does change the size if its too big.

otherwise, it will simply tell the user "the attachment you have upload exceeds the maximum allowed file size" and the user simply wont be allowed to upload that file until it is the correct size.
And if I would like to manually backup all attachments? :hurt:
Reply With Quote
  #6  
Old 01-05-2007, 10:36 PM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im pretty sure there is also an option to store all of the attachments and avatars(seperate options) in the file system instead of the database.

again, not sure if this is an option or a manual task or both.

im sorry im not much help, i know the stuff is there, but i dont use those options and dont really remember where exactly they are located

i belive it is both an option, and a task you can do manually to move the attachments and avatars out of the database and into the file system so you could back them up.

there are also some options you can access through debug mode as to how and where they are stored..... but these are not to be toyed with until you know whats going on, or have some professional help.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:53 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.03623 seconds
  • Memory Usage 2,211KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete