vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Automatically Set Height & Width Attributes to Attached Images (https://vborg.vbsupport.ru/showthread.php?t=271720)

Budget101 10-09-2011 08:30 PM

Automatically Set Height & Width Attributes to Attached Images
 
All image files in the CMS end up saved as "attachments" but when you view the site NONE of the images have height and width attributes- which makes the page rendering speed Drop considerably.

How/what do I need to modify to automatically pick up the height and width of the photos??

Currently when I create an article, add an image, then click on the pencil to choose the size of the image to display as "Thumbnail", "Medium", "Large " or Full Size" - the image displays but without any height & width attributes.

If I choose thumbnail, this is the info that is plugged in after the image source:
PHP Code:

alt="" class="align_left size_thumbnail" border="0" 

It should automatically include the height & width based on each size (thumb, med, lg, Full)
alt="" class="align_left size_thumbnail" border="0" height="150px" width="150px"

Any ideas how to do that??


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