Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Page too wide for screen
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Panhandler
Average Member

USA
783 Posts

Posted - 25 June 2003 :  12:06:30  Show Profile  Visit Panhandler's Homepage
Why is it that some topics don't fit the monitor screen and others do?
For example: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=45485
This topic requires me to use the horizontal scroll bar at the bottom to read all the way accross.
Yet, most of the other topic don't?


"5-in-1 Snitz Common Expansion Pack" - five popular mods packaged for easy install
". . .on a mote of dust, suspended in a sunbeam. . ."
HarborClassifieds
Support Snitz Forums


Nikkol
Forum Moderator

USA
6907 Posts

Posted - 25 June 2003 :  12:32:21  Show Profile
because the [code] tags are using which preserves whitespace.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 25 June 2003 :  17:16:17  Show Profile
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.
Go to Top of Page

a_singazer
Starting Member

Armenia
5 Posts

Posted - 02 July 2003 :  21:06:03  Show Profile  Send a_singazer an AOL message
Is there a way to correct this problem so that everything fits on one page width and people don't ahve to scroll?
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 03 July 2003 :  12:00:57  Show Profile
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.
Go to Top of Page

a_singazer
Starting Member

Armenia
5 Posts

Posted - 03 July 2003 :  15:33:14  Show Profile  Send a_singazer an AOL message
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?
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 03 July 2003 :  15:50:56  Show Profile
No, Frutzle is saying that you will have to modify the base code snitz.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 03 July 2003 :  16:04:41  Show Profile
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=31430&SearchTerms=,scroll

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

a_singazer
Starting Member

Armenia
5 Posts

Posted - 03 July 2003 :  21:07:46  Show Profile  Send a_singazer an AOL message
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.
Go to Top of Page

a_singazer
Starting Member

Armenia
5 Posts

Posted - 04 July 2003 :  12:23:23  Show Profile  Send a_singazer an AOL message
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.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 04 July 2003 :  12:54:26  Show Profile
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.
Go to Top of Page

a_singazer
Starting Member

Armenia
5 Posts

Posted - 08 July 2003 :  18:16:12  Show Profile  Send a_singazer an AOL message
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.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 09 July 2003 :  03:59:03  Show Profile
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.
Go to Top of Page

mige
Starting Member

Switzerland
3 Posts

Posted - 29 July 2003 :  11:16:45  Show Profile  Visit mige's Homepage
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??
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 29 July 2003 :  11:46:19  Show Profile
got a link to a sample post we can look at?

are there large images in the post?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 29 July 2003 :  11:49:56  Show Profile
Can you post a link to one of those topics so we can see what might be causing the problm for you?
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.58 seconds. Powered By: Snitz Forums 2000 Version 3.4.07