think tank forum

general discussion » quick and dirty

lucas's avatar
19 years ago
link
lucas
i ❤ demo
i've been coding this forum on and off for over a year, now. two things that have discouraged me are problems with sessions and permissions. so today i decided to hack that code out, and toss it online.

this shit's hotter than your bathtub water.
dannyp's avatar
19 years ago
link
dannyp
dʎuuɐp
ttf will flourish, ga's won't be the cultivator here.
 
19 years ago
link
dbrown
ga's? yeah, i'm diggin this design. glad to hear you figured out the problems.
lucas's avatar
19 years ago
link
lucas
i ❤ demo
i didn't figure them out. this version simply doesn't use sessions or permissions. i just cut out those features.

ga = genetic algorithm

i was thinking about using a ga with a wiki-style forum, and it would shuffle shit around and constantly optimize the organization of content.
asemisldkfj's avatar
19 years ago
link
asemisldkfj
the law is no protection
this is cool. someday I might steal your code. I also can't wait until Friday when I get a real internet connection and can see the forums in a GUI browser.
lucas's avatar
19 years ago
link
lucas
i ❤ demo
haha
 
19 years ago
link
dynek
I panic when there are too many people around
I really like it.

But who's quick and dirty ? :)
phi_'s avatar
19 years ago
link
phi_
... and let the Earth be silent after ye.
One of the better forums I've seen! None of that fancy-shmancy eye candy or bells & whistles. And NOT an ezboard. Always a plus.
andre's avatar
19 years ago
link
andre
lucas: can you add a small space to the right of the "click to post" box? not that it's going to kill me, but the cursor is too near the black box when i click on the text area...
lucas's avatar
19 years ago
link
lucas
i ❤ demo
yeah, i'll add the same padding as the post boxes above. thanks. :)
 
19 years ago
link
dbrown
tsmfa?
i'm just wondering
 
19 years ago
link
dbrown
the sketchiest mother fucker around...
i just got it.
 
19 years ago
link
cac
admits to increasing the saturation a bit
i don't like bath water
dannyp's avatar
19 years ago
link
dannyp
dʎuuɐp
because it fits better than a glove?
lucas's avatar
19 years ago
link
lucas
i ❤ demo
browsers that render the forums perfectly as intended:
netscape 7.0 (mozilla 5.0) on solaris 9
opera 8 on freebsd 5.4
firefox 1.0.6 on windows xp pro

<a href="other/board.gif">original design/layout</a> by mr. ed slavin
 
19 years ago
link
dbrown
i dig that original design, esp. the recent posts part
lucas's avatar
19 years ago
link
lucas
i ❤ demo
besides the recent posts part, what do you prefer over this?
 
19 years ago
link
dbrown
actually that's it. otherwise i'm very happy here.
lucas's avatar
19 years ago
link
lucas
i ❤ demo
please post suggestions for ttf improvement.

TODO:

add simple tag support to posting {b, i, u, a, img}
user-defined timezone
forgotten password feature
make html/css more compatible
change e-mail feature
search feature
user list feature
more posting support {quote, edit, delete, report}
on-line users feature
user-defined css support

ttf mission: fast, clean.
lucas's avatar
19 years ago
link
lucas
i ❤ demo
added feature: if you post a url, it is automatically linked.
 
19 years ago
link
dbrown
beautiful, i wouldn't mind seeing that bit of code...
lucas's avatar
19 years ago
link
lucas
i ❤ demo
it's pretty badass code.. i guess it also shortens long urls:
http://www.thinktankforums.com/thread.php?thread_id=55

:)
sriehl's avatar
19 years ago
link
sriehl
surreal
I like the forum. . . good layout and efficent.
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
more profile options, e.g. change the text below your nick, location, interests, current playlist, etc.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
nah, you can do that stuff yourself. a single text box gives you the most options and leaves the creation of yourself up to yourself!

check out larz's profile:
http://www.thinktankforums.com/profile.php?user_id=33
lucas's avatar
18 years ago
link
lucas
i ❤ demo
in your posts and in your profile, bold, italic, underline, and pre tags work. just use html!

boom
boom
boom
lucas's avatar
18 years ago
link
lucas
i ❤ demo
oh, and now there are 20 threads displayed per page, with a "next" link to see the next 20.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
would you guys prefer "pages" for replies inside threads? like every 20 replies makes a new page?

personally, i don't really like pages in threads. i like to scroll like mad.
in thread view, you usually don't have to click next often because all that shit is old. so the "next" link is just for archival purposes

