![]() |
Nice!
|
it would be nice:) if you put all that in a txt so we can download
|
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.
|
Quote:
|
Quote:
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. |
Quote:
http://www.w3.org/TR/html401/struct/global.html#h-7.5.2 |
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. :) |
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.
|
Interesting point in which I had not considered. Updating now...
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|