The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
sorry to direct this toward you but you always give me the best help!
![]() i'm trying to do two things: 1. list all users online. probably some foreach loop? foreach (){ $useronline = .$username .'<br>'; } 2. list online buddies. i know how to turn $vbulletin->userinfo['buddylist'] into an array but that only has usersid's and i want to list user names and only if they're online. is there an easy way to achieve this? |
#2
|
||||
|
||||
![]()
You really should use a descriptive title instead of someone's name.
![]() 1. That depends on where you are listing them. Is the code already available to grab $username? You aren't giving enough information (and proper xhtml is <br />, not <br>) 2. Probably a loop to go through the ids and then get the username. You can probably find the code to do that in the member.php page for the Friends tab or in the profile.php page for the Friends/Contacts list there. |
#3
|
|||
|
|||
![]()
sorry about the title thing lol
i just need to list the usernames for online users and online buddies. the problem i'm having is that it needs to be available for all pages. maybe i can do a dbquery for sessions and then loop through those sessions and check them against the buddy list. then a second dbquery to get the username from the userid. i was hoping that there was an easier way w/o so many queries. thanks again for your reply. |
#4
|
||||
|
||||
![]()
There are functions available to get the usernames from userids - look in the API (in the Quick Links).
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|