Jump to content


Photo

About stretching posts


  • This topic is locked
21 replies to this topic

#1 DS

DS

    Advanced Member

  • Salty Members
  • 26236 posts

Posted 20 February 2006 - 06:55 PM

We tried to fix this with scrollbars but since everyone didn't like it and it had some problems and bugs with different browsers, we removed the feature.

That's why I want to request something. This isn't a rule but I recommend you do this. If your post will stretch the page on 1024*768 resolution, USE THE HIDE TAG because otherwise your post will make viewing the page very annoying. This isn't absolutely necessary if your post stretches the page by a bit but use it as much as possible for easier viewing. We'll see what we can do about the whole stretching problem but this might be the permanent solution as well so get used to this for now.

For those who don't know how the hide tag works:
[hide][/hide]

To Never Be Known Is The Worst Death

#2 dada

dada

    VILLAIN

  • Administrators
  • 17468 posts
  • Locationsuperhell

Posted 20 February 2006 - 07:07 PM

I bet it's because of Internet Explorer. The experimental Rails dating site that I'm working on has div style="overflow-y: auto" and in Internet Explorer it just IGNORES IT!


#3 Jeff

Jeff

    Advanced Member

  • Salty Members
  • 9233 posts

Posted 20 February 2006 - 07:11 PM

I don't see why there is any case you would post a picture that stretches in 1024x768. I mean, the whahay uploader won't take it most likely, so you are either leeching or just being a prick by not resizing it. Even in photoshop topics it hasn't really come up, so I don't see why we should allow massive images at all without a direct link rather than posting in topic.

#4 DS

DS

    Advanced Member

  • Salty Members
  • 26236 posts

Posted 20 February 2006 - 07:12 PM

I don't see why there is any case you would post a picture that stretches in 1024x768. I mean, the whahay uploader won't take it most likely, so you are either leeching or just being a prick by not resizing it. Even in photoshop topics it hasn't really come up, so I don't see why we should allow massive images at all without a direct link rather than posting in topic.

There are many cases like this. Guess the game topic is a good example. Or some other screenshot topic. And text can stretch the page too, not just images. I personally prefer when I don't have to click a link to open an image in a new window. Even without this stretching problem, hide tag is great for images.
To Never Be Known Is The Worst Death

#5 Mateui

Mateui

    Advanced Member

  • Salty Members
  • 12510 posts
  • LocationHalifax, Nova Scotia, Canada

Posted 20 February 2006 - 07:39 PM

Is there any reason why some topics randomly seem to stretch for no reason, while others do not?

For example, I don't know about you, but this topic: http://www.gamingw.n...p?topic=41522.0 stretches for me, even though there's nothing there that should stretch the page width.

