Isn’t $user_id the get user WordPress call? http://codex.wordpress.org/WPMU_Functions/get_current_user_id
CBox is totally separate from WordPress but CBox recently made it so that you can integrate the CBox chat box with your WordPress users. Before integration, guests and members of my site had to pick a username for the chat box and then post their message in the chat box, but now the integration allows members already logged in to my site to post messages on the chat box.
What I’m trying to do is get the usernames INSIDE the chat box (which are the same usernames of my WordPress members) to link to their SimplePress profiles and show their SimplePress avatars. It’s the exact same username as they use on my forums because the cbox is pulling them from my WordPress database.
Well avatars sorta work now all of a sudden…I just posted a message in the chat box and it shows my avatar http://www.rockitpro.com/testimonies/ but it’s not showing the member’s avatar below me. He should have the standard avatar showing. My Sho-Down name is also linking to http://www.rockitpro.com/sf-forum/ instead of my profile.
The code you gave me is having no effect though, CBox is pulling my avatar with &pic=<?php echo urlencode($avatar_url)?>