PDA

View Full Version : $biography


Me2Be
Wed 21st Jun '00, 5:18am
Okay, now that I'm starting to play with this, I'm going to probably have tons of questions (hey, maybe some of these will help the future users).

Under postbit template, I need to get the $biography to work. Basically, I need it to look like:


<a name="post$postid"></a>
$firstnewname
<normalfont><B>$username</B></normalfont><br>
<smallfont>$usertitle</smallfont><br><br>
<smallfont>Description: $biography<br>
Posts: $userpostcount</smallfont


I actually use that biography field for a wedding date field which I need shown on the posts.

Can someone help me?

[Edited by Me2Be on 10-13-2000 at 07:28 PM]

John
Wed 21st Jun '00, 6:52am
At the moment, the biography field is not available in the postbit template. However, you could change that with a quick edit of the showthread.php file.

Find the SQL to get the user details (line 227), and add the biography field into the list of select fields.

After that line, add:


$biography=htmlspecialchars($userinfo[biography]);


John

Me2Be
Wed 21st Jun '00, 6:55am
Thanks for the tip John, but I think I made the wrong assumption.

I am currently running a UBB which uses the Interests field for the Wedding Date. Martin posted just recently that the $biography field isn't the same as the $Interests field.

What happens when I import the Members? How do I get what was previously the $Interests field to show up in the format of my original post?

Thanks!