Hey guys, I have been modifying a module (see image) that shows information on connected users only. My modified module displays a table of connected avatars with a clickable icon underneath that shows their iChat status. I pull the iChat URL off of the connected user's profile. Otherwise the iChat field is not viewable by the public or even other registered users.
I essentially query the database to see if I am connected to the user for this module. Could this code be used on a plugin for a profile tab to only display the tab and its profile fields if you are connected?