but when reading a thread, if you like to move around fast, it's nice to have it all on one page. maybe if there were like 200 replies,a split might be nice. i might have the option definable in the profile, as will be a timezone, and.. maybe even a greeting! where it says "i summon you here, my love" on the main page.. each user can define that for himself. i think that would be funny
phi_'s avatar
18 years ago
link
phi_
... and let the Earth be silent after ye.
Nah, pages suck. Stick with the current layout, but splits on extremely long threads would be OK; I'd say start splitting it up at 50 posts.
sriehl's avatar
18 years ago
link
sriehl
surreal
The splits would be a good idea.
With the forum only displaying 20 threads at a time, it would be nice to have a previous 20 as well.
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
Topic splits with back references ;)
sriehl's avatar
18 years ago
link
sriehl
surreal
Possibly having a link posted in a thred to open up in a new window.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
no. if you want to open it in a new window, use your shift key. as soon as i make it open in a new window, noone can make it open in the same window. this is a restrictive feature, and in the case of ttf, a bug.
 
18 years ago
link
dbrown
maybe make it an option to have it open in a new window? set in the users option page.
 
18 years ago
link
dru
The Art of Subconscious Illusion
i didnt read through the whole thing, but how about a way to edit postes after you mess up.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
yeah, editing is useful. i don't know what's so hard about middle clicking or using the shift button for a new window, though.
 
18 years ago
link
dbrown
no middle mouse button and if it's an issue to code it i'm not that worried, it's just a suggestion.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
and i appreciate the suggestion, but i'm seriously trying to avoid unnecessary features.
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
lr mentioned using the shift button. shift-click it dbrown!
phi_'s avatar
18 years ago
link
phi_
... and let the Earth be silent after ye.
You can also RightClick-> open in new window/tab.
 
18 years ago
link
dbrown
ugh, i'm aware of the multitude of ways to open in a new window. personally i use ctrl-shift-left click to open in a tab in the background.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
i merged the "news and articles" forum with the "politics" forum.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
committed a timezone feature.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
committed a user list feature.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
timezones actually work now.

avatars are now stored in the actual database (as opposed to a directory).
lucas's avatar
18 years ago
link
lucas
i ❤ demo
sticky thread feature eliminated (never used).

additional user tracking implemented.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
now this is what i call a totaletarian message board!
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
I assume spell check is next on your list?

:P
lucas's avatar
18 years ago
link
lucas
i ❤ demo
damnit.. sometimes i punch a word into google to see if it corrects me. i guess there are enough misspellings on the web that google got it wrong :(
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
not sure if you ever use this "define: word"
lucas's avatar
18 years ago
link
lucas
i ❤ demo
yeah, a lot
 
18 years ago
link
zenlunatic
GNU and BSD user
wassup everybody nice forums lucas
lucas's avatar
18 years ago
link
lucas
i ❤ demo
who's online? i think this will become a sidebar (on the left.. ref: http://www.thinktankforums.com/images/board.gif ).
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
Whoa that's cool, I really like that!
phi_'s avatar
18 years ago
link
phi_
... and let the Earth be silent after ye.
I'm diggin' it, lr.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
new feature: i can ban people very easily.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
bump (test post)
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
nice that ban feature looks pretty cool.
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
Is there any special way for regular users to add html to their profile?
lucas's avatar
18 years ago
link
lucas
i ❤ demo
no. there is a normal way. type it.

note that only b, u, i, pre tags are supported.
 
18 years ago
link
arun
keep smiling !
ttf needs a jump-to-new-posts link. Scrolling sometimes is tedious.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
truth.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
looks like the ban feature is working.. check out #2 for entrance and exit:

http://www.clanbbw.com/publicimg/data/images/content.gif
lucas's avatar
18 years ago
link
lucas
i ❤ demo
search feature:
http://www.thinktankforums.com/search.php

sorry it's not integrated into ttf yet. i'm tired. at least i have ghetto-search working.

<font face="courier">SELECT ttf_post.thread_id, ttf_post.post_id, ttf_post.author_id,
ttf_post.date, ttf_post.body, ttf_thread.title, ttf_user.username,
MATCH(ttf_post.body) AGAINST ('$string') AS score
FROM ttf_post
LEFT JOIN ttf_thread ON ttf_post.thread_id=ttf_thread.thread_id
LEFT JOIN ttf_user ON ttf_post.author_id=ttf_user.user_id
WHERE MATCH(ttf_post.body) AGAINST ('$string')
ORDER BY score DESC</font>
lucas's avatar
18 years ago
link
lucas
i ❤ demo
arun> ttf needs a jump-to-new-posts link. Scrolling sometimes is tedious.

i just made this feature. it's not as clean/efficient as it could be, but i'm feeling lazy right now and it only took 15 minutes.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
we need a "fatty" button to make the reply boxes larger
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
yes, especially for the philosophy section :D
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
how about allowing PNG avatars!
lucas's avatar
18 years ago
link
lucas
i ❤ demo
sorry about that. i thought i had it correctly implemented, but i forgot to fix a error check. thanks! (it works now.)
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
cool, thanks :).
 
