vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Images under attached images do not resize (https://vborg.vbsupport.ru/showthread.php?t=322977)

Edman 07-05-2016 01:18 PM

Images under attached images do not resize
 
1 Attachment(s)
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?

squidsk 07-05-2016 02:03 PM

Why not use thumbnails?

Dragonsys 07-05-2016 04:40 PM

You need an Image Resizer plugin. This is the one I use: https://vborg.vbsupport.ru/showthread.php?t=237650

Edman 07-05-2016 06:26 PM

Quote:

Originally Posted by squidsk (Post 2572815)
Why not use thumbnails?

Because they're tiny?


Quote:

Originally Posted by Dragonsys (Post 2572825)
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

Lynne 07-06-2016 06:17 PM

Can we get a link to view the problem? I'm thinking you could probably write some CSS to fix the issue.

Edman 07-06-2016 06:24 PM

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.


All times are GMT. The time now is 05:31 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.01806 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete