//Blog created on this week
$start = mktime(0, 0, 0, date("m") , date("d")-7, date("Y"));
$end = time();
$options = array(
'type' => 'object',
'subtype' => 'blog',
'full_view' => false,
'list_type_toggle' => false,
'wheres' => array("e.time_created BETWEEN {$start} AND {$end}"),
'limit' => 30,
'pagination' => true
);
$content = elgg_list_entities($options);
echo $content;
thanks
But I want to work in admin side I wouldn't show anything to members I want some thing like SQL query to return me list or array of objects and then make another query to get number of likes for every one.
$options = array('type'=>'object','subtype'=>'blog');
$entities= elgg_get_entities($options);
foreach($entities as $entity){
echo $entity->title;
echo elgg_view('likes/count', array('entity' => $entity))
}
Combine 2 action (emailconfirm and pay) in one: just add my above code to resources\uservalidationbyemail\confirm.php where use $user_guid instead my $guid
User validation plugin disables entities so you need to enable hidden entities before loading a user. See an example in register action - see how username is validated.
thanks for all
now it work but just create_metadata the update_metadata didn't work
regards
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.