View Full Version : Using $userinfo in different places
Greenskull
11-18-2008, 01:50 AM
Hey. I can only seem to really use $userinfo in MEMBERINFO, but I want to call it in the navbar. How would I go about that? Thanks
Lynne
11-18-2008, 02:54 AM
$userinfo can't really work in the navbar. $userinfo is used in regards to someone else - not necessarily the person doing the browsing. If you are using it in regards to you, the browser, you would use $bbuserinfo. A quick example would be looking at a profile page. $userinfo[username] would spit out the name of the person who's page you are viewing. $bbuserinfo[username] would spit out your own username.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.