I'm putting this in showthread.php
just after
PHP Code:
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
I want it to return the userid so I can test it against the userid opening the thread.
Like on here where we have the titles big at the top, I want a different template showing to the normal member than the member that posted the thread.
Got the template location etc sorted, just cannot get the condition statement working
PHP Code:
if ($firstpostinfo==$bbuserinfo[userid]) {
eval("\$threadheader = \"".gettemplate("showthread_member_header")."\";");
} else {
eval("\$threadheader = \"".gettemplate("showthread_poster_header")."\";");
}
So am wondering if the first query is correct ?
Is there a way of debugging php etc, say a step through the code line by line ?
Thanks
Fla5h