vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Blog Fixed Width For Embeded Images (https://vborg.vbsupport.ru/showthread.php?t=287813)

420 09-13-2012 10:34 PM

Blog Fixed Width For Embeded Images
 
Is there a plugin to stop photo comments in blogs from going outside of the fixed width area?

Thank you so much.

BirdOPrey5 09-17-2012 10:55 AM

This is something easily controlled with a little custom CSS.

In your browser (Chrome in this example)

Browse to a blog with an image that is too big, right click on it and choose "Inspect Element"

There will be the css needed to apply to blog images, it is something that ends in img like:

.blogcontent img {

So in additional.css template add code like this:

Code:

.blogcontent img { max-width: 800px !important; }
That will make the max width of any image in a blog 800 pixels wide, change the value to suit your needs. !important means it should override any other value if this value is set elsewhere in the code.

Note- this is for inline images using the [IMG] tag. You may need a separate line for attached images- follow the same basic instructions.

420 09-17-2012 11:19 PM

--------------- Added [DATE]1347939861[/DATE] at [TIME]1347939861[/TIME] ---------------

My developer says it's not working. Blogs have fixed width for images, however blog comments still do not restrict the width on large images.

BirdOPrey5 09-18-2012 11:58 AM

Oh that was for the blogs not blog comments. If you can link to a page I can get the correct code.

420 09-18-2012 08:31 PM

we figured it out, thanks. :)


All times are GMT. The time now is 10:51 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.01032 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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