vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Prevent Oversized Images Breaking Message Tables & Sigs 2.1 (https://vborg.vbsupport.ru/showthread.php?t=110310)

Freesteyelz 04-13-2006 11:40 PM

The "700px" needs to be adjusted accordingly. I only used that number as an example. :)

I had in mind fixed width layouts when I did this mod but I'll run some tests with fluid layouts. :)

Hemanth 04-23-2006 12:19 PM

Hi,

What is this "MAin CSS". Which file?

Freesteyelz 04-23-2006 09:57 PM

In your Admin CP go to:

Styles & Templates --> Style Manager --> All Style Options (select the style you're using) --> Main CSS

Hemanth 04-24-2006 06:48 AM

Quote:

In your Admin CP go to:

Styles & Templates --> Style Manager --> All Style Options (select the style you're using) --> Main CSS
Oh.. Tha k you.. I think it was a file in the clientscripts folder :)

Freesteyelz 04-25-2006 12:53 AM

Nah. If that were the case I wouldn't be able to place this as a template mod. :classic:

SHOBizzy 04-30-2006 03:20 PM

Nice job! Thank you!

But I do have a little issue with the sig area stretching. (screenshot below) The in-post part works flawlessly.

Right now my "additional CSS" for signatures reads:

.hidesig {
width:700px;
height:310px;
overflow:auto;
}

And what happens is the sig area seems to be extended to the set size whether or not there is enough characters to actually fill it. On some people's sigs this is ok, but others it's quite obvious and ever so slightly annoying. :)

http://i70.photobucket.com/albums/i9...sigstretch.jpg

Maybe I missed something in my code that made it mess up. Thanks for any help you can give me.

Freesteyelz 04-30-2006 11:55 PM

You didn't miss anything, actually. :) By defining the height the affected area automatically adjusts to the size, which in your case is 310px. That's just the natural behavior for the value set. The width value was the primary focus for this mod; I added the height upon request. :)

CSS Conditionals and hacks won't work across browsers so it's better to avoid them as I did for the mod. I'm constantly experimenting so if (or when) I come across something of value I'll update this mod or possibly release a new one. :)

SHOBizzy 05-01-2006 09:54 AM

I didn't miss anything. It's a first, mark your calendars. :cool:

Thanks for the info and the hack. :up:

Freesteyelz 05-01-2006 11:14 PM

Hehe. Not a problem and thank you for clicking "Install". :)

kennn 05-03-2006 02:33 AM

I realize I'm a little late to the party on this but I wanted to point out that what was said in a post a couple pages back (and quoted below) is only half correct. You can have multiple classes on an element - it is perfectly legal to do this. The first example in the quote is incorrect as Freesteyelz points out. The second example is okay but adds an unnecessary DIV and extra code. The solution is this:

HTML Code:

<div id="something" class="whatever1 whatever2">$post[message]</div>
Both classes will be used and this is completely acceptable CSS.

Quote:

Originally Posted by Freesteyelz
You cannot place 2 "class" attributes in a a single div tag. This is what you currently have:

Code:

                <!-- message -->
                <div id="post_message_$post[postid]" class="satellite_postbit" class="hidemsg">$post[message]</div>
                <!-- / message -->


If anything replace it with:

Code:

                <!-- message -->
                <div id="post_message_$post[postid]" class="satellite_postbit"><div class="hidemsg">$post[message]</div></div>
                <!-- / message -->




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