Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: 1979Z28 on April 25, 2004, 02:43:12 AM

Title: Code Block Scrollbars
Post by: 1979Z28 on April 25, 2004, 02:43:12 AM
Meh, seeing as how I've seen a few odd signatures around with scrollbars on them, and taking a look at some huge-ass code listing in the code function, I'm gonna make the suggestion, of adding the scrollbars to THAT part of the code, somehow, if possible. It's really annoying to have somebody post up something huge, and then have to use the scrollbars to read the rest of the posts...  :'(
Title: Re: Code Block Scrollbars
Post by: [Unknown] on April 25, 2004, 02:44:11 AM
Umm... scroll bars... are used.  I'm nto sure what you're talking about.

-[Unknown]
Title: Re: Code Block Scrollbars
Post by: A.M.A on April 25, 2004, 03:05:20 AM
testing
1
2
3
4
5
6
7
8
9
10
11
1
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42





i guess like this one :)
Title: Re: Code Block Scrollbars
Post by: 1979Z28 on April 25, 2004, 03:14:08 AM
Get what I mean now? ;)

Would it be possible, to somehow detect and add a scroll bar to posts go excessively too far to the right, thus screwing up the rest of the posts on that page of the thread?
Title: Re: Code Block Scrollbars
Post by: A.M.A on April 25, 2004, 03:18:23 AM
Quote from: 1979Z28 on April 25, 2004, 03:14:08 AM
Get what I mean now? ;)

Would it be possible, to somehow detect and add a scroll bar to posts go excessively too far to the right, thus screwing up the rest of the posts on that page of the thread?
??? they do got a scroll bar 
Title: Re: Code Block Scrollbars
Post by: 1979Z28 on April 25, 2004, 03:20:02 AM
Fneh.

I see that the browser automatically adds a scrollbar when somebody posts something huge, like I just did.

What I MEAN, is ON THAT POST, to add a scrollbar. If you check my forum (http://www.ufba.org/forum/index.php), you'll see that in cases of an avatar that is slightly too big, it will have a scrollbar added to it. It keeps the post, and other posts resized the same, and it also allows people to view the whole avatar, if they wish.

Was just thinking that this might be transferred over to the message body, such as in cases of huge-ass code listings.
Title: Re: Code Block Scrollbars
Post by: 1979Z28 on April 25, 2004, 03:22:45 AM
...

Ugh, I'm an idiot, heh.

Sorry Unkown and AMA :P Didn't notice that the default theme already had this enabled. Since I'm using the old YaBB SE theme, I didn't think of checking the other one... :-X

This 'idea' has already been added with the default template shipped out.. :-X

Any chances of adding it here, like to the default YaBB SE Theme? ;)

Sorry :-X Go ahead and lock this if need be, a suggestion/idea that's already implimented..
Title: Re: Code Block Scrollbars
Post by: A.M.A on April 25, 2004, 03:43:39 AM
in Display.template.php look for
// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
', $message['body'], '

and replace it with
// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">', $message['body'], '</div>
Title: Re: Code Block Scrollbars
Post by: 1979Z28 on April 25, 2004, 02:10:05 PM
Hrm. Is there any other bit of code that would do that? Just added it to somebody's Blue theme (that's somewhere in the graphics board), and it still doesn't work :-X
Title: Re: Code Block Scrollbars
Post by: [Unknown] on April 25, 2004, 05:19:40 PM
You also need to modify the code class in style.css...

-[Unknown]