Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Anonymous BBS

Name: Anonymous 2007-04-22 14:18 ID:faJud7z4

I want to set up a message board in my own language.
What do you recomand:
1.Shiichan
2.Kareha
3.Others( if so what?)

Name: Anonymous 2007-04-22 14:22 ID:d0RcOJi/

Kareha.

Name: Anonymous 2007-04-22 15:47 ID:xipRAych

write your own using perlhp and mysql

Name: Anonymous 2007-04-22 15:49 ID:Heaven

>>3
write your own using python and PostgreSQL
FIXED

Name: Anonymous 2007-04-22 15:51 ID:Heaven

Why do we need another goddamn board?
There's already over nine thousand.

Name: Anonymous 2007-04-22 15:52 ID:Heaven

A database is unnecessary overhead for a text board, srsly.

Name: Anonymous 2007-04-22 15:56 ID:Heaven

>>6 is not an EXPERT PROGRAMMER

Name: Anonymous 2007-04-22 15:57 ID:xipRAych

>>6
so is a web server, srsly.

Name: Anonymous 2007-04-22 17:24 ID:Heaven

Write it yourself, make it good, release it. That way there will at least be one BBS that doesn't suck shit.

Name: Anonymous 2007-04-22 18:47 ID:8CE+RRRb

>>9
Wakaba and Kareha are "good," in that they're stable, sanely written, easily modified, and offer a decent variety of features. Their only problem is they're one-board systems and there's no way to configure it besides hacking a text file. That's not a major drawback -- in fact, it might even be seen as a feature, since it means fewer retards hosting their own chan to be "cool" -- but it's a bit annoying having to either ssh to my host and use vi, or scp the config.pl back and forth. Sometimes I'd just rather click a button.

Incidentally, I am writing my own (image) board. It whips Trevorchan's arse, not that it's hard to do, and it even improves on Wakaba in a couple of places, but it still needs lots more testing and a full security audit before I'll even consider giving it out.

Name: 10 2007-04-22 18:50 ID:Heaven

BTW: Python, and either PostgreSQL, SQLite, or (last resort) MySQL.

Name: Anonymous 2007-04-22 18:56 ID:SZvcJZTu

Release it anyway, I'm always interested in different approaches to writing a BBS system.

lol @ SQLite

Name: Anonymous 2007-04-22 19:04 ID:cZd2A0wc

Write it in Haskell. Point-free.

Name: Anonymous 2007-04-22 19:22 ID:DgHp4fKA

CGI/C.

Name: Anonymous 2007-04-22 19:37 ID:ny8COgbT

>>13

That would be interesting

Name: ddddddddddddddddddddddddddddd 2007-04-22 19:40 ID:Zj9Po692

-- -----------------------------------------------------------------------------
-- HBBS
-- Licence: BSD
-- Copyright: dddddddddddddddddddddddd 2007 -

module Main where

import Control.Monad
import Network.CGI
import System.IO

import Text.XHtml.Strict
import Data.Maybe
import Data.Char

data Entry = Entry { author  :: String
                   , text    :: String
    } deriving (Show, Read)

main :: IO ()
main = runCGI (handleErrors hbbs)

hbbs :: CGI CGIResult
hbbs = do
    let out = output . showHtml
    efile   <- liftIO (openFile "entries.dat" ReadWriteMode)
    name    <- getInput "name"
    text    <- getInput "text"
    entries <- liftM read (liftIO (hGetLine efile))

    case text of
        Nothing  -> out $ hbbstitle +++
                          hbbscontent entries +++
                          hbbsform +++
                          hbbsend

        Just txt ->
            do let n  = take  20 $ fromMaybe "Anonymous" name
                   t  = take 200 $ filter isAscii txt
                   es = take  10 $ entries
               liftIO $ do hSeek efile AbsoluteSeek 0
                           hPutStrLn efile (show ((Entry n t):es))
                           hClose efile
               out $ hbbssubmitted entries (fromMaybe "Anonymous" name) txt

hbbssubmitted es n t =
    p (toHtml ("Saved!")) +++
    p (toHtml ((address (toHtml "Click here to reload")) ! [src "Main.cgi"]))

hbbstitle =
    (thetitle (toHtml "HBBS")) +++
    h1 (toHtml "HBBS!!") +++
    h2 (toHtml "Do you dare to post?!")


