whenever we clicked a thread to view, we can see who post the thread or reply, where they register, their location ...on the left hand side of the forum..
how can i add one more thing below the username for eg. birth date so that every user can know when they are born when they view the thread...
in the postbit template, i add this:
PHP Code:
<smallfont>Birth Date: <b>$birth</b></smallfont><br>
below this:
PHP Code:
<normalfont><b>$post[username]</b></normalfont><br>
<smallfont>$post[usertitle]</smallfont><br>
and in showthread.php, i add few lines of code....
PHP Code:
//get birthdate
$get=$DB_site->query("SELECT uid, birth from personal where uid=$bbuserinfo[userid]");
$numrows_gettotal = mysql_num_rows($get);
if ($numrows_gettotal > 0)
{
list ($uid, $birth) = mysql_fetch_row($get);
}
before this code:
PHP Code:
eval("dooutput(\"".gettemplate("showthread")."\");");
the result is, it only show 'Birth Date: ' under usertitle but nv show the birthdate...
wat is wrong with my code?? pls help... :cry: