![]() |
Only installed the signature portion because the rest screwed up my showthread.
changed to: Code:
.hidesig { Am I still allowed to click install? :D |
Sure. :)
How did it affect your Showthread? |
it did the same thing to mine
stretched it out so far even when I took out the code it was still messed up I only tested it on default anyway so just reverted it and is there anyway to have scrolling bars with the hide sig, not sure if it was suppost to be in there already or not |
To have scrolling in sigs just replace "hidden" with "auto".
With reference to the stretching I'll need to see a screenshot of the problem and the code bit(s) used. It shouldn't have done that. |
Excellent, thanks!
PS: The "fluid" version in post #27 does not work in IE for me, so I kept the original version. |
Thanks, definitely one of the best mods;)
|
Thanks, Herc. :)
Quote:
|
Thanks! Installed.
|
Thanks, RDX1. :)
|
Thanks for sharin your work!!!!:banana:
|
Is there a way so scrollbars wont apear, and just resize the images? Thank you
|
COBRAws: Not with this mod. You can find what you're looking for in the Code Modifications.
tonym: NP. :) |
This is great, thanks
|
Is it possible to have a vertical scrollbar as well? It's annoying when someone posts a 1000px image. :D
|
beano33: Sure, the mod is quite flexible. As in the example of the sig mod, just add the "height" attribute and remove "overflow-x" and "overflow-y" such as:
Replace: Code:
.hidemsg { Code:
.hidemsg { *The only reason I did not set a height limit is because there will be some posts that will be extensively long which are valid such as articles, tutorials and reviews. See, both image and text will be affected in the post that is being enforced. Xplorer4x4: Thanks for the support. :) |
Sorry to say that this dont work if you have more that one image oversized in the same post only the last image has scrollbar:(
|
Quote:
Anyway, I ended up creating a new bbcode based on this thread to deal with oversized images: https://vborg.vbsupport.ru/showthread.php?t=94250 |
Quote:
Can you please send a screenshot, the codes and the browser so I can try and duplicate your problem? |
Quote:
Hmm. I'll look into it and post back with an update. My test will be exclusive to fluid width layouts. |
Quote:
Also, a fixed width of "700px" messes up my PMs. For now I'm using "100%", at least my FF users are happy and the IE users still get the same as before. |
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. :) |
Hi,
What is this "MAin CSS". Which file? |
In your Admin CP go to:
Styles & Templates --> Style Manager --> All Style Options (select the style you're using) --> Main CSS |
Quote:
|
Nah. If that were the case I wouldn't be able to place this as a template mod. :classic:
|
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. |
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. :) |
I didn't miss anything. It's a first, mark your calendars. :cool:
Thanks for the info and the hack. :up: |
Hehe. Not a problem and thank you for clicking "Install". :)
|
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> Quote:
|
You're correct Kenn in that multiple classes can be done by placing a space between them. The problem, however, is that not all browsers will render it the same way (one reference is with IE 6 and IE 7); I'm referring to cross-variables and inheritance. Since I did not know what was contained in "satellite_postbit" the safer route was to use two <div> tags.
My statement was a bit misleading so I thank you for the clarification. Ohh and thank your for clicking "Install". :) |
Quote:
Quote:
|
Yup. I need to be careful with my choice of wording (and spelling). :)
There's a powerful quality with CSS and like yourself I'm constantly finding new ways of implementing it. I'm glad to see another user who appreciates CSS and customizes it to suit his/her needs. :classic: |
Hey, this works just great in normal posts but it messes up the private messages. I have only modded the postpit legacy and added the css. It streches all private messages even though there is no pictures in them. First I didn't believe it was because of this, but after removing the CSS all pm's showed fine again... and put it back and again they streched, probably to the width set in the css.
Any ideas?? |
I ran into this, too. My first thought was to change width to auto, which seemed to work fine for any skin no matter how wide or narrow the post area and also for PMs but then I tried it in IE and discovered that, without a specific pixel width declared, IE does not display a scrollbar and merely pushes the post area wider.
What I then did was go back to using an actual pixel width (which I also discovered needs to be figured out individually per skin or things like CENTER tags do not look centered) and then added the conditional around class shown below... Code:
<div id="post_message_$post[postid]" class="someclassname<if condition="THIS_SCRIPT != 'private'"> hidemsg</if>">$post[message]</div> If you do not already have a class in there, it would look like this... Code:
<div id="post_message_$post[postid]"<if condition="THIS_SCRIPT != 'private'"> class="hidemsg"</if>>$post[message]</div> |
Yeah that works, thanks!
|
sorry noob question??
whats main CSS?? you on about vbulletin_editor.css? |
@Smiry Kin's: Main CSS is located in...
Admin CP --> Styles & Templates --> Style Manager --> All Style Options --> Main CSS Go all the way to the bottom for Additional CSS Definitions. :) Quote:
|
Another noob question, where is postbit legacy located? Also I added the following to my additional css
PHP Code:
|
The codes are in two parts for each postbit that you want to control the images in. Without the postbit code it won't work. The CSS you've posted is for vBadvanced CMPS. That code is strictly for the Portal's news section.
For postbit_legacy, in your Admin CP go to: Styles & Templates --> Style Manager --> All Style Options --> Edit Options --> Postbit Templates --> postbit_legacy If you still need help let me know and I'll help you through it. :) |
All times are GMT. The time now is 01:04 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:
|