Loading...
 
Skip to main content

Development


Friend of a Friend feature

hi all

I wrote an algorithm to collect names of friends of friends etc., sorted by 'distance' of linkages.*

I put this algoritm in lib/userslib.php, but when I attempt to call it from a modified 'accept_friendship' it says function undefined.

Im new to tiki, php and mysql, so sorry to waste your time with newbie errors:)

  • So if user1 has friends friend1,friend2 and friend2 has friends friend3,friend4 and friend4 has friend5 the algorithm would output 'friend1,friend2,rankblock,friend3,friend4,rankblock,friend5'