View Full Version : Getting the title
VBCoder
06-20-2005, 11:05 PM
Given a threadid, or a postid, how do I get the title/subject?
Andreas
06-20-2005, 11:09 PM
$threadid = X;
$threadinfo = fetch_threadinfo($threadid);
$postid = Y;
$postinfo = fetch_postinfo($postid)
VBCoder
06-20-2005, 11:21 PM
Similarly, how can I determine the name of the current user? $vbulletin->userinfo['username'] is giving me a number, for some reason...
Andreas
06-20-2005, 11:25 PM
$vbulletin->userinfo['username'] should really give you the username, not the userid ...
Anyway, you can use (did you guess it already? :))
$userid = Z;
$userinfo = fetch_userinfo($userid);
VBCoder
06-21-2005, 01:05 AM
Thanks, Kirby.
Follow Up: $vbulletin->username['userinfo'] was working fine - the bug was elsewhere, at my end.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.