vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Resize Images Zero Query (https://vborg.vbsupport.ru/showthread.php?t=233166)

dlan 01-15-2010 04:47 PM

Quote:

Originally Posted by elwachiman (Post 1956458)
good modification but affects postbit_legacy custom images affect avatars and user ranks, if only reduced the images in the post would be perfect .. can fix that part so that the images will not affect the ranges or avatars, thanks

Code:

.postbody IMG{ 
    max-width: 85%; 
    height: expression(this.height > 100 ? "100px" : true); 
    width: expression(this.width > 100 ? "100px" : true); 
}

.postbody instead of .posts but i don't suggest using css expressions. If many images are used on a page it will cause a small freeze to users with not so good PCs.

elwachiman 01-15-2010 05:43 PM

just what I say is that it would be good to just reduce the images in the showthread ..
edit

. this was what I wanted to put that code thanks dLAN and worked to perfection only reduces the images in postbody .. xd

Code:

/* BEGIN Image resize */ 
.postbody IMG{ 
    max-width: 85%; 
    height: expression(this.height > 100 ? "100px" : true); 
    width: expression(this.width > 100 ? "100px" : true); 
}

/* END Image resize */


Charlie98902 01-15-2010 06:13 PM

dlan's css additional does just that. go to post.css and or postbit_legacy.css and put that css code at the very bottom. I tested it and it works.

Charlie98902 01-15-2010 09:19 PM

Quote:

Originally Posted by elwachiman (Post 1956718)
just what I say is that it would be good to just reduce the images in the showthread ..
edit

. this was what I wanted to put that code thanks dLAN and worked to perfection only reduces the images in postbody .. xd

Code:

/* BEGIN Image resize */ 
.postbody IMG{ 
    max-width: 85%; 
    height: expression(this.height > 100 ? "100px" : true); 
    width: expression(this.width > 100 ? "100px" : true); 
}

/* END Image resize */


What's the difference between yours and dLAN's? All you added was begin and end to the code. Also is yours inserted into the postbit or postbit_legacy.css?

elwachiman 01-15-2010 09:29 PM

Quote:

Originally Posted by Charlie98902 (Post 1956883)
What's the difference between yours and dLAN's? All you added was begin and end to the code. Also is yours inserted into the postbit or postbit_legacy.css?

the difference is the reduced dLAN code images of customized ranges postbit avatars in user code and the other only the pictures of the postbody information. the code is placed at the end of postbit.css

Charlie98902 01-15-2010 09:53 PM

Thanks

kokotitokoko 01-16-2010 10:27 AM

lol ....
It seems to me that what made a good I did not imagine Malk
Google Translation

dsvarups 01-16-2010 07:25 PM

Can this work on the blogs too, the images do not resize on members blogs?

rajubd 01-17-2010 06:46 AM

not working image size remain same
this is what i want
see screenshot :
https://vborg.vbsupport.ru/
with the images have 1000 pixels & over , they re overflowed .... look not beautiful
i want they remain within vb
like this website
http://www.vbstyles.com/forum/showthread.php?&t=6369

kokotitokoko 01-17-2010 07:02 AM

1 Attachment(s)
Quote:

Originally Posted by rajubd (Post 1957946)
not working image size remain same
this is what i want
see screenshot :
http://c.uploadanh.com/upload/2/255/...715_8050_1.jpg
with the images have 1000 pixels & over , they re overflowed .... look not beautiful
i want they remain within vb
like this website
http://www.vbstyles.com/forum/showthread.php?&t=6369

tray these

headinclude TEMPLATE

INSERT AT END OF TEMPLATE:

PHP Code:

<link rel="stylesheet" href="clientscript/eslamhero.css" type="text/css" /> 

and upload files


All times are GMT. The time now is 06:14 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.01120 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete