Hello, I have this code:
$friends = $owner->listFriends('', $num, array(
'size' => 'tiny',
'pagination' => FALSE,
'list_type' => 'gallery',
'gallery_class' => 'elgg-gallery-users',
'count' => TRUE
));
If I set $num to say 10, is it possible to return 10 random friends instead of the same 10 everytime? I know this is possible, just not sure how to do it. Thanks.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
@ Ismayil
Great I knew there was a simple solution! I will try this out.
@ gillie
Thanks for your suggestions!
- Previous
- 1
- 2
- Next
You must log in to post replies.