18 years ago
link
Hess
Well on the way to the unknown
Man, lr can do anthing!!

I was wondering though, which programing languages do you use?
lucas's avatar
18 years ago
link
lucas
i ❤ demo
ttf is 100% php4, mysql4, xhtml1, css2.

myself, i also use C for other projects.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
next i'll (finally) be adding edit and delete features. but if you know anything about me, you know that i'm an obsessive-compulsive data pack-rat. to that end, there will be no delete per se, rather an archive feature. additionally, edits will be stored as revisions using diffs. all users will be able to view the revision history of any post, although only the latest revision will be displayed in the thread.

comments?
lucas's avatar
18 years ago
link
lucas
i ❤ demo
one question, as well:

do you access thinktankforums.com or www.thinktankforums.com?
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
i don't really know. it's a toss up. I only remember myself typing thinktankforums.com but i often click on the url that pops up after typing 'thinktank' if it's on my computer which has www.thinktankforums.com in it, or I punch the button..
 
18 years ago
link
Hess
Well on the way to the unknown
Bookmarked.

Nice idea with edits/deletions.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
p.s. this thread has been viewed 1,000 times. :o
lucas's avatar
18 years ago
link
lucas
i ❤ demo
[01:32] wingedleopard: it's be funny if i buss'd ttf and reopened v1
[01:32] wingedleopard: "game over"
[01:32] dp: woah that'd be nuts
[01:32] wingedleopard: made v1 open registration
[01:32] wingedleopard: too many suicides happened on v1
[01:32] wingedleopard: it's sad
[01:33] wingedleopard: maybe subconsciously that's why i haven't made a normal edit or delete feature on ttf...
[01:33] dp: haha fuckin suicides
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
I think my bookmark points to www.thinktankforums.com, but if I'm not at home or I don't feel like touching the mouse or trackpad, I don't type the www.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
"i had a dream last night that thinktank was done.
it looked badass in the dream so i'll expect the same from you..."

--db, sept. 14, 2004
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
good job db, way to archive larz!
lucas's avatar
18 years ago
link
lucas
i ❤ demo
props to madams for making me realize that ttf was using the html trans. dtd and not xhtml strict! now that ttf is rocking xhtml strict, ttf looks awesome in IE!
lucas's avatar
18 years ago
link
lucas
i ❤ demo
i think i'm going to implement php-markdown. this is a lightweight text formatting markup language.

http://www.michelf.com/projects/php-markdown/

it seems to be just what ttf needs! a few more features and ttf will be ready for a version 1 release.
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
what's up with the spacing of the posts? I'm not into it.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
haha.. it's markdown's doing. i'm gonna fix it later.
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
thank god, it's ugly as shit!
lucas's avatar
18 years ago
link
lucas
i ❤ demo
well the problem is that it puts paragraph tags around everything. i think i may just disable that particular feature.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
props to this bro:
http://akinas.com/pages/en/blog/firefox_image_gap

i have cleaned up numerous little design problems now, including reformatting of all forms!

check out the new login form!
 
18 years ago
link
dbrown
i'm a fan of the new login.
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
sweet sassy molassy, me too!
 
18 years ago
link
dynek
I panic when there are too many people around
found anything about the logout and relogin thing when pushing the header's image ?
lucas's avatar
18 years ago
link
lucas
i ❤ demo
if you can describe the problem more, i can try.

ttf's wikipedia entry! please help expand it!
http://en.wikipedia.org/wiki/Think_Tank_Forums
 
18 years ago
link
dynek
I panic when there are too many people around
It's not there anymore lucas. Weird but it's working just fine now.
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
*ttf* hmm just testing to see if markdown is still on
phi_'s avatar
17 years ago
link
phi_
... and let the Earth be silent after ye.
larz: Hot. I'm diggin the wiki page.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
i just thought to look for a javascript that can do a sha1 hash.. and they exist!

so i'm gonna make the login process completely secure! as it is right now, every time you login to ttf, your password is in cleartext on the wire to the server.

the improvement will be to use the javascript to hash the password on the client side, so your password never hits a wire in cleartext.

security without ssl! :D
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
nice! that's pretty neat. why not ssl, though? just curious.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
because reputable certificates cost money
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
yeah, I thought it might have to do with getting a certificate. that javascript deal is really neat.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
&#955;&#945;&#961;&#950; want to be able to buss' greek! gotta fix this!
maple's avatar
17 years ago
link
maple
i like large datasets
whats up on the code lucas? can i get a copy? let me take it from tables to css and html to xhtml. it will make it all clean and shiny!
lucas's avatar
17 years ago
link
lucas
i ❤ demo
i recently audited the code (i want it exploit-free and clean before i release it). so i just gotta fix up a few more things and i'll release it. expect it by the end of the year.

