vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Control signatures height per pixel with CSS (https://vborg.vbsupport.ru/showthread.php?t=197825)

Mazinger 03-01-2009 06:35 PM

I would recommend using an image resizer mod for this.

trotskid 03-01-2009 06:53 PM

ImageResizer don?t works very well on my forum (3.8.1) :S. Instead of this I use Resize IMG tag with Highslide but only for images.

Thanks anyway, and thanks also for this hack ;)

HolyKiller 03-09-2009 10:22 AM

Quote:

Originally Posted by Mazinger (Post 1757773)
I would recommend using an image resizer mod for this.

This is 100% better cos this restriction crop (or scrool) EVERYTHING, not only IMG tags. Even texts, hyperlinks, quote/code bars ... everything. So the signature is strictly cut everything larger than XXX px.

Love this hack :p

Mazinger 03-09-2009 09:11 PM

Love your comment too. ;)

Pteppic 03-28-2009 09:59 PM

1 Attachment(s)
I'm getting different problems with IE and Firefox. In the former, the signatures that are within the limit are stretched to fit it. This is not a problem in Firefox, although youtube videos embedded in signatures (by specialised bbcode) bleed over into the post below (or whatever's there). I suppose the embedding html overrides the mod somehow, but as a complete CSS noob, I haven't a clue how to fix it, and the IE stretching thing I can't figure out at all. (Screenshots attatched)

Mazinger 03-29-2009 02:11 PM

I think my mod have no control over flash objects in Firefox, may be there's something that can be done to solve it - I don't it now, sorry!

Pteppic 03-29-2009 06:36 PM

Well, necessity is the mother of invention :p , and I managed to find some solutions on my own - I set the wmode parameter in the embedding code to opaque and used "this.scrollHeight" in the css instead of "(document.documentElement.clientHeight)".

Mike08 04-12-2009 09:23 PM

Quote:

Originally Posted by trotskid (Post 1757524)
Thank you Mazinger!

It?s posible to limit also the width?

Greetings

Quote:

Originally Posted by Mike08 (Post 1695146)
Thanks!!! It works! ;)

I needed a code to modify the width of the signature. So with your permission I have adapted to modify the code in height and width.

Here it is. Example with 800x300px.

HTML Code:

.fixedsig {
max-width:800px;
width:expression((document.documentElement.clientWidth) > 800? "800px" : "100%");
overflow:hidden;

max-height:300px;
height:expression((document.documentElement.clientHeight) > 300? "300px" : "100%"); }


Here it is :D

****IMPORTANT: Place this code at very top of CSS.

EvilJohn 04-26-2009 05:05 PM

Thank you. Works very well. :up:

HayleyP 08-17-2009 06:38 AM

I used the "scroll" instead of "hidden" but how do I make it so if the signature is the right size, you can't see the scroll bars?


All times are GMT. The time now is 06:11 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.01086 seconds
  • Memory Usage 1,742KB
  • 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_html_printable
  • (3)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