All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info
Discussion Forums
Login: Password:Remember me: Sign up! | Forgot password

Forums > Commons
A place to come and discuss the features of this site, as well as suggest/request additions and modifications. Oh yeah, and Bug reports too.
DJ
2003-06-02 12:06:12
New bugs?

I have noticed a few problems with the <pre> tag, presumably due to the way PHP handles arrays. First, the closing tag does not always work, leaving all remaining text within the tag, and if it happens to be a paragraph (or more than one line long), it will overflow the width of the containing box. Also, for some of my problems for the algorithms category, the programming codes are not properly handled, changing some quotes (") into escaped quotes (\") each time I modify the problem. So, something that starts out as printf("-") will after a few modifications become printf(\\\\"-\\\\"), and so on. It does this whether I type in the quotes directly or if I use the HTML &quot; code. Obviously, I can't offer a remedy without knowing how the page works, but perhaps the stripslashes() function in PHP3+ would serve as a solution.

Just a test:


string hi="Hello";
printf("Hello\n");
printf(hi);

And now I'll type a big long line to see if it will still wraparound. Note, I made sure to close the </pre> tag..
DJ
2003-06-02 12:12:03
Re: New bugs?

The quotes don't seem to be a problem right now, but you can see the wraparound bug. Perhaps the quotes are only a problem in problems and solutions, which are set up somewhat differently than the comments and forum posts.

DJ
2003-06-02 13:20:14
Re: New bugs?

And actually, looking at the page source, the tags are showing up correctly. I can think of no reason it would mess up like that, unless one of the scripts linked by source is doing something..

I guess nothing is ever as simple as it seems.

Gamer
2003-06-04 09:43:17
Re: New bugs?

Another thing I saw is people (like the uid=3 and such) where the user hasn't logged in in over 12000 days, which is about 37 or 38 years I think. Unless this site is up for 38 years, that is obviously a problem.

DJ
2003-06-04 11:22:48
Re: New bugs?

Those users have not been recorded as having ever logged on, so that time is just from the start of system time, which on most systems is (I think) 1970. On this site, it doesn't appear that anything before May 5 of last year was properly logged, and anyone with a uid < 65 (except, of course, for number 1, levik) is not showing up as having ever logged on, even if they have left comments or posted problems.

McWorter
2005-03-10 01:08:43
Re: New bugs?

I'm trying to submit a problem using <pre> and </pre> and it doesn't seem to work. The preview shows the tags without the slashes and the text box also has the slashes removed. Editing the slashes back in and re-previewing just shows the same thing: tags without slashes in the preview, tags in text box also without slashes. How do I enable preformatting a block of text? Typing in innumerable hard spaces is a real drag.

Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information