hbbsform  =
    form $
        (p (toHtml "Name: ")) +++
        (textfield "name") +++
        (p (toHtml "Message: ")) +++
        (textfield "text") +++
        (submit "send" "poooost") ! [method "POST"]

hbbscontent es =
    let formatentry (Entry n t) = p (toHtml ("name: " ++ n)) +++
                                  p (toHtml (unlines (wrapList 72 t)))
     in hr +++ h2 (toHtml "Messages: ") +++ (map formatentry es) +++ hr

hbbsend =
    p (toHtml ("HBBS is powered by the awesome power of Text.XHtml.Strict " ++
              "and Network.CGI. Rock on!")) +++

wrapList :: Int -> [a] -> [[a]]
wrapList _ [] = []
wrapList n xs = (take n xs) : wrapList n (drop n xs)


Needs some work, but it functions. I even have it running on my web server, but I'm not adventurous enough to link it.

You'll have to create a 666 file entries.dat with an empty entry list (i.e. [Entry {author = "", text = ""}])

Name: Anonymous 2007-04-22 19:43 ID:Zj9Po692

>>>16
Er, oops. There's a trailing +++ at the end of hbbsend

Name: Anonymous 2007-04-22 20:51 ID:OFxCNRhy


5. Any forced meme in /prog/ will be unfunny. No exceptions.

Name: Anonymous 2007-04-23 5:54 ID:dslyCL8U

...turing.

Name: Anonymous 2007-04-23 7:54 ID:s3tMgeGb

Name: Anonymous 2008-06-29 21:28

>>16
So, where is this hosted?

Name: Anonymous 2008-06-29 21:51

>>16
PROTIP


hbbssubmitted es n t =
    p (toHtml ("Saved!")) +++
    p (toHtml ((address (toHtml "Click here to reload")) ! [src "Main.cgi"]))


vs


hbbssubmitted es n t =
    p << "Saved!" +++ p << address ! [src "Main.cgi"] << "Click here to reload!"

Name: Anonymous 2008-06-29 21:54

>>22
Aw, I didn't notice this thread was from 2007. << probably didn't exist back then.

Name: Anonymous 2008-06-29 21:57

This thread makes me really wish we had IDs still. Maybe we should take a vote on who wants IDs back, and then have our view blatantly ignored.

Name: Anonymous 2008-06-29 21:58

Why were IDs removed from /prog/? I wasn't around at the time.

Name: Anonymous 2008-06-29 22:05

Bampu.

Name: Anonymous 2008-06-29 22:07

Why?

Name: Anonymous 2008-06-29 22:25

Name: Anonymous 2008-06-29 22:33

>>26
pantsu.

Name: Anonymous 2008-06-29 23:16

Real men use INVISION POWER BOARD 2.3 BUSINESS EDITION

Name: Anonymous 2008-06-30 3:28

>>25
Because of threads like this one:
http://bubble6.2ch.net/test/read.cgi/dejima/1210196150/

Now imagine that spammed all over the place by some guy with #tea in the name field.

Name: Anonymous 2008-06-30 4:22

>>31
I had been giving credit to ID guy.

Name: Anonymous 2008-06-30 5:38

>>31
I wish we had IDs back ;__;

Name: Anonymous 2008-06-30 7:01

Oh you are so funny someone posted Wokon there. Ahaha the hilarity. You guys are so great.

Name: Anonymous 2008-06-30 8:09

>>34
Well, I tried to use the tripcode, but it wouldn't work for some reason :/

Name: Anonymous 2008-06-30 8:25

Name: Anonymous 2008-06-30 12:24

I have a picture saved somewhere but I can't find it.  It's of shii saying something along the lines of "shiichan was meant more as a social experiment" and I'd love to post it in this thread but i can't find it.

:(

Name: Anonymous 2009-07-12 6:05

known then realised this "while the C revolutionary it, will, will, along it, are will, with kernel kernel only it from the (or can

Name: Anonymous 2012-03-25 14:23

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

Name: Anonymous 2012-03-25 14:57

>>4
To hijack this post, I want to set up a telnet BBS with Python/Twisted and SQL. Does that sound like a not completely terrible idea?

Name: Sgt.Kabu粉஛kimanᇚ硠 2012-05-29 1:09

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List