Text Board Scripts (86)

1 Name: Anonymous : 2008-10-12 09:16 ID:I9AUiObw [Del]

Hi, I am looking for a barebones and efficient text board script. Preferably with at least some basic functions such as tripcodes.

Also I have some questions about text boards. How much space do they usually take up? How much does this board use to store all the accumulated posts from years ago?

2 Name: Anonymous : 2008-10-12 09:53 ID:Heaven [Del]

Kareha.

3 Name: Anonymous : 2008-10-12 10:10 ID:I9AUiObw [Del]

ok, question # 2 please?

4 Name: Anonymous : 2008-10-12 11:05 ID:Heaven [Del]

They don't use much space at all, because it's all text and flat files.

5 Name: Anonymous : 2008-10-12 15:57 ID:KdGQN8iE [Del]

All hail the almighty text board.

6 Name: Anonymous : 2008-10-14 20:13 ID:c+7IaAuR [Del]

What the hell, I'll slightly hijack this thread. Speaking of textboards, does anyone know who wrote tinybb.pl?

7 Name: Anonymous : 2008-10-14 21:47 ID:Heaven [Del]

>>6
Nevermind, found it at http://dis.4chan.org/read/prog/1185963886/23
Sauce is http://hotaru.thinkindifferent.net/tinybb/tinybb.txt

Of note is the function

sub format_comment($$){}

since the first regexp for comment parsing (which inserts the >>1 links for this script) likes to not work on the random free webhosts I tried a slightly modified version of this script on. (For those who care, I added a rudimentary spam trap [fake input] to the post form.)

8 Name: Anonymous : 2008-10-14 22:08 ID:Heaven [Del]

>>7
And I think I figured out the primary reason why - < and > weren't escaped in the link that was replacing >>1 links.

But just to be safe, I totally copied the number matching regexp from Kareha and then just modified the url part.

9 Name: Anonymous : 2008-10-14 22:08 ID:Heaven [Del]

>>7
And I think I figured out the primary reason why - < and > weren't escaped in the link that was replacing >>1 links.

But just to be safe, I totally copied the post number matching regexp from Kareha and then just modified the url part.

10 Name: Anonymous : 2008-10-14 22:09 ID:Heaven [Del]

Hooray Internal Server 500 errors!

11 Name: Anonymous : 2008-10-14 22:18 ID:Heaven [Del]

Anyways, if anyone wants the source modifications I've made so far, http://wtfcake.freehostia.com/tinybb/tinybb.txt

You'll need to also get style.css and ba.gif if you want the current style.

To use, you'll need a writable /res/ directory in the same directory as tinybb.pl.

12 Name: Anonymous : 2008-10-16 01:36 ID:Heaven [Del]

> And I think I figured out the primary reason why - < and > weren't escaped in the link that was replacing >>1 links.

no, a / wasn't escaped in the replacement string. < and > don't need to be escaped.

13 Name: Anonymous : 2008-10-16 08:05 ID:Heaven [Del]

See, this is why "learn perl" is the first thing in the todo list.

14 Name: !WAHa.06x36 : 2008-10-17 08:42 ID:fhRJpvff [Del]

>>10

Goddamn Dreamhost has some weird flock() bug which causes all new invocations of Kareha to hang after some random amount of time.

15 Name: Anonymous : 2008-10-17 09:31 ID:Heaven [Del]

>>14
Dreamhost is shit.

16 Name: Eleo!EhVtXXdTd6 : 2008-10-18 12:02 ID:Heaven [Del]

>>15
ur mom

17 Name: !WAHa.06x36 : 2008-10-19 13:33 ID:Heaven [Del]

>>15

Not going to disagree with that one.

18 Name: Anonymous : 2008-10-19 23:29 ID:Heaven [Del]

>>14
what sort of bug is it? is flock() hanging when the file isn't locked or is the file somehow locked when it shouldn't be?

19 Name: !WAHa.06x36 : 2008-10-20 03:45 ID:Heaven [Del]

>>18

The file seems to end up locked forever, even after any process which could have held a lock has been killed. The file has to be renamed and copied to work again.

20 Name: Eleo!EhVtXXdTd6 : 2008-10-20 11:18 ID:Heaven [Del]

Have you tried contacting Dreamhost and telling them they bustas? Sometimes they fix stuff if you tell them they bustas.

21 Name: Medicine!ADmhDJ9Ke6 : 2008-10-20 19:56 ID:QFepMnkU [Del]

I am a novice at this kind of stuff, and a novice at PHP at that. Why PHP? Simple. My $5/month server does not support any other CGI, and PHP is commonly used anyways.

Anyways, I have attempted to create my own anonymous bulletin board script, which is similar to kareha here, which is so far purely procedural, for I have no experience with OOP, and I will not even try working with that stuff. I am doing this because I want something that is more straightforward than kusaba to work with. I have taken a look at kusaba myself and I have decided that I do not want to deal with modifying it to make it any "better," as it looks very cumbersome to deal with.

It is not an imageboard. I am not a fan of imageboards. I used to be a fan of imageboards, when I first thought that imageboards were some kind of gathering place for culture. Well, experience on the imageboards has told me that those people are probably not just pretending to be stupid. I have especially disliked those /h/-"hentai"-type boards ever since I have known that those kinds of imageboards are typically full of people who just leech, who are typically haughty and care not for anyone else nor for any community or anything meaningful.

