Sorry try this in phpinclude:
if (strpos($_SERVER['PHP_SELF'], 'showthread.php') != false)
{
// Lets query the database
$DB_site->query_first("SELECT postid,post.dateline FROM post,thread WHERE post.threadid=thread.threadid AND thread.threadid='$threadid' AND post.visible=1 AND thread.visible=1 ORDER BY post.dateline DESC LIMIT 1")) {
// getting everything set.
$lastreplyname = $thread[lastposter]
if ($bbuserinfo[username] == $lastreplyname) {
$editurl = <a href="/editpost.php?s=$session[sessionhash]&action=editpost&postid=$getlastpost[postid]/"><img src="/$replyclose/" border="/0/" alt="/Post A Reply/"></a>
} else {
$editurl = <a href="/newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid/"><img src="/$replyclose/" border="/0/" alt="/Post A Reply/"></a>
}
}
|