3 comments
Comment from: William Visitor
Comment from: EdB Visitor
Hi William. I’ll try to figure something out on this, but Isaac wrote the ‘automatic recheck’ hack - all I did was copy it and be happy. What version of PHP are you running? Are you a member of the forums? If not you should sign up because pasting code works a lot better in there than out here.
It’ll take me a while. I’m wondering about the syntax of that particular line. How it says “variable = this or that depending on a condition". I’m thinking maybe your PHP doesn’t like the way Isaac wrote the code? It’d be odd because Isaac is really good with code, but I don’t know what else to look at.
See you in the forums!
Comment from: EdB Visitor
Try changing “? 1 : 0;” to “? true : false;. Just a thought based on the reason I had to change yes and no to gotit and needs. I don’t understand why - I just remember my hack failed with yes and no for a few people. Something about how their server was setup.
Any additional followup we’ll do in the forums. Lotsa smart people in there!
I’m getting an error when cron runs it (same if I run it manually) - (MySQL 4.0.25-standard / B2Evo 0.9.0.12)
Parse error: parse error, unexpected ‘;’ in /home/mysite/public_html/blog/admin/b2antispam_recheck.php on line 24
Here’s the code referenced:
$report = ( $result->aspm_source != 'central' && $result->aspm_source != 'reported' ) ? 1 : 0;
I’ve done EdB’s “hacks": added database field, changed “no’s” to “needs” & “yes’s” to “gotit” in the script.
I’m using Isaac’s blacklist update cron technique successfully & would like to get the re-check working, too.
any ideas?