The PHP for this software may well be a jumbled mess, since I tried to do it as quickly as possible, and have paid little attention to how it will perform. I myself am not an expert in computer science and algorithmatics, and I know little about how to make it efficient anyways. I am not an expert programmer. I might eventually study or self-study computer science and programming paradigms, but this is what I have come up with so far. Regardless, it has at least been workable for me at least, which is why I seek to use it for further developments eventually into a fully-developed BBS software.

If you wonder what the name "Lucid Tea" means, it doesn't mean anything. I am just playing with words here.

It is half-completed, and the things that are missing right now are setting a style for the site, and the moderation. Installation for the software is done through the install.php file. Configuration is done through editing the settings.php file. I based this installation off of Simple Machines Forum and how they install.

Take this half-baked software for what it is: done by a novice, half-baked, half-finished, and done hastily, but at least something I can work with, and which I will seek to complete soon.

Here it is:
http://www.28chan.org/lucid_tea.rar
http://code.google.com/p/lucidtea/source/browse/

But yes, I am not using it right now, because yes, I am a little hesitant about using it in the first place.

22 Name: Anonymous : 2008-10-20 23:13 ID:Heaven [Del]

>>21
tripcodes are broken (your code turns < into &amp;lt;).

also, what happens if someone puts something like " onmouseover="alert('lol')" in the mail field?

23 Name: Anonymous : 2008-10-21 08:06 ID:oNd+LOFF [Del]

>>21

just had a quick glance, but my advice is to read this:

http://www.sitepoint.com/article/php-security-blunders/

24 Name: Anonymous : 2008-10-21 08:07 ID:Heaven [Del]

>>21

It's really just irresponsible to actually distribute a web app that you have no idea is actually secure. You are putting anybody who tries to use your software at risk.

25 Name: Anonymous : 2008-10-21 08:12 ID:oNd+LOFF [Del]

>>23

actually looking more closely that article isnt perfect. see also http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string

yea php sucks but i doubt me telling you that is going to stop you using it

26 Name: Anonymous : 2008-10-21 13:10 ID:Heaven [Del]

>>22
It seems like I did not pay attention to each of the fields carefully. Do you think that removing just quotes prevents this, or do you recommend removing everything except [a-z0-9._-]?

>>24
I am not distributing it. I am publishing it and inviting people to take a look at it.

>>25
Is this article relevant? After all, I am using mysql_real_escape_string(stripslashes()) for each input.

27 Name: Anonymous : 2008-10-21 14:01 ID:Imu57L9s [Del]

28chan

go to bed

28 Name: Anonymous : 2008-10-21 14:25 ID:Imu57L9s [Del]

Someone needs to get 28chan's "admin" to quit the internets; everything he touches results in fail and aids.

29 Name: Anonymous : 2008-10-21 15:13 ID:Heaven [Del]

>>28
Every time he post's I rage uncontrollably.

30 Name: Medicine!ADmhDJ9Ke6 : 2008-10-21 17:49 ID:QFepMnkU [Del]

>>27
To the contrary, I am quite awake. Whatever.
>>29
Boo-hoo to you, you are so butthurt by my presence, apparently.

31 Name: Anonymous : 2008-10-22 00:49 ID:Heaven [Del]

> It seems like I did not pay attention to each of the fields carefully. Do you think that removing just quotes prevents this, or do you recommend removing everything except [a-z0-9._-]?

changing the quotes to %22 should fix that problem, but you should really learn PHP before you try to do something like this in it.
i know it's really tempting to just dive in and start writing messy code because learning PHP properly takes about 10000 years, but if you don't take the time to do it right you're going to make a lot of mistakes.

32 Name: Anonymous : 2008-10-22 02:40 ID:F9ufTPZl [Del]

>make a lot of mistakes

and learn a lot from them...

>>26

>Is this article relevant? After all, I am using mysql_real_escape_string(stripslashes()) for each input.

ah - well i did just glance at your code, sorry. still it would be best to gather all the input and put it into local variables at the top of each script for clarity imo.

33 Name: Anonymous : 2008-10-22 03:37 ID:Heaven [Del]

> >make a lot of mistakes
>
> and learn a lot from them...

learning PHP by trial and error takes a lot longer than learning it by reading the manual and the source code to familiarize yourself with all the bugs that aren't covered in the manual.

34 Name: Anonymous : 2008-10-22 03:50 ID:Heaven [Del]

> and learn a lot from them...

You're not going to learn anything from waking up one morning and suddenly finding your server pwned. Except maybe "I shouldn't have done that", which admittedly is a good lesson to learn.

But more importantly, once again, is that you shouldn't publish it, because you are putting others at risk if you do that!

35 Name: Anonymous : 2008-10-22 08:22 ID:Heaven [Del]

>>34
How am I putting others at risk? I am merely entreating people to look at it, see if there are flaws etc., not use it on a public website.

36 Name: hotaru : 2008-10-23 02:13 ID:Heaven [Del]

>>14
speaking of flock(), i just added file locking to tinybb.pl, which is kind of important. so >>6-9,11,13, if you're still working on that modified version of it you might want to take a look at the changes i made.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: