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)

MissKalunji 03-14-2006 08:31 PM

Nice!

MissKalunji 03-14-2006 08:31 PM

it would be nice:) if you put all that in a txt so we can download

CyberAlien 03-14-2006 08:33 PM

You should use "class", not "id" for those <div> elements. That template is repeated for every post, so you'll have several divs with same id but every id should be unique so your code isn't correct. And you don't need additional div at all - just add class to existing div.

Freesteyelz 03-14-2006 08:49 PM

Quote:

Originally Posted by MissKalunji
it would be nice:) if you put all that in a txt so we can download

I'll work on it. :)

Freesteyelz 03-14-2006 08:50 PM

Quote:

Originally Posted by CyberAlien
You should use "class", not "id" for those <div> elements. That template is repeated for every post, so you'll have several divs with same id but every id should be unique so your code isn't correct. And you don't need additional div at all - just add class to existing div.


Each ID is unique. Only the front name "hide" remains the same. The reason I didn't use class is that some users, like myself, add additional (and/or common) values to the existing <div> element (e.g., <div id="hidemsg" class="whatever">). The way this modification was written, each modification is independent from one another. This gives the user full control how he/she want to display the messages, signatures, vBadvanced messages and vBadvanced signatures. I just copied and pasted lines of code to make it simple to understand. So the codes are correct.

In the CSS rule, "ID's" can be repeated but "class" cannot within an element.

CyberAlien 03-14-2006 08:58 PM

Quote:

Originally Posted by Freesteyelz
In the CSS rule, "ID's" can be repeated but "class" cannot within an element.

You are confusing those parameters. "class" can be repeated as many times as you want, "id" must be unique per document.
http://www.w3.org/TR/html401/struct/global.html#h-7.5.2

Freesteyelz 03-14-2006 09:21 PM

That's not quite what I meant but I see where you're coming from. In W3C standards you can list similiar ID's such as (e.g., hide1, hide2, hide3, etc...) in the same document. The reason for this is to separate each one from one another. The class element brings common attributes/values into the unique ID's. That's where redundancy of the "class" is usefull.

In the modification I chose (ID's): hidemsg, hidesig, hideadvnews, hideadvsig. All in which are unique. I can now add "class" into the element if I chose to. To test, give each of the 4 modification different values. They will all behave independently from one another. :)

CyberAlien 03-14-2006 10:35 PM

That template is used for every post in thread, so those ids are repeated as many times as many posts are shown, so ids are not unique.

Freesteyelz 03-14-2006 11:29 PM

Interesting point in which I had not considered. Updating now...

Freesteyelz 03-14-2006 11:43 PM

Thank you CyberAlien for sticking with me on this mod. I've made the corrections on both install instructions. :)

*I sent an update to those who've installed this mod prior to the change.


All times are GMT. The time now is 03:41 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.01171 seconds
  • Memory Usage 1,739KB
  • 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_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