Site suggestion: Images...

JasonS

jason-sadler.com
Silver Member
Didn't see a forum for site suggestions anywhere on here so thats one suggestion lol, but back on topic... I've noticed some people like to post images with enormous widths making you have to use the horizontal scroll... I haven't used vbulletin just yet, but using firebug and adding the following css makes the horrizontal scroll disappear and, therefore, makes the pages easier to view with a normal human being's screen resolution...

Code:
.vb_postbit img, img.attach {
max-width:900px;
}

The images maintain their aspect ratios in firefox, but may need the max-height set to auto for the inferior internet explorer browser... but yeah... wouldn't know until you try.

Just a suggestion :smile:
 
Last edited:
That annoys me too occasionally. It also looks kind of ugly when a guy's avatar is wider than the user information bar to the left of their post.
---
Firebug is neat as hell isn't it? I wish they had a feature that lets you change how a site's CSS renders for your browser only... basically allowing you to customize that site for yourself. It would remember your customizations (like that image width tweak) every time you visit.
 
yeah me too lol... simple css and its fixed!

oh and yes... I was thinking about that as I typed this up. Maybe they're working on that because it would make sense. It could get a little confusing with sites you're actually working on... Site looks great and you decide to make it public and you check on it later from another computer and all the css is gone lol.
 
Last edited:
Code:
.alt1 img {
max-width:165px;
height:auto;
}

that would fix avatars :smile:
 
Well, it would help even more if the powers that be could set it up somehow that when someone uploads a photo it automatically adjusts the size to something like 640x480 or 800x600. One of the forums I frequent automatically reduces it down to fit on the page and then you can click on it for full size if you wish to view it like that.
MULLY
 
Right that's always possible... Even if there isnt a lightbox module for vbulletin a couple lines in the corresponding php config files will enable lightbox for clicking on uploaded images... On a site I was working on I realized that if someone made a comment with a large remote image it totally ruined the look of the site, and that is where I implemented that css because there is no way other than css to re-size images from remote locations.
 
...and an upgrade to vb4 would be great! New features include cms, blog, advanced profiles and FaceBook integration, which is going to get real interesting real fast.
 
This is all a little over my head but can't you just re-size the pic in "Paint" before hitting the "submit" button?

Frankly, I've yet to be so engrossed in a thread that I put up with having to scroll left right on to read all the posts. I just lose interest and go find another thread to waste my time in. :D
 
You're one of them with the wide avatars!!!! GRRRRR hahaha

Thats a lot of work lol. I'm sure there are instructions for upgrading the installation, but I could only imagine how much it could suck since the database has to be enormous... might be like one of those situations with christmas lights not working in that you have to go through every bulb to find the one that doesnt work lol. Then again since you pay for the software they should have a hell of a support group.

CSS is such a simple fix... no risk and takes literally 5 minutes at the most.
 
Back
Top