[EDIT: Wait a second! I found a common link. StormShadow posted in it, and like before, some of his posts just randomly stretch the page, whereas others do not. I'm on Firefox, by the way. Here, I'll get a pic soon. He's got a marquee in his user title that goes across the whole screen for me.]

#6 DS

DS

    Advanced Member

  • Salty Members
  • 26236 posts

Posted 20 February 2006 - 07:43 PM

I already told you in the site feedback forum, it is because of Stormshadow's custom title.

Opera for the win aightttt
To Never Be Known Is The Worst Death

#7 big ass skelly

big ass skelly

    Advanced Member

  • Salty Members
  • 7865 posts

Posted 20 February 2006 - 07:45 PM

site best bviewed inopera web browesrs experience 10254x768

#8 Shepperd

Shepperd

    Advanced Member

  • Members
  • 10087 posts

Posted 20 February 2006 - 07:45 PM

oh man thanks god you removed this feature

Posted Image


#9 Mateui

Mateui

    Advanced Member

  • Salty Members
  • 12510 posts
  • LocationHalifax, Nova Scotia, Canada

Posted 20 February 2006 - 07:47 PM

Ok I see then. I guess Firefox isn't so good as they say afterall ;_;

I have Opera, except I just don't like to use it. I guess if side-scrolling bothers me too much I'll just browse the forums with Opera and get used to it.

#10 lassekongo83

lassekongo83

    Advanced Member

  • Members
  • 1753 posts
  • LocationGothenburg, Sweden

Posted 21 February 2006 - 01:42 PM

CTRL + F11 in Opera is the best. :D

Btw, I found this Greasemonkey script for Firefox users. It stops page widening caused by code and img tags on a phpbb forum I visit.

// Sweclockers page widening fix

// version 0.6

// 2005-05-23 Sebastian Jansson

// License: Creative Commons Attribution-NonCommercial-ShareAlike License

// http://creativecommons.org/licenses/by-nc-sa/2.0/

// --------------------------------------------------------------------

//

// ==UserScript==

// @name          Sweclockers page widening fix

// @namespace     http://jonex.1go.dk/greasemonkey/

// @description   Stops page widening caused by code and img tags.

// @include       http://forum.sweclockers.com/*

// ==/UserScript==

function addGlobalStyle(css) {

    var head, style;

    head = document.getElementsByTagName('head')[0];

    style = document.createElement('style');

    style.type = 'text/css';

    style.innerHTML = css;

    head.appendChild(style);

}



function addFixStyles() {

    var maxwidth = window.innerWidth - 250;

    var css = "\

    blockquote  {margin: 1em 0.5em 1em 1.5em; padding: 0;}\n\

    pre         { overflow: auto; max-width: 500px; }\n\

    img         { max-width: 500px; }";

    addGlobalStyle(css);

}



function addFixScript(){

    var head, script;

    head = document.getElementsByTagName('head')[0];

    script = document.createElement('script');

    script.type = 'text/javascript';

    script.innerHTML ="\

    function fixWidth() {\n\

        var maxwidth = window.innerWidth - 244;\n\

        var fixRules = document.styleSheets[1].cssRules;\n\

        fixRules[1].style.maxWidth = maxwidth;\n\

        fixRules[2].style.maxWidth = maxwidth;\n    }";

    head.appendChild(script);

}



function fixWidth() {

    var maxwidth = window.innerWidth - 244;

    var fixRules = document.styleSheets[1].cssRules;

    fixRules[1].style.maxWidth = maxwidth;

    fixRules[2].style.maxWidth = maxwidth;

}



//Executes at start:

document.getElementsByTagName('body')[0].setAttribute('onResize','fixWidth();');

addFixStyles();

addFixScript();

fixWidth();

I belive it must be modified. But I leave that to someone with better javascript knowledge than me.

#11 2beers

2beers

    Advanced Member

  • Members
  • 3071 posts
  • LocationNova Scotia

Posted 21 February 2006 - 05:35 PM

Long URLs seem to stretch the pages too.  I believe it is because SMF doesn't automatically shorten them like vB did.  Here's what I mean:

[url=http://aaaaaaaaaaaaaaaaaaaaaaaa.com]aaaaaaa...[/url]

Example.

#12 DS

DS

    Advanced Member

  • Salty Members
  • 26236 posts

Posted 21 February 2006 - 06:50 PM

that just means some people should learn to use URL tags. :(
To Never Be Known Is The Worst Death

#13 2beers

2beers

    Advanced Member

  • Members
  • 3071 posts
  • LocationNova Scotia

Posted 21 February 2006 - 07:12 PM

Yeah, like that will happen.

#14 Kaworu

Kaworu

    Advanced Member

  • Salty Members
  • 17123 posts

Posted 21 February 2006 - 09:20 PM

I changed my thing this morning, so I am not Dr. Evil or anything... ok?

#15 Belross

Belross

    Advanced Member

  • Salty Members
  • 7698 posts

Posted 21 February 2006 - 09:39 PM

Is there a way to automatically resize pictures in posts to prevent them from stretching a page? Then you could click on the image to see the full-sized version.
0-------0
|Belross|
0-------0
Posted Image

#16 hobo2

hobo2

    Advanced Member

  • Salty Members
  • 3361 posts

Posted 22 February 2006 - 12:09 AM

Is there a way to automatically resize pictures in posts to prevent them from stretching a page? Then you could click on the image to see the full-sized version.


Wasn't there someone suggesting the use of that in the Site Feedback Forum a while back, but people were saying that it's not needed or anything?

#17 DS

DS

    Advanced Member

  • Salty Members
  • 26236 posts

Posted 22 February 2006 - 12:13 AM

There was, and it was not needed then. It could be useful now though.
To Never Be Known Is The Worst Death

#18 Lenny

Lenny

    Advanced Member

  • Salty Members
  • 990 posts

Posted 22 February 2006 - 12:13 AM

How about just linking pics that are too big :/

#19 DS

DS

    Advanced Member

  • Salty Members
  • 26236 posts

Posted 22 February 2006 - 12:17 AM

i don't like clicking links

hide tag > links

If you prefer links, no one is stopping you from using links instead of hide tag though!!
To Never Be Known Is The Worst Death

#20 reko

reko

    Advanced Member

  • Administrators
  • 13043 posts
  • LocationFinland

Posted 22 February 2006 - 01:16 AM

I took some time to modify the template..
Now only the post that is too long will stretch.
All other posts will not stretch.

Plus I also found out that there was one extra closing div tag in end of each post, which I think was causing the weird bug in FireFox that sometimes made sigs/etc. span to next post.
Posted Image
big thanx to dragonslayer for sig!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users