think tank forum

ttf development » bleeding edge

lucas's avatar
16 years ago
link
lucas
i ❤ demo
okay, this live version of ttf is about to be pushed to the bleeding edge.

sorry if things break.

enjoy!
bluet's avatar
16 years ago
link
bluet
excitement!
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
I'm excited. are we on the bleeding edge yet?
bluet's avatar
16 years ago
link
bluet
textarea still broken in chrome, so i guess not
lucas's avatar
16 years ago
link
lucas
i ❤ demo
i'm permanently deleting this post to facilitate database migration:

mysql> SELECT post_id, thread_id, author_id, hide, date, ip, CHAR_LENGTH(body), LEFT(body, 16) FROM ttf_post WHERE post_id=10926;
+---------+-----------+-----------+------+------------+---------------+-------------------+------------------+
| post_id | thread_id | author_id | hide | date       | ip            | CHAR_LENGTH(body) | LEFT(body, 16)   |
+---------+-----------+-----------+------+------------+---------------+-------------------+------------------+
|   10926 |       537 |         2 | t    | 1195762940 | 76.171.216.78 |             56052 | tooooooooooooooo |
+---------+-----------+-----------+------+------------+---------------+-------------------+------------------+
1 row in set (0.00 sec)
lucas's avatar
16 years ago
link
lucas
i ❤ demo
that's the only post that killed the migration script. i guess regexps are very intensive to run if there's 56000 characters without a line break.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
by the way, none of you should go post something like this. i won't ban you, but i'll be very annoyed. so please don't think it would be funny.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
man, i get nauseated when i'm about to run a huge migration script and completely change the live scripts.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
okay, here goes...
lucas's avatar
16 years ago
link
lucas
i ❤ demo
we're up.

i hope things don't break!
bluet's avatar
16 years ago
r1, link
bluet
this post has been archived.
bluet's avatar
16 years ago
r1, link
bluet
user title! it's gone! :o
lucas's avatar
16 years ago
link
lucas
i ❤ demo
mine? i removed my user title before migration.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
having this version live is creepy.
phi_'s avatar
16 years ago
link
phi_
... and let the Earth be silent after ye.
Holy crap, everything looks weird in Chrome.
dannyp's avatar
16 years ago
r1, link
dannyp
dʎuuɐp
woah!

revisions
nestor's avatar
16 years ago
r1, link
nestor
nestor
i'm bleeding!

edit: hello there
lucas's avatar
16 years ago
link
lucas
i ❤ demo
here's the migration script:
http://code.google.com/p/thinktankforums/sour … &r=253

:)
lucas's avatar
16 years ago
link
lucas
i ❤ demo
and the era of thread hijacking has ended--
nestor's avatar
16 years ago
link
nestor
nestor
yarr.
nestor's avatar
16 years ago
link
nestor
nestor
This looks great, lr. I like it a lot.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
thanks. :)

more to come, hopefully.

this live version is newer than what's in svn. i have some code cleanup to do and some commits to make.
nestor's avatar
16 years ago
link
nestor
nestor
:O

live indeed.
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
this looks totally fucked in Safari.
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
oh wait I refreshed and it's much better!
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
this is awesome I just edited a post!
lucas's avatar
16 years ago
link
lucas
i ❤ demo
we're running the lovely r269:
http://code.google.com/p/thinktankforums/sour … #svn/trunk
phi_'s avatar
16 years ago
link
phi_
... and let the Earth be silent after ye.
<3 edits.

Now just a "mark all as read" feature and I'll be happy.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
r278 brings us almost perfect xhtml 1.1 compliance.
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
html bold tag fucking up search results: http://thinktankforums.com/search.php?string= … e+messages

also what is the "on Array" thing?
nestor's avatar
16 years ago
link
nestor
nestor
blood
lucas's avatar
16 years ago
link
lucas
i ❤ demo
thanks, asemi.

search.php isn't updated to handle the new format_date() function, which now returns an array.

search.php also isn't updated to handle the fact that `ttf_post.body` is already run through outputbody(), which is why the bold tag is fucking things up.

noted in issue 36 .
lucas's avatar
16 years ago
link
lucas
i ❤ demo
i love revisions.
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
I am extremely happy about this edit feature and love how it is implemented with the revisions and stuff. having to archive and repost stuff that had tags was such a pain before!
lucas's avatar
16 years ago
link
lucas
i ❤ demo
try your search now; it should be better.

http://code.google.com/p/thinktankforums/issues/detail?id=36
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
no weird HTML formatting, but some ugly stuff going on:

http://img236.imageshack.us/img236/4082/picture1xi9.jpg

better than before though!
lucas's avatar
16 years ago
link
lucas
i ❤ demo
have any suggestions on how to handle that?

wordwrap() ?
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
why don't you display whole posts in search results? if it's just for the sake of the page being shorter you could load the entire posts but then hide part of them with javascript. that might kind of suck though. you could write something so that at the end of each result it automatically closes any open tags. or you could show entire posts in the results. the html in search results is kind of ugly.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
> why don't you display whole posts in search results?

we do, now. :)

> the html in search results is kind of ugly.

