PDA

View Full Version : problems with postbit template..


joyce
02-18-2002, 11:51 PM
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:

<smallfont>Birth Date: <b>$birth</b></smallfont><br>


below this:

<normalfont><b>$post[username]</b></normalfont><br>
<smallfont>$post[usertitle]</smallfont><br>


and in showthread.php, i add few lines of 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:

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:

DjSap
02-19-2002, 06:25 AM
You don't have to edit any files for this, just add $post[birthday] to the postbit template.

joyce
02-19-2002, 06:32 AM
hmm....birthday is just an eg, actually i have another table, wat i want to display is have to select out from the database...

so is there anyway i can do that?

Admin
02-19-2002, 11:06 AM
joyce, please go to this (http://www.vbulletin.com/members/vbulletin.org.php) page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.

certify
02-20-2002, 01:51 AM
Opps... forgot to add joyce in. It's done now FireFly. ;)