vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   problems with postbit template.. (https://vborg.vbsupport.ru/showthread.php?t=35211)

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:
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:

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 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. ;)


All times are GMT. The time now is 11:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01422 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete