vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Display Enhancements - Very simple image resize (CSS only) (https://vborg.vbsupport.ru/showthread.php?t=127266)

OsMoSiS.it 09-21-2006 10:00 PM

Very simple image resize (CSS only)
 
Simply put this piece of code into "Additional CSS Definitions" under Style Manager -> Main CSS of the template you want this mod apply to.
Code:

/* BEGIN Image resize */
#posts IMG
{
    max-width: 700px;
    width: expression (this.width > 700 ? "700px" : true);
}

#collapseobj_threadreview IMG {
    max-width: 700px;
    width: expression(this.width > 700 ? 700: true);
}
/* END Image resize */

Tested with Firefox 1.5 and IE 6.0.

This works also with VBulletin > 3.0.0.

PabloAM 09-22-2006 03:28 PM

screenshot???

Thanks!

Allan 09-22-2006 03:51 PM

Demo please ?

Icheb 09-22-2006 04:06 PM

Quote:

Originally Posted by PabloAM
screenshot???

Thanks!

Don't you people have any imagination? It's a resized image fcol. :tired:

bashy 09-22-2006 04:09 PM

Demo? it just resizes the images dont it, surely you wont any thing from a demo or screener

I take it this resizes the image regardless?
Does this effect signatures like some of the other image sizers have in the past?
Des it effect other images that maybe on the site, such as in the navbar?

oh bugger it, i will just try it out myself lol

bashy 09-22-2006 04:14 PM

Installed anyway, I dont think it actually does out on my site due to using a lightbox mod, but hell its in there and stay nowing, /me clicks install!

Thanks!!

gael11 09-22-2006 05:15 PM

Works fine !!! Excellent !!!
Thank you

pauloo 09-22-2006 05:33 PM

Thanks ! nice job

works with Firefox 1.5 but and not IE 6.0

hnjco 09-22-2006 09:02 PM

Thanx for this

Work fine in Firefox 1.5 and IE 7.0

OsMoSiS.it 09-25-2006 12:04 PM

Quote:

Originally Posted by bashy
I take it this resizes the image regardless?
Does this effect signatures like some of the other image sizers have in the past?
Des it effect other images that maybe on the site, such as in the navbar?

It resizes ONLY images within postbit, so the answers are "yes" and "no" :)

Why do you allow large images in signatures but not in posts? Wide signature images increase also post width, so allowing that is useless.



I don't have lightbox mod, can you post me a link to see it in action?


All times are GMT. The time now is 02:40 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.01116 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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