Yeah so last Saturday I decided to learn ASP. Previously, I was working on a PHP/MySQL textboard, but I dumped that project so I could move my site to an Windows server. And this is what I've been working on for about 4 days: http://quivr.net/vip/index.asp
What it has:
What it needs:
So what do you guys think? I'll release it as open-source once all the bugs have been worked out.
>>3
I shall! Another thing I have to do is post numbering, forgot to add that to the list.
Looks like you forgot to escape ampersand-chars. Also, failed XHTML validation.
Escaping ampersands is impossible in many cases. HTML is just broken like that.
>>5
I can't win with XHTML due to having a body class.
Also, would anyone know how I can tackle tripcodes in ASP? There's no crypt function :/
Moved it over to http://tanasinn.net/beta/
>>6
replacing them all with &
works just fine in xhtml.
>>7
body can have a class attribute in xhtml.
here are the problems with your xhtml code and how to fix them:
<
, >
, and &
must be escaped, even in javascript. you have an unescaped <
in your script
tag. replace it with <
.body
tag inside a body
tag. also, you have two body
start tags but only one closing tag. remove one of the start tags.onLoad
. use onload
instead.tr
and td
tags must be closed. the first tr
in the new thread form and the second td
in that tr
are unclosed. close them.if you want to do tripcodes you'll probably have to implement crypt
yourself.
>>9
All errors were fixed, thanks for your help.
Only if you're using UTF-8 or some other full unicode encoding. Otherwise, characters outside of the character set are sent as numerical entities.
Also, there should be lots of implementations of crypt() out there. Perhaps even one for ASP, but you can likely also found one that can be easily ported.
>>13
I want a version of crypt that would produce the same tripcode as it would on any other image/textboard.
Now with capcodes and really crappy tripcodes.
>>12
Why would you not be using unicode in this day and age?
>>12
is there any reason not to use a full unicode encoding?
To force Japanese fonts by using Shift_JIS, for instance. Most Japanese sites use it.
>>18
Then you should be using <span lang="ja">
. Or, if the font itself is important, and not just any random font that the user has set up in their browser (e.g. if you're dealing with SJIS art, which I suspect is what you're referring to), <span style="japanese">
along with a .japanese { font-family: Mona, "MS PGothic" }
..
Next fake reason to use non-Unicode fonts?
Why exactly are you taking this as some kind of personal insult?
>>20
How do you read that as a personal insult? I'm just trying to remove people's false beliefs that there is any reason to cling to legacy encodings. There really isn't, and all you get out of attempting to support them are more complexities to handling incoming form data sanely and securely.
To try to get this thread back on topic before it's derailed entirely... >>15, what language are you actually using for the board? If I get some time I'll try hunting down a crypt() library for it.
With that confrontational attitude, you really come off as if you're somehow taking this personally. If you actually want to convince anyone of anything, you'd better cut that out.
>>22
ASP / vBScript
>>25
It does need some sort of markup, nonetheless.
Pretty much any other markup is better than BBcode. BBcode is about as difficult to use as HTML, but less familiar.
>>29-36 what happened here?
>One of the most difficult-to-accomplish parts of software design is getting things to do what people expect without requiring them to read stuff first.
There is a simple way to solve this problem that phpBB/etc forums already use. They have little javascript buttons for italics, bold, etc. that add the necessary open/close tags when you click them. Sure, it may clutter up the area around the postbox a little, but it allows people to learn how to use the site's formatting as they format their posts.
I don't like all of the bad rap that BBCode gets, so allow me to make a few arguments for and against its usage.
Positives:
Negatives:
Apart from that, I guess the decision is just a matter of personal choice. Both (all three, if you count sanitized HTML) have their own benefits. This is a minor bit of my own preferences, but when I'm using a site that has a custom markup format, I'm always a little afraid that the site isn't going to recognize that, say, a sentence surrounded by asterisks isn't going to be bolded/whatever'd. Since asterisks are used (comparatively) somewhat often in writing, it makes a part of my brain scream "those don't belong there!" when I write them. "How will the computer know that I'm trying to bold that whole sentence? I could see if it was just a word surrounded by them, but there's spaces and how can it keep track of that?!" Even if I'm familiar with the way that the site processes text (I do realize that this whole sentence is going to be bolded, and that a parser just waits for a close sequence after detecting an open sequence, no matter how "far away" it is), I can't change the fact that writing like that feels just a little bit wrong to me. On the other hand, the brackets (other than parenthesis) are rarely used in text, so the sight of a <b> or a [b] is immediately recognized as something that the computer is going to parse. Maybe I just don't post on kareha/wakaba boards enough these days?