log☇︎
284800+ entries in 0.186s
phf: i'm hacking on PHP with VIM, i feel so deliciously white trash
phf: let me try it out
mircea_popescu: anyway, ill be off to partay, tty darlings laters.
mircea_popescu: seems more like a passive "bury this shit" measure than anything else. who's to trust js.
mircea_popescu: phf prolly to limit access to javascript ?
asciilifeform: this thing is catastrophically broken
phf: mircea_popescu: what's the point of wp-includes/js/.htaccess?
mircea_popescu: you can prolly fiddle with the knobs to make this work more to your liking, but in my experience it's ~perfect.
mircea_popescu: anyway, fi on trilema just now, i had to approve that Anonimescu;s fellow first comment ; as he never was seen before. his subsequent ones, i didn't need to touch.
mircea_popescu: gotta appreciate, you just made this, so everyone's yet a stranger.
mircea_popescu: you rarely have to approve the same person twice.
mircea_popescu: but yes, dubious comments get queued, so you can approve them or not. once you approve some, the dubiousness evaluator gets better.
mircea_popescu: well no, the spam one didn't get queued.
asciilifeform: all comments seem to get queued
asciilifeform: so that answers my q
asciilifeform: hm they only display from the ip of the poster dont they.
mircea_popescu: there;'s no "displayed" though. there's All | Pending (4) | Approved | Spam (15,875)
asciilifeform: mircea_popescu: how does the comments ending in displayed AND at the same time in 'pending' have anything to do with my theme ?
mircea_popescu: yeah vhell! gl avoiding computing in this life.
asciilifeform: and is precisely what i was trying to avoid
asciilifeform: my other thing also works
mircea_popescu: shut up gentoo boy! unlike that pos, this actually works for a decade once settled down. and the settling down is a few hours not a few weeks.
asciilifeform: none of which i am equipped to actually understand.
asciilifeform: whole thing apparetly needs 1,001 hand-coded exceptions from sop in order to work.
mircea_popescu: well, it is evidently the broken one.
asciilifeform: it is one of the 2 themes in his tarball
mircea_popescu: asciilifeform i dunno ; seems to me like a theme issue. this isn't phf's theme, actually, is it ?
shinohai: ;;later tell BingoBoingo Bundy ranch for sale http://listings.listhub.net/pages/MREANV/1116509
mircea_popescu: my test comment.
mircea_popescu: https://archive.is/2lD84 << they do not ?
asciilifeform: on the oly post
asciilifeform: i'ma delete whole thhing prolly
asciilifeform: but if you click, they appear.
mircea_popescu: then hm. i only see my test comment myslef
mircea_popescu: asciilifeform there may be some issues with theme display for logged in admin.
asciilifeform: and show as summing to 0 in root page.
asciilifeform: mircea_popescu: all comments other than spam show up in 'pending' in mine.
mircea_popescu: so there.
mircea_popescu: cool then.
mircea_popescu: nope, spam comment didn't make it through.
asciilifeform: this thing is b0rk3d.
asciilifeform: the admin panel offers me to mod comments
mircea_popescu: now let's try some spam.\
asciilifeform: but it only displays if you click on the post
asciilifeform: whole thing is broken
asciilifeform: is the thing ~supposed~ to send all comments to the mod queue ?
phf: mircea_popescu: i think that's just some default setting
asciilifeform: what to do with that thing
asciilifeform: SELECT comment_ID FROM tril_comments .....
mircea_popescu: i wanna see the blog that gets more.
asciilifeform: i found the barfatron:
mircea_popescu: asciilifeform not exactly, no. gotta fit them in trilema socket.
mircea_popescu: it's flood killer / antibot measure, otherwise you can actually get destroyed by botnet relaying the same comment over and over 100times/s.
asciilifeform: so i can't actually use virginal themes ??
mircea_popescu: asciilifeform in the theme, same file, comments.php. part of the comment form, grep for "comment_post_ID" and put it under
asciilifeform: anybody gonna say where this piece goes ?
mircea_popescu: phf also paginated comments are fucking stupid, take that shit out
mircea_popescu: so they do!
mircea_popescu: asciilifeform he crafitily discovered there's a missing bit.
mircea_popescu: <input type="hidden" name="comment_post_time" value="<?php echo time(),"-",$_SERVER['REMOTE_ADDR']; ?>" /></p>
mircea_popescu: get the two hashes to line up, ima make a comment on article with update. it has been 7 years huh.
mircea_popescu: tsk, i think you';re right phf!
phf: mircea_popescu: i think the anti-spam instructions are missing bit for comment_post_time
mircea_popescu: well, when this engages what it does is, "Looks like you tried to comment off a stale page. Reload the article, count to three and try again."
asciilifeform: (dns existed for eons, and there was an old and bitrotten thing there which is no moar)
asciilifeform: i HAVE a theme
mircea_popescu: of course. as you've no theme. neh ?
mircea_popescu: $suffix = substr(md5(date('Y-m-d')."salt.no,rly.salt."),0,6); to become $suffix = "";
asciilifeform: so what should be taken out then ?
mircea_popescu: ie, this specific bit is a load control measure more than actually spam-killing per se.
mircea_popescu: it won't likely degrade the scheme enough for you to notice.
mircea_popescu: way these work is, they collect form data once with spider, come back and spam it for years afterwards.
mircea_popescu: you could alternatively take the thing out of wp-comments-post.php ; all it does is it prevents serious spam operations from working
asciilifeform: holy shit, i have to manually massage every theme?!
asciilifeform: ah that
mircea_popescu: it's in ~your theme~. do you have one ? no ? WELL THEN!
mircea_popescu: ah, can safely ignore that part.
mircea_popescu: asciilifeform where is this ?!
mircea_popescu: uh lemme see wtf is this
asciilifeform: i dun get it, do i need the rewrites? and if so, which? what does 'RewriteCond %{HTTP_REFERER} .t-1813 [OR]' ~do~ ?
mircea_popescu: asciilifeform trhe idea is you want either both of the chunks linked or neither. currently you have only the top one (in wp-comments-post.php ) but not hte bottom one (in /wp-content/theme/comments.php )
asciilifeform: my comment thing dun work, aha.
mircea_popescu: phf you'll also need a favicon.ico that's not a T lol
mircea_popescu: asciilifeform if you want to debug, you can just make a 2nd install. can share db, even, it has this table-prefix scheme baked in. that one you can restrict to yourself and use for hacking upon.
asciilifeform: mircea_popescu: it is quite unclear to me what part of the rewrite rule is necessary for the spamatron
mircea_popescu: my treat.
mircea_popescu: next time that guy comes in that was trying to fix qntra, i guess we get him to make you a special wp 2.7 theme to spec ?
asciilifeform: i want the default theme like i want to hand-html.
mircea_popescu: asciilifeform this is a blessing, of course. you want 2015 theme like you want karachi street whore.
asciilifeform: soooo turns out none of the current wp themes work with this wp.
mircea_popescu: phf http://trilema.com/2009/trilema-anti-spam/ << see the part going "si respectiv in comments.php a temei," aka "in the comments.php file in your theme"
mircea_popescu: one second ima give you the fix. theme needs some salt for comment form to work.
mircea_popescu: phf hey, you gotta fix the antispam bit, which prolly has a fixed path in it or something ? currently not letting me comment.
asciilifeform: worx, ty
mircea_popescu: luckiest perms there are.
phf: fwiw i only created uploads, and it made the structure on its own, after i fixed permissions
asciilifeform: it is supposed to mkdir'em
mircea_popescu: so make that whole path and try again
mircea_popescu: (incidentally, this, at least on my setup, very quick and easy "host this file" basis)
phf: well, you want to go to wp-admin/media-new.php, try and upload something, see if it lands in the dir?