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 07-05-2016, 01:18 PM
Edman Edman is offline
 
Join Date: Aug 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Images under attached images do not resize

I'm having a really weird problem.

I run a photo site, we don't use thumbnails, so its really important that large pictures uploaded are resized to browser width.

If I upload a picture and insert it into the post, it will resize correctly as I resize the browser.

Code:
		<div class="content">
			<div id="post_message_639120">
<blockquote class="postcontent restore">
sdgfadgfadgfadfg<img src="http://forum.fourthirdsphoto.com/attachment.php?attachmentid=49911&amp;d=1467730308" border="0" alt="Name:  15-07-01-21-24-40_P7012441.JPG
Views: 8
Size:  570.1 KB"  style="float: CONFIG" />
</blockquote>
			</div>

			


		</div>
If I upload a picture and then leave it there without adding it to the post, it appears in a box, and the picture won't resize


Code:
		<div class="content">
			<div id="post_message_639120">
<blockquote class="postcontent restore">
sdgfadgfadgfadfg
</blockquote>
			</div>

			
			<div class="attachments">

			

			
				<fieldset class="postcontent">
					<legend><img title="Attached Images" src="images/misc/paperclip.png" class="inlineimg" alt="Attached Images"> Attached Images</legend>
					<img class="attach" src="attachment.php?attachmentid=49911&amp;stc=1&amp;d=1467730308" alt="">&nbsp;
				</fieldset>


			</div>
			<!-- / attachments -->
			


		</div>
Instead of resizing, under the post, a navigation bar appears.

You can check the attached images to see the difference.

Tried changing to default skin, no change.

Any ideas?
Attached Images
File Type: jpg Untitled.jpg (68.0 KB, 0 views)
File Type: jpg Untitled2.jpg (78.4 KB, 0 views)
Reply With Quote
  #2  
Old 07-05-2016, 02:03 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not use thumbnails?
Reply With Quote
  #3  
Old 07-05-2016, 04:40 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need an Image Resizer plugin. This is the one I use: https://vborg.vbsupport.ru/showthread.php?t=237650
Reply With Quote
Благодарность от:
MarkFL
  #4  
Old 07-05-2016, 06:26 PM
Edman Edman is offline
 
Join Date: Aug 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
Why not use thumbnails?
Because they're tiny?


Quote:
Originally Posted by Dragonsys View Post
You need an Image Resizer plugin. This is the one I use: https://vborg.vbsupport.ru/showthread.php?t=237650
I don't really think that is the issue. If I copy

Code:
<vb:if condition="$show['imageattachment']">	
	{vb:raw post.imageattachments}
</vb:if>
Into the post, the pictures resize just fine. If I keep them inside the attachments div, they no longer resize.

So I'm now keeping that as a solution
Reply With Quote
  #5  
Old 07-06-2016, 06:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we get a link to view the problem? I'm thinking you could probably write some CSS to fix the issue.
Reply With Quote
  #6  
Old 07-06-2016, 06:24 PM
Edman Edman is offline
 
Join Date: Aug 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I can't give you a link because first I switched to display attachments outside of the attachment box (which "fixed" the issue), but then I switched to simply having large (600px) thumbnails, because while the images resized to page width, they did not resize to screen height.

Ultimately, if a picture is 3:2 aspect ration and a person is on a 16:9 monitor, quite a lot of the picture cannot be seen without scrolling.

I'm still trying to figure out if its possible to resize image height to be under screen height.
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 12:05 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.06140 seconds
  • Memory Usage 2,240KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_code
  • (2)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
  • (1)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete