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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2010, 03:50 AM
conquydobk conquydobk is offline
 
Join Date: Dec 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VB 4.1.0 Automatically limited Image resize to 800 pixels?

in my file config.php

// Image Processing Options
// Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings.
$config['Misc']['maxwidth'] = 2592;
$config['Misc']['maxheight'] = 1944;

but in post. It's automatically limited Image resize to 800 pixels?
please help!

this is pissing me off. It seems that 4.1.0 added more to do with the image resizing still.. my images are being resized automatically again even though the above is all still set.

new stylevars were added under 'Common':
image_large_max
image_medium_max
image_small_max

I had to change the image_medium_max to something larger just to get images posted on my forum to be wider than 800 pixels. Why in the world are images being automatically limited to 800 pixels? Please just give us a way to control this in the Admin Control Panel instead of changing this with every version release and not telling us how to turn it off ...
Reply With Quote
  #2  
Old 12-05-2010, 03:12 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look at the css for ".postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img" and you'll see there is a max-width for the image set there. Find the stylevar and change it. This has been around for many releases. In fact, it may have been around since the beginning of vB4.
Reply With Quote
  #3  
Old 12-08-2010, 07:57 AM
Frondy's Avatar
Frondy Frondy is offline
 
Join Date: Feb 2009
Location: Zagreb, Croatia
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Look at the css for ".postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img" and you'll see there is a max-width for the image set there. Find the stylevar and change it. This has been around for many releases. In fact, it may have been around since the beginning of vB4.
Can you help me how to reszize images at visitor messages? Stylevar works fine, but at forum only.

Thanks
Reply With Quote
  #4  
Old 12-08-2010, 12:19 PM
fholbert fholbert is offline
 
Join Date: Nov 2010
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like that feature myself.
Reply With Quote
  #5  
Old 12-08-2010, 01:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Frondy View Post
Can you help me how to reszize images at visitor messages? Stylevar works fine, but at forum only.

Thanks
Post a link to a VM that has an image in it that I can see as an unregistered user and I can take a look. Otherwise, you may be interested in this article to help you find stylevars yourself - How To: Find the correct StyleVar/LayoutVar to edit
Reply With Quote
  #6  
Old 12-09-2010, 08:50 PM
Frondy's Avatar
Frondy Frondy is offline
 
Join Date: Feb 2009
Location: Zagreb, Croatia
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Post a link to a VM that has an image in it that I can see as an unregistered user and I can take a look. Otherwise, you may be interested in this article to help you find stylevars yourself - How To: Find the correct StyleVar/LayoutVar to edit
Well, I must register you to be able to see VM. I can send you login details to your PM.
Similar thing hapend when I Preview Post (or edit), image is at original size, but when I submit post image is resized. Its not the case with VM.
Here is VM case, you can see that image goes to the right, outside the main frame:

Attachment 124334

Postbit sample:
Attachment 124336

Here is same picture at postbit:

PHP Code:
element.style {
    
height533px;
    
width800px;
}
.
postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
    
max-width800px;


and same picture at VM:

PHP Code:
element.style {
    
height608px;
    
width912px;
}
fieldsetimg {
    
border0 none;

Reply With Quote
  #7  
Old 12-09-2010, 09:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then just write some CSS to set a max-width for the images in the VMs, no? Something like:
HTML Code:
#message_list .vm_blockrow img {max-width: 400px;}
Reply With Quote
  #8  
Old 12-10-2010, 05:39 AM
Frondy's Avatar
Frondy Frondy is offline
 
Join Date: Feb 2009
Location: Zagreb, Croatia
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Then just write some CSS to set a max-width for the images in the VMs, no? Something like:
HTML Code:
#message_list .vm_blockrow img {max-width: 400px;}

I put your code in additional.css
It works! Thank you so much!




_
Reply With Quote
  #9  
Old 12-17-2010, 05:48 PM
nick682 nick682 is offline
 
Join Date: Oct 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having similar problems. Is there anyway that I can get images in visitor messages to resize? Like if they are over 600 px then shrink and can be resized.

When I add this: #message_list .vm_blockrow img {max-width: 400px;}
to my additional.css that makes all images over 400px shrink to that size, but you can clink them and make them full size.
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 01:55 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.04063 seconds
  • Memory Usage 2,267KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_html
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_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