View Single Post
  #6  
Old 06-17-2014, 06:55 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 22,650
IntoRain is on a distinguished road
Default

Hehe it's good you are getting used to it ^^ The table friend_requests might help, status = pending means unaccepted.

The table users keeps a list of friends as a string (each friend separated by a comma). The way profile does it is to create a Friendlist object (class_friendlist), with the user object. The Friendlist object then creates an array of integers (the friends IDs) by dividing the entire string (explode(",",string)). I'd look into class_userprofile.php (getfriends() function) and class_friendlist.php depending on what you want to do. mysidia->user->getfriends() seems to return the full string with friends as well, if you want to use Explode() on it yourself. After Explode() you get an array with all the ids, you can then create a Member object using those ids.
__________________


asp.net stole my soul.
Reply With Quote