UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

QUICK code question

Ashley Rosenthal · ·
5:26 AM Thursday, 23 January 2014
None
Hi there!

I know you all are busy at work and I don't want to distract from that, but I have a quick question about my current code customizing venture. As I've mentioned, I am trying to create a minifeed for blog posts only from a users friends. I have most of the minifeed itself actually constructed and I am starting work on the PHP portion of the project.

I obviously have to first access a list of the Foundry::user's EasySocial friends. I am deciding which is the best way to go about this. My first instinct was to do a mysqli search similar to the one I used for our subscription minifeed. However, I've spent the last hour or so digging around the phpadmin trying to find what table has a list of users and their friends with very little success. I found a table that says social_friends but it is only showing the people that I have requested as friends, but not those who have requested me (at least not as the same category title)

Anyways, my question is, would it work to use this code to create a list of user's friends so that I can then access the posts that have been created by that list of friends:

$my = Foundry::user();

$my->getListFriends();

I saw the "getTotalFriends" command on the stackideas documentation and was wondering if the above code would work for my purposes?

A simple yes/no answer would be fine because I do not want to take you away from your current developments! Thanks sooo much!
The replies under this section are restricted to logged in users or users with an active subscription with us