Author |
Topic  |
Panhandler
Average Member
  
USA
783 Posts |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 25 June 2003 : 17:16:17
|
Some of my pages do that as well, my users rarely use code tags, but there are a LOT of graphical sig's. They don't overflow the screen, but seem to affect the width. |
 |
|
a_singazer
Starting Member
Armenia
5 Posts |
Posted - 02 July 2003 : 21:06:03
|
Is there a way to correct this problem so that everything fits on one page width and people don't ahve to scroll? |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 03 July 2003 : 12:00:57
|
If I remember correctly, there was someone who had modified the properties of the <pre> tag using CSS, or (s)he used a textarea instead of <pre> tags, that allowed scrolling without affecting the table's width. I'd have to do some testing to figure it out myself, but that'd be one possible solution for when your users use the [code][/code] tags a lot.
There's also a MOD available that'll auto-resize images used in posts to a maximum width (and height). See this topic for more info: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=45210
As for when someone would get annoying and post a lot of smilies in a row, or keep one key pressed for a long time (that would cause the table to stretch too)... Give a warning, edit the post and if the person keeps it up, lock the account. I'm sure there's a solution for that too, but I can't think of a simple solution right now. |
 |
|
a_singazer
Starting Member
Armenia
5 Posts |
Posted - 03 July 2003 : 15:33:14
|
What is CSS, is there a box I can check that can fix it like the NOWRAP in the admin options?
If not do i have to edit evey post with a <pre></pre> tag?
should i ask my members to put in those tags? |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
a_singazer
Starting Member
Armenia
5 Posts |
Posted - 03 July 2003 : 21:07:46
|
Sorry to keep bugging you guys, I got the code... <div style="overflow:scroll;width:100%;height:100%;"> I just need to know where to put it. And do I put it as is? Thanks a million. |
 |
|
a_singazer
Starting Member
Armenia
5 Posts |
Posted - 04 July 2003 : 12:23:23
|
Ok I've been looking around the files in the directory and a few of them looked like good potential files to mess with. the inc_code.js looked like it is the one that does the in the replyto area. I would assume I put the code above in there? Please let me know if I am heading in the right direction. Thanks again. |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 04 July 2003 : 12:54:26
|
Here's the easiest but probably not the best solution: open inc_header.asp and find lines 273 to 276, which look like this:
".spnSearchHighlight {background-color:" & strSearchHiLiteColor & "}" & vbNewLine & _
"input.radio {background:" & strPopUpTableColor & ";color:#000000}" & vbNewLine & _
"-->" & vbNewLine & _
"</style>" & vbNewLine & _ Change those lines so it'll look like the following example, by adding the red line:
".spnSearchHighlight {background-color:" & strSearchHiLiteColor & "}" & vbNewLine & _
"input.radio {background:" & strPopUpTableColor & ";color:#000000}" & vbNewLine & _
"Pre { color: #000000; background: #E6E6E6; border: 1px solid #666666; overflow: scroll; padding: 2px 2px 2px 2px; width: 650px; }" & vbNewLine & _
"-->" & vbNewLine & _
"</style>" & vbNewLine & _
In that red line there are a few things you can change (to make it fit your color scheme for example): color: #000000; = the font color for the text inside the [code] and [/code] tags. background: #E6E6E6; = the background color of the code block. This could also be left out. border: 1px solid #666666; = the width, style and color of the border around the codes. This could be left out, but I would recommend you leave it in. padding: 2px 2px 2px 2px; = the space between the border and the codes. width: 650px; = the width of the "code block". If you change it to a percentage it won't work correctly (pages will get stretched anyway), so I suggest you change the width so it'll work for most people's resolutions.
Once the extra CSS class is in place, you won't have to worry about existing code blocks that stretch your forums anymore as they will all be put in a block that has scrolling abilities. |
 |
|
a_singazer
Starting Member
Armenia
5 Posts |
Posted - 08 July 2003 : 18:16:12
|
Thanks for the info. Also check this out, someone on my forums had many _ together so 500 ___________________________ would cause the scroll so instead I took ________ as a bad word and filtered it to put a space so the line could wrap and not cause a scroll . too bad I can't do taht with this combo one of many asdjfl;ajweoijkjvnuiasdhfawhefhakfhaksjf. Well, at least I can spot that in the message and give a message to the user.
Thanks again.  |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 09 July 2003 : 03:59:03
|
If people put many smileys in a row in their posts the topic will stretch too. One solution is to edit the codes that inserts smileys by adding a space after or before the image tag. Of course, as you also noted, it won't help against people who are determined to mess things up by making long strings of (gibberish) text. |
 |
|
mige
Starting Member
Switzerland
3 Posts |
Posted - 29 July 2003 : 11:16:45
|
quote: Originally posted by Nikkol
because the [code] tags are using which preserves whitespace.
OK, got that, but in my case, there are no [code] tags in the post and even after having turned off the Forum Code, all posts that have long paragraphs are wider than the screen and I have to scroll horizontally
I have no images and nothing else activated, but still have that problem. Does anybody have a solution?? |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 29 July 2003 : 11:49:56
|
Can you post a link to one of those topics so we can see what might be causing the problm for you? |
 |
|
Topic  |
|