Log in

View Full Version : Check bbuser's contact list for another user?


christian.cloug
04-30-2012, 08:43 PM
I'm trying to find a way to check the logged in user's contacts/('buddies') for the userid of certain other user - i.e. if the userid i feed it is in the logged in user's list then I'll have it output e.g. 'xxx is in your contact list'...

I found a page demonstrating how to do this, only problem is its from 2004 and clearly the same code won't work for v4!!

https://vborg.vbsupport.ru/showthread.php?t=65577

I'm hoping the essence of the code in the above post is still possible today:

if (in_array(userid_that_I_give_it, $bb_buddylist))

Can anyone help?

Thank you

kh99
04-30-2012, 11:28 PM
It looks like that code should still work. From what you've said I think you only half of it - the code from that thread check for users being in each other's lists.