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 12-01-2008 10:00 PM

Control signatures height per pixel with CSS
 
1 Attachment(s)
This mod will help you determine a fixed height for signatures in posts with CSS to prevent members from having a large annoying signature. (it will cut from the signature and hide the rest of it) - screenshot attached.

Long signatures and signatures with alot of images will not be an issuse anymore!


INSTALLATION


EDIT postbit OR postbit_legacy (which you use) and search for:

HTML Code:

$post[signature]
Replace it with

HTML Code:

<div class="fixedsig">$post[signature]</div>
Then go to the style option and add these lines in the CSS

HTML Code:

.fixedsig {
max-height:250px;
height:expression((document.documentElement.clientHeight) > 250? "250px" : "100%");
overflow:hidden;
}

You can change the 250 to the height you want (per pixels)

And you're done!


SUPPORT


Please click Mark as Installed if you want to get support for this mod.

Leo Brazil 12-03-2008 10:26 AM

Great idea. I going to check this out.

TomJames 12-12-2008 03:17 PM

Awesome.

Mazinger 12-12-2008 03:31 PM

If you have installed it, then click Mark as Installed please. :)

TomJames 12-12-2008 06:36 PM

Just finished installing it, works perfectly and very easy to install. Thanks.

Mike08 12-27-2008 11:18 PM

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%"); }


Mazinger 12-28-2008 12:57 PM

Well, I could add a width control too, but I decided to leave it to image resize mods; they would give better results for width control.

Mike08 12-28-2008 08:01 PM

I have the ncode image resizer installed but don't work in signatures images. I think the best way to have a well-organized forum :D.

I have users who have reached 1,200px width pictures in signatures :eek:

And vBulletin can only limit the size of attached images, not the bbcodes.

Anyway, thanks again :up:

Boosted Panda 12-30-2008 09:02 PM

Great one Ill try this later!

RocCityDad 01-19-2009 06:39 PM

Hi I am new to vbulletin.. where do I go to make this edit.. thanks


All times are GMT. The time now is 06:32 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.02080 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_html_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