We spoke on IRC yesterday, and you gave me some kind of pseudo code for a fortunes system, this is what it looks like:
$fortunecolours = array("red", "purple", "green", "blue");
$fortunes = array("You'll have dubs in no time!", "You've been snaked.", "Check the tunlel!", "Godly Luck", "Good Luck", "Bad Luck", "Average Luck", "Good news will come to you by mail", "You will meet a dark handsome stranger",
"le ebin dubs xDDDDDDDDDDDD", "キタ━━━━━━(゚∀゚)━━━━━━ !!!!", "( ´_ゝ`)フーン", "Reply hazy, try again", "Excellent Luck", "ヾ(⌐■_■)ノ♪");
shuffle($fortunecolours);
shuffle($fortunes);
if($post['name'] == '#fortune') {
$post['body'] .= "<br><br><strong><font color=" . $fortunecolours[0] . ">Your Fortune: " . $fortunes[0] . "</font></strong>";
}
Thanks.
edit: I tried swapping out the $post['body'] and name to $post->body and $post->name. This worked (didn't throw any errors), but used the tripcode like normal and didn't append anything to the post's body.