do you have a suggestion on what to do?
lucas's avatar
16 years ago
link
lucas
i ❤ demo
oh, you just want the whole, formatted posts?

i guess we can do that.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
done.

it looks good, except that if the script tries to highlight a search term that occurs in the middle of a link, it busts the link. :/
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
oof that's rough. any idea how other forums do it? maybe they search the formatted posts somehow, but then they miss out on searching URLs.
lucas's avatar
16 years ago
r1, link
lucas
i ❤ demo
i'll think about how to do it nicely. (this became issue 38.)

have you guys seen the new profile editing page?
http://www.thinktankforums.com/editprofile.php
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
what's new about it? I see some minor changes I guess.
dannyp's avatar
16 years ago
link
dannyp
dʎuuɐp
check this out after you change something :)

http://www.thinktankforums.com/profile.php?user_id=3
lucas's avatar
16 years ago
link
lucas
i ❤ demo
it's organized more nicely, in my opinion.
Carpetsmoker's avatar
16 years ago
link
Carpetsmoker
Martin
I can edit my posts, woohoo!
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
ooh interesting.
DaGr8Gatzby's avatar
16 years ago
r1, link
DaGr8Gatzby
Drunk by Myself
Firefox 2 at work fucks up the post button. Shit looks like a tetris piece. However, I'm happy to report Safari 4 is working quite well :)
andyp's avatar
16 years ago
link
andyp
nothing is wrong - what are you scared of?
it was like that on mine for a few days.. then magically it fixed itself to the bottom of the text box.
lucas's avatar
16 years ago
r1, link
lucas
i ❤ demo
gatzby: did you get the new style sheet? try ctrl+f5.

andyp: it's because your browser finally retrieved the new style sheet.
DaGr8Gatzby's avatar
16 years ago
link
DaGr8Gatzby
Drunk by Myself
Lucas, I'll try on thursday :)

Also, I think a good feature would be a timestamp on all edits.
DaGr8Gatzby's avatar
16 years ago
r1, link
DaGr8Gatzby
Drunk by Myself
this post has been archived.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
there is a timestamp: hover your cursor over any relative time.
DaGr8Gatzby's avatar
16 years ago
link
DaGr8Gatzby
Drunk by Myself
Wow. If you click on revision, the IP address shows up. Insecure?
bluet's avatar
16 years ago
link
bluet
i don't see a problem with that
nestor's avatar
16 years ago
link
nestor
nestor
is it just me or is ttf much more responsive now?
lucas's avatar
16 years ago
link
lucas
i ❤ demo
it should be (at least marginally).

forum.php is performing 15 fewer queries with each execution.
thread.php is no longer formatting posts on demand (formatted posts are cached).
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
I don't know if I like the IPs showing.
DaGr8Gatzby's avatar
16 years ago
link
DaGr8Gatzby
Drunk by Myself
CTRL-F5 worked.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
i can has r300?

http://code.google.com/p/thinktankforums/source/list
lucas's avatar
16 years ago
r1, link
lucas
i ❤ demo
this post has been archived.
lucas's avatar
16 years ago
r1, link
lucas
i ❤ demo
this post has been archived.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
woo!

r300
asemisldkfj's avatar
16 years ago
r1, link
asemisldkfj
the law is no protection
no more archive confirmation?

oh sweet, dedicated html confirmation page. I'm into it.
asemisldkfj's avatar
16 years ago
r1, link
asemisldkfj
the law is no protection
this post has been archived.
lucas's avatar
16 years ago
link
lucas
i ❤ demo
not via javascript--there's an html page now instead.
bluet's avatar
16 years ago
link
bluet
so is ttf now fully lynx compatible?
asemisldkfj's avatar
16 years ago
link
asemisldkfj
the law is no protection
lol
lucas's avatar
16 years ago
link
lucas
i ❤ demo
> so is ttf now fully lynx compatible?

i think so...
lucas's avatar
16 years ago
link
lucas
i ❤ demo
cleaned up the migration a bit:

DELETE FROM ttf_revision
WHERE body = ''
AND rev_id < 2689
AND type = 'title' ;

Deleted rows: 1296 (Query took 0.0848 sec)

DELETE FROM ttf_revision
WHERE body = ''
AND rev_id < 2689
AND type = 'profile' ;

Deleted rows: 1312 (Query took 0.0725 sec)
bluet's avatar
16 years ago
link
bluet
freshies are crazy!
lucas's avatar
16 years ago
link
lucas
i ❤ demo
i know... it's kinda annoying
bluet's avatar
16 years ago
link
bluet
yay, back to zero freshies again
Carpetsmoker's avatar
16 years ago
link
Carpetsmoker
Martin
> > so is ttf now fully lynx compatible?
>
> i think so...

It looks rather nice in Lynx ... The only `complaint' is that the navigation / login form are at the top of the page (In the HTML order, not the visual rendering), instead of the bottom ... Or that's there no link to skip navigation and go to content.
bluet's avatar
16 years ago
link
bluet
looking good in elinks too
lucas's avatar
16 years ago
link
lucas
i ❤ demo
http://www.thinktankforums.com/latest.php
bluet's avatar
16 years ago
link
bluet
shit, now i'll have to make the three latest posts too :o

ah, here we go