thanks for the interest! i'm planning on setting up a svn server and allowing people to help with the development. if you're interested as well, that would be great!
maple's avatar
17 years ago
link
maple
i like large datasets
definitely,

i'm stoked. i already have a few ideas for improvements. i totally dig it already though.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
i just upgraded the ttf live web to v1-beta. this involved a complete conversion of database text, so hopefully no information was lost.

the big problem with this change was slashes/magic-quotes. it's still really confusing me what exactly is happening. i hope it works fine.

here's the code!
http://www.thinktankforums.com/dev/v1-beta.zip
maple's avatar
17 years ago
link
maple
i like large datasets
awesome! thanks man. im about to dive in
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
nice. congrats lucas. I'm gonna take a look at the code.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
the downfall of ttf?

http://www.thinktankforums.com/images/analyti … 229_00.gif
phi_'s avatar
17 years ago
link
phi_
... and let the Earth be silent after ye.
Just the holiday blues...
 
17 years ago
link
dbrown
has the "jump" function died for anyone else? i can't imagine what setting i might have changed recently to cause it to stop.
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
it ain't working in this thread for me. seems to work on others.
 
17 years ago
link
arun
keep smiling !
Yeah, I too noticed it. Its not working for me either.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
fixed it. i must have screwed up the query when i was auditing the code.

it was using:

SELECT ttf_post.post_id FROM ttf_post WHERE ttf_post.thread_id='{$thread["thread_id"]}' ORDER BY ttf_post.date ASC LIMIT 0, 1

instead of the correct:

SELECT ttf_post.post_id FROM ttf_post WHERE ttf_post.thread_id='{$thread["thread_id"]}' ORDER BY ttf_post.date DESC LIMIT 0, 1

i also added the total number of threads to the "next 15 threads" link box on forum.php.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
i changed ttf to store avatars in the filesystem instead of in the database. now browsers cache the avatars! glorious day!
lucas's avatar
17 years ago
link
lucas
i ❤ demo
wlwlv1 received 3,935 posts in less than one year (03-jan-04 to 28-dec-04).

ttf is *finally* approaching that number, with 3,781 posts over the course of about 1.5 years (03-sep-05 to 12-feb-07).

i'm still amazed by wlwlv1's success.
 
17 years ago
link
lseba
hi! just checkin arround to se the ttf interfase. i think im going to usito
great job guys
nny's avatar
17 years ago
r1, link
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
this post has been archived.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
visible post #5000

SELECT COUNT(*) FROM ttf_post WHERE hide='t'

COUNT(*)
212
lucas's avatar
17 years ago
link
lucas
i ❤ demo
not true! ahh!

SELECT COUNT(*) FROM ttf_post WHERE hide='f'

COUNT(*)
4992

SELECT COUNT(*) FROM ttf_post 

COUNT(*)
5204


=(

my damn archivepost.php script screwed everything up when it wasn't working. sigh.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
ttf unique visits have held steady at about 1,500/month since january.

ttf page views have doubled from 7,250 in january to 14,675 so far in april.

in the last month, ttf has gotten 202 unique visits from google.com and 151 unique visits from code.google.com.
nestor's avatar
17 years ago
link
nestor
nestor
i'm still trying to figure out the character and direction of ttf (content-wise).

unclassifiable as of yet
lucas's avatar
17 years ago
link
lucas
i ❤ demo
it's supposed to be a THINK TANK, yo!
phi_'s avatar
17 years ago
link
phi_
... and let the Earth be silent after ye.
... what agenda does our think tank have, larz?
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
the truth!
dannyp's avatar
17 years ago
r1, link
dannyp
dʎuuɐp
this post has been archived.
dannyp's avatar
17 years ago
link
dannyp
dʎuuɐp

ttf's wikipedia entry! please help expand it!
http://en.wikipedia.org/wiki/Think_Tank_Forums



http://en.wikipedia.org/wiki/TTF

Still need to update the think tank forums wiki article.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
reports of our traffic sources:

over the last month

since july 2006
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
lots of stuff from virb. cool.
phi_'s avatar
17 years ago
link
phi_
... and let the Earth be silent after ye.
I see plenty of us use Meebo...
lucas's avatar
17 years ago
link
lucas
i ❤ demo
http://www.google.com/search?q=related :thinktankforums.com
lucas's avatar
17 years ago
link
lucas
i ❤ demo
grr.. just take out the space, or search "related:thinktankforums.com" on google
bluet's avatar
15 years ago
link
bluet
Bump.
asemisldkfj's avatar
15 years ago
link
asemisldkfj
the law is no protection
:)

awesome thread