PDA

View Full Version : displaying userfield under username in forums?


Bald Bouncer
05-24-2002, 08:50 PM
$field=$DB_site->query_first("SELECT field5 FROM userfield WHERE userid=$thread[postuserid]");

by adding the above in forumdisplay.php i can display the userfield under the persons name BUT it adds a query for every thread :( is there any way to fix this?

any help appreciated!

Logician
05-27-2002, 05:44 AM
In PostBit/Postbit use:

$post[field5] in the relevant place. While parsing postbit already pulls data from these fields so you dont need to make a new query..

Bald Bouncer
05-27-2002, 08:51 AM
cheers mate but I wanted it on the forumdisplay page were all the thread titles are :(

Bald Bouncer
06-06-2002, 01:24 PM
bump

Raptor
07-01-2009, 07:13 AM
I need usefields